Ask HN: Any great books about technical writing? 4 years ago
The Microsoft Style Guide is a useful resource for clearing up questions or obtaining recommendations on how to write most of the things you mention:
https://docs.microsoft.com/en-us/style-guide/welcome/
There are other style guides, of course. Check out this list at Write the Docs:
https://www.writethedocs.org/guide/writing/style-guides/
If you're searching for more generic information on how to communicate technical content effectively to different audiences, check out this list of recommended books: