function-docstrings
FreeNo executable scriptsNot checkedWrite concise docstrings for functions. Use when a junior developer needs help describing inputs, outputs, and errors.
by proflead★ 171 GitHub starsAbout this skill
Function Docstrings
Purpose
Write concise docstrings for functions.
Inputs to request
- Function signature and behavior.
- Edge cases or error conditions.
- Project docstring style guide.
Workflow
- Describe purpose in one sentence.
- List parameters with types and meaning.
- State return value and error conditions.
Output
- Docstring block in project style.
Quality bar
- Keep wording precise and minimal.
- Match the project formatting style.
Install function-docstrings in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the function-docstrings skill do?
Write concise docstrings for functions. Use when a junior developer needs help describing inputs, outputs, and errors.
How do I install the function-docstrings skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the function-docstrings skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
by Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
by Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
by Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
by Anthropic