docstring
Skill2 starsChanged 4 months agoMITView on GitHub
Add or update documentation comments (docstrings, JSDoc, etc.) for changed or selected code, matching the project's existing style. Use when the user asks to document code, add docstrings, says "add JSDoc", "document this function", "write doc comments", or "add comments to the changes".
8 other projects use a version of this.
Adopted by
Most recently taken up by
- pipecat-ai/pipecattheir own version, first seen Oct 8, 2026
- pytorch/pytorchtheir own version, first seen Oct 8, 2026
- llp-dev/claude-skillstheir own version, first seen Sep 9, 2026
- llp42/claude-skillstheir own version, first seen Sep 9, 2026
- NVIDIA/structured-data-modelstheir own version, first seen Jul 29, 2026
- Jinbae10/skillstheir own version, first seen Jul 7, 2026
Used with
Projects with it also use commit.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
SentrySkillcommit
Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.
Also in 3 projects that use this
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- pytorch/pytorch★ 105ksame name
- pipecat-ai/pipecat★ 17ksame name
- NVIDIA/structured-data-models★ 473same name
- nilecui/SkillsBase★ 27same name
- Jinbae10/skills★ 0same name
- llp-dev/claude-skills★ 0same name
- llp42/claude-skills★ 0same name
- sissc0731/claude-code-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository68 other files it gives its agents.
- a11ySkill
- api-docsSkill
- audit-logSkill
- benchmarkSkill
- bisectSkill
- cacheSkill
- changelogSkill
- cherry-pickSkill
- ci-setupSkill
- codeownersSkill
- commit-messageSkill
- connection-poolSkill
- contributingSkill
- coverageSkill
- db-migrateSkill
- dead-codeSkill
- debugSkill
- depsSkill
- diagramSkill
- dockerizeSkill
- e2eSkill
- env-exampleSkill
- error-handlingSkill
- explainSkill
- feature-flagSkill
- flaky-testSkill
- gitignoreSkill
- graceful-shutdownSkill
- graphqlSkill
- healthcheckSkill
- i18nSkill
- idempotencySkill
- licenseSkill
- lint-fixSkill
- loggingSkill
- migrateSkill
- mockSkill
- onboardSkill
- optimizeSkill
- paginationSkill
- pr-descriptionSkill
- pre-commitSkill
- profileSkill
- prune-branchesSkill
- rate-limitSkill
- readmeSkill
- rebaseSkill
- refactorSkill
- regexSkill
- releaseSkill
- resolve-conflictsSkill
- retrySkill
- review-diffSkill
- scaffoldSkill
- secrets-scanSkill
- security-headersSkill
- seedSkill
- soft-deleteSkill
- sqlSkill
- squashSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Add or improve documentation comments for the changed code above (or for $ARGUMENTS if a file/symbol was given).
- Distinctive: line 25
Update stale docs: If an existing docstring no longer matches the changed signature or behavior, correct it.
- Distinctive: line 27
After editing, give a one-line summary of which symbols were documented or updated.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Changed code (working tree + staged)
!git diff HEAD --stat 2>/dev/null || echo "No git changes detected"
!git diff HEAD 2>/dev/null | head -300
Instructions
Add or improve documentation comments for the changed code above (or for $ARGUMENTS if a file/symbol was given).
Rules
- Match the project's existing convention. Read a neighboring already-documented function first and mirror its format exactly — JSDoc/TSDoc for JS/TS, Google or NumPy style for Python,
///doc comments for Rust, GoDoc comments for Go, Javadoc for Java. Do not introduce a new style. - Document the public surface of changed code: every exported/public function, class, and module that lacks a current, accurate doc comment.
- For each, cover: a one-line summary of purpose, parameters (with types if the language convention includes them), return value, raised/thrown errors, and any important side effects.
- Describe behavior and intent, not the obvious. Explain why and the contract — never restate the code line by line. Skip comments that add no information.
- Update stale docs. If an existing docstring no longer matches the changed signature or behavior, correct it.
- Apply edits directly to the files. Do not reformat or touch unrelated code.
- After editing, give a one-line summary of which symbols were documented or updated.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

