I've seen a number of "how to write female/queer/minority characters well" articles over the years, and I've read enough awful writing to understand where they're coming from, but as a head-in-the-clouds autist who creates blobs of personality and backstory and then adds identities almost as an afterthought, I can't always bite back the snarky three-step response:
- Convince yourself that marginalized people are in fact full people.
- No, seriously, make sure you are fully and completely convinced on that point.
- Write them like you would write people (including people in a hostile or bigoted environment).