Are there any rules/guidelines for giving out information? I know the study action exists personally, I think it is stupid that it requires a whole action to "think" and know if you know something but regardless useful information on this statblock for example

>resistance and immunities
Upon knowing it's an undead, most knowledgeable players will assume it has these immunities, but other creatures are not as common so it'd be helpful to give this kind of info out, but on what DC? 10? 15?

>traits
>special attacks
>spell casting

All useful information that might alter how to approach a fight. Should it be info given out? On what DC? I don't think it should be all given out, but should they have a choice?

>DC 10 for creature type
>DC 15 the previous, plus resistance and immunities
>DC 20 the previous, plus a player can choose one to know a trait, special attack, or if it has spellcasting

Are there better ruels to steal out of 3.5 or pf1e?