attune-ai: Skill for Claude Code

.agents/skills/doc-gen/SKILL.md

doc-gen is a skill for Claude Code, Codex from Smart-AI-Memory/attune-ai. It costs 41 tokens per session (786 once invoked), scanned A, original, Apache-2.0.

A documentation tool for turning source code into docstrings, README sections, and API references.

In plain words
What is it for?
Use it to document a module, generate an overview or API reference, or audit documentation gaps.
Why use it?
It helps locate missing or outdated documentation and produce updates from the code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is Smart-AI-Memory/attune-ai's own configuration. It tells Claude Code and Codex how to work on attune-ai itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything attune-ai configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Smart-AI-Memory/attune-ai. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Smart-AI-Memory/attune-ai/main/.agents/skills/doc-gen/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Smart-AI-Memory/attune-ai

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for doc-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/smart-ai-memory/attune-ai/doc-gen/github.svg)](https://agentmods.dev/skills/smart-ai-memory/attune-ai/doc-gen)
Your own site
<a href="https://agentmods.dev/skills/smart-ai-memory/attune-ai/doc-gen"><img src="https://agentmods.dev/badge/skills/smart-ai-memory/attune-ai/doc-gen/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.

agentmods 80×15 button for doc-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/smart-ai-memory/attune-ai/doc-gen"><img src="https://agentmods.dev/badge/skills/smart-ai-memory/attune-ai/doc-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 786 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.00786
Opus 5 $0.00020 $0.00393
Sonnet 5 $0.00008 $0.00157
Haiku 4.5 $0.00004 $0.00079

Measured 5d ago against content hash 616a356fcabb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

doc-gen 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 5d 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.

.agents/skills/doc-gen/SKILL.md · 119 lines

How it starts

The opening of the file, as written. The whole thing — 119 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Doc Gen

IMPORTANT: Start your response with a context preamble.

Call help_lookup(topic="doc-gen", mode="preamble") and display the returned preamble text as a blockquote. Then tell the user they can say "tell me more" for a step-by-step guide, or answer the scoping questions below to proceed.

If the MCP call fails, fall back to:

Doc Gen — Generates documentation from your source code — docstrings, README sections, API references.

Scoping

Before running, ask:

  1. Target: "Which file or module needs documentation?"
  2. Type: "What kind of docs?"
    • Docstrings — Add or update Google-style docstrings
    • README — Generate a README section for a module
    • API reference — Generate full API documentation
    • Overview — High-level module explanation

MCP Tools

Tool What It Does
doc_gen Generate documentation for a module
doc_audit Check for stale or missing docs
doc_orchestrator Full documentation maintenance pipeline

Execution

Shared command workspace (preferred)

Open adapter doc-gen with the validated target and documentation type. Run the bound read-only doc_audit action first and publish audit_result with the exact proposed artifact paths. Present the proposal widget or Markdown; only an explicitly confirmed apply_docs action authorizes those paths.

After doc_gen, publish generation_result with the exact files reported from disk. The adapter hashes them independently and rejects writes outside or different from the approved set. Run the returned doc-import-audit/symbol reality probe and publish its exact command and outcome as validation_result. A partial write or failed reality probe must say “did not complete” and retain changed-file hashes for rollback. Preserve these gates and receipts in compact text when the shared tools are unavailable.

For docstring generation:

doc_gen(source_path="<target module>")

For a full documentation audit first:

Read the full file on GitHub · 119 lines

Changes

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.

  1. 5d ago Changed · +15 lines 616a356fcabb
  2. 8d ago First seen · 104 lines · 41 tokens per session scan A 663a74a08586

Subscribe to this mod's changes

doc-gen is a skill published in the GitHub repository Smart-AI-Memory/attune-ai (10 stars, last pushed today), licensed Apache-2.0. It adds 41 tokens to every session and 786 once invoked, about $0.0002 per session on Opus 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-08-31.