Write Python docstrings following the Google Python Style Guide, using clear sections and examples.
Installation
$skills install @dmitriiweb/google-docstring-assistant
Claude Code
Cursor
Copilot
Codex
Antigravity
Details
Repositorydmitriiweb/extract-emails
Path.codex/skills/google-docstring-assistant/SKILL.md
Branchmain
Scoped Name@dmitriiweb/google-docstring-assistant
Usage
After installing, this skill will be available to your AI coding assistant.
Verify installation:
skills listSkill Instructions
name: google-docstring-assistant description: Write Python docstrings following the Google Python Style Guide, using clear sections and examples.
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 by dmitriiweb
View allpytest-testing-assistant
106Write focused pytest tests as standalone functions (one test per function), avoiding test classes.
agents-md-assistant
106Inspect a repository and draft an AGENTS.md file using the standard template, capturing commands, structure, and workflow rules.
format-lint-assistant
106Run the project's formatter, linters, and mypy checks in the required order, fixing issues and managing any needed stub dependencies via uv.
code-review-assistant
106Perform structured, actionable code reviews for Python code with clear findings and suggestions.
