docsurvey ("A survey of LaTeX documentation", `texdoc docsurvey` or https://ctan.org/pkg/docsurvey) has a section on documentation for writing packages. Regards Nicola