google-docstring-assistant
Google Docstring Assistant
Quick start
- Write docstrings using the Google Python Style Guide structure (Args, Returns, Raises, Examples, Attributes, etc.).
- Keep sections as headers followed by indented blocks; break sections by resuming unindented text.
- When types are annotated in code, omit them in docstrings unless clarity is improved.
- Use
Examplesblocks with literal blocks (::) for commands or code snippets. - Document module-level variables consistently (all in
Attributesor inline), and list TODOs in aTodosection. - See
references/google_docstring_rules.mdfor full guidance and examples.
Workflow
-
Choose sections
- Functions: include
Args,Returns, andRaisesas needed. - Modules/classes: use
AttributesandTodowhen relevant; keep formatting consistent.
- Functions: include
-
Write clearly
- One docstring per object; keep it concise and informative.
- Use indentation under each section header; separate sections by returning to unindented text.
- Prefer Google-style wording; avoid duplicating annotated types unless helpful.
-
Examples and scripts
- Use
Examples:with indented literal blocks for shell commands or code snippets. - Include multi-line descriptions when needed; keep formatting readable.
- Use
Reference
references/google_docstring_rules.md: full style description and examples.
More from dmitriiweb/extract-emails
format-lint-assistant
Run the project's formatter, linters, and mypy checks in the required order, fixing issues and managing any needed stub dependencies via uv.
4skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
3pytest-testing-assistant
Write focused pytest tests as standalone functions (one test per function), avoiding test classes.
3code-review-assistant
Perform structured, actionable code reviews for Python code with clear findings and suggestions.
3debug-logging-assistant
Add purposeful debug logging to improve observability without changing behavior.
3git-commit-assistant
Generate high-quality conventional git commit messages and, with user approval, run the commit. Use when drafting or refining commit messages, validating commit quality, or committing staged work while avoiding noisy histories.
3