Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add darellchua2/opencode-config-template --skill docstring-generator-skillgit clone --depth 1 https://github.com/darellchua2/opencode-config-templateWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/darellchua2/opencode-config-template/docstring-generator-skill)<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/docstring-generator-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/docstring-generator-skill/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/docstring-generator-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/docstring-generator-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.00393 |
| Opus 5.5 | $0.00016 | $0.00157 |
| Sonnet 5.5 | $0.00008 | $0.00079 |
| Haiku 4.5 | $0.00004 | $0.00039 |
Grade A, and why
docstring-generator-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
What I do
Generate per-language docstrings: Python (PEP 257 + Google/NumPy styles), Java (Javadoc), TypeScript/JavaScript (JSDoc), C# (XML /// docs). Match each language's official conventions and the repo's existing docstring style.
When to use me
Documenting public APIs, libraries, or onboarding-heavy modules; converting docstrings between styles; satisfying doc-coverage CI (e.g. docstring lint rules).
House rules
- Detect before generating: scan the target file/package for an existing docstring style (Google vs NumPy in Python;
@paramvs{param}in JS) and MATCH it — mixed styles inside one module are worse than none. - Public symbols get docstrings; trivial private helpers don't (PEP 257's own rule).
- Document contracts, not implementations: parameters/returns/raises (or
@throws/<exception>), side effects, and units — never restate what the signature already says. - House references:
python-docstring-generator/typescript-jsdoc-generator/java-javadoc-generator/csharp-xml-doc-generatorskills when a single-language deep pass is needed.
Removed 2026-09: per-language docstring syntax catalogs with annotated examples (PEP 257 classes/functions, Javadoc tags, JSDoc tags, XML tags), full before/after documentation sessions, common-mistake galleries — each language's docstring spec is model-known; kept the style-matching rule and the coverage discipline.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed · -715 lines de5e27268c05
- 3mo ago First seen · 740 lines · 40 tokens per session scan A 9139478ff608
docstring-generator-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 40 tokens to every session and 393 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
docstring-generator-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| docstring-generator-skilldarellchua2/opencode-config-template | Skill | 6 | 2mo ago | Apache-2.0 | A | 40 | Claude Code, Codex |
| effect-v4ComposioHQ/composio | Skill | 31k | today | MIT | A | 159 | Claude Code, Codex |
| langgraph-docslangchain-ai/deepagents | Skill | 32k | today | MIT | A | 62 | Claude Code, Codex |
| stripe-projectse2b-dev/E2B | Skill | 15k | yesterday | Apache-2.0 | A | 51 | Claude Code, Codex |
| migrating-vercel-ai-sdk-and-eve-to-pydantic-aipydantic/pydantic-ai | Skill | 22k | today | MIT | A | 107 | Codex |
| migrating-pi-to-pydantic-aipydantic/pydantic-ai | Skill | 22k | today | MIT | A | 88 | Codex |
| migrating-mastra-to-pydantic-aipydantic/pydantic-ai | Skill | 22k | today | MIT | A | 73 | Codex |