https://www.contributor-covenant.org/ is (was?) the most widely adopted code of conduct in FOSS, initially drafted by a Ruby contributor, who also happens to be transgender if that's pertinent information to you. It's the genesis seed from which all this code of conduct madness stems from. Personally I'd stick with "be excellent to each other" or "say what you want, just don't use slurs or deliberately insult other contributors" or something vague, ambiguous and universally understood as that. I'm not really a fan of rigorous social rules, so my view on this starts from that position.
Unfortunately it seems that "be excellent to each other" is not specific enough to be understood by everyone.
E.g., "address people using the name and gender that they use to refer to themselves". You would expect this to be obvious, and yet... Or maybe making this explicit is promoting a "woke ideology"?