python-google-docstring-crafter
Installation
SKILL.md
Google Style Python Docstring
This skill provides expertise in writing Python documentation and comments according to the Google Python Style Guide. Proper documentation ensures code is understandable by both humans and automated tools like pydoc and pytype.
Core Instructions
- Prioritize Intent Over Mechanics: Focus on why a function or class exists and how it should be used. Avoid mechanically repeating the code's logic.
- Standard Format: Use the three-double-quote
"""format for all docstrings. - Structured Sections: Use explicit sections for
Args:,Returns:, andRaises:to maintain a consistent structure across the project. - Consistency is Key: Whether you choose imperative or descriptive style, ensure it's consistent within each file.
Audit Checklist
When reviewing or writing documentation, use the following checklist: