Assists in writing Python docstrings following the Google Style Guide.
Install
mkdir -p .claude/skills/google-docstring-assistant && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18091" && unzip -o skill.zip -d .claude/skills/google-docstring-assistant && rm skill.zipInstalls to .claude/skills/google-docstring-assistant
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Write Python docstrings following the Google Python Style Guide, using clear sections and examples.Key capabilities
- →Write docstrings following Google Python Style Guide
- →Include `Args`, `Returns`, and `Raises` sections for functions
- →Use `Attributes` and `Todo` sections for modules/classes
- →Format `Examples` blocks with literal blocks for code snippets
- →Document module-level variables consistently
- →Keep docstrings concise and informative
How it works
The skill guides the user to write Python docstrings according to the Google Python Style Guide, ensuring clear sections and examples.
Inputs & outputs
When to use google-docstring-assistant
- →Document a function
- →Generate class attributes doc
- →Add examples to documentation
- →Standardize docstring style
About this skill
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.
When not to use it
- →When types are annotated in code and clarity is not improved by repeating them in docstrings
- →When using non-Google-style wording
Limitations
- →Does not automatically generate docstrings
- →Requires manual selection of sections
- →Requires manual writing of clear and concise content
How it compares
This skill enforces a specific, consistent style for Python docstrings, improving readability and maintainability compared to ad-hoc documentation.
Compared to similar skills
google-docstring-assistant side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| google-docstring-assistant (this skill) | 0 | 1mo | No flags | Beginner |
| agent-implementer-sparc-coder | 1 | 5mo | Review | Intermediate |
| nia-docs | 1 | 6mo | Review | Beginner |
| skills | 0 | 2mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
agent-implementer-sparc-coder
ruvnet
Agent skill for implementer-sparc-coder - invoke with $agent-implementer-sparc-coder
nia-docs
parcadei
Search library documentation and code examples via Nia
skills
emergencescience
Instructions for AI coding agents (Claude Code, Hermes, Cursor, etc.) contributing to this project.
deepwiki-rs
sopaco
AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation. Use when Claude needs to analyze source code, understand software architecture, generate technical specs, or create professional documentation from any programming language.
codex-cli-bridge
alirezarezvani
Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools
jupyter-notebook
davila7
Use when the user asks to create, scaffold, or edit Jupyter notebooks (`.ipynb`) for experiments, explorations, or tutorials; prefer the bundled templates and run the helper script `new_notebook.py` to generate a clean starting notebook.