generate-docs

generate-docs is an agent for Claude Code from sjungling/sjungling-claude-plugins. It costs 50 tokens per session (961 once invoked), scanned A, original, MIT.

An agent that builds documentation for an Xcode project, Apple's development environment for its platforms, from the project's code symbols.

In plain words
What is it for?
Use it to run documentation builds, extract symbol information, create CSV files, and update the project's CLAUDE.md file.
Why use it?
It makes the project's code structure easier for future developers and coding agents to discover.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; mentions CLAUDE.md.

Part of the swift-engineer plugin — 1 skill, 3 commands, 2 agents shipped together

Good fit Use it to run documentation builds, extract symbol information, create CSV files, and update the project's CLAUDE.md file.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sjungling/sjungling-claude-plugins/generate-docs
Install

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.

Clone the repo
git clone --depth 1 https://github.com/sjungling/sjungling-claude-plugins

Made for: Claude Code.

Or install swift-engineer, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 2 agents.

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 generate-docs

README.md
[![agentmods](https://agentmods.dev/badge/agents/sjungling/sjungling-claude-plugins/generate-docs/github.svg)](https://agentmods.dev/agents/sjungling/sjungling-claude-plugins/generate-docs)
Your own site
<a href="https://agentmods.dev/agents/sjungling/sjungling-claude-plugins/generate-docs"><img src="https://agentmods.dev/badge/agents/sjungling/sjungling-claude-plugins/generate-docs/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 generate-docs

Your own site · 80×15
<a href="https://agentmods.dev/agents/sjungling/sjungling-claude-plugins/generate-docs"><img src="https://agentmods.dev/badge/agents/sjungling/sjungling-claude-plugins/generate-docs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 961 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.
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.00050 $0.00961
Opus 5.5 $0.00020 $0.00384
Sonnet 5.5 $0.00010 $0.00192
Haiku 4.5 $0.00005 $0.00096

Measured 19d ago against content hash 770ee132da26, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

generate-docs 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 19d 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.

plugins/swift-engineer/agents/generate-docs.md · 86 lines

How it starts

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

Build symbol graph documentation for the current Xcode project and make it discoverable to future LLM sessions. The dispatching command will provide context including the plugin root path and optional scheme argument.

For the visual workflow diagram, see <plugin-root>/commands/references/generate-docs-workflow.mmd.

Step 1: Run generate-docs.sh

Execute the helper script which handles scheme discovery, docbuild, symbol graph extraction, and transformation to structured CSVs:

bash <plugin-root>/commands/references/generate-docs.sh [scheme]
  • The <plugin-root> path and optional scheme argument will be provided by the dispatching command

The script outputs one JSON line per step with the structure: {"step": "...", "status": "...", "output": "..."}.

Step 2: Handle Results

Parse the JSON output from the script:

  1. preflight step: If status is "error", report the error and stop
  2. scheme step: If status is "error", report available schemes and stop
  3. docbuild step: If status is "error", report the build error and suggest running /build-and-run first to fix compilation issues
  4. extract step: If status is "warning", report the warning and stop (no symbol graphs to transform)
  5. transform step: If status is "error", report the transform error and stop
  6. summary step: Extract modules, types, methods, relationships counts from the output object

Step 3: Update .gitignore

Check if .gitignore exists in the project root:

  • If .gitignore doesn't exist, create it
  • Check if .build/ is already covered (which would include all subdirectories)
  • If not, check for .build/api-docs/, .build/docs/, and .build/symbol-graphs-raw/ individually
  • Append any missing entries

Do NOT add a blanket .build/ entry — the project may manage that differently.

Step 4: Update CLAUDE.md

Check if CLAUDE.md exists in the project root. If not, create it.

Search for the marker <!-- generate-docs --> in CLAUDE.md:

  • If found, replace everything from <!-- generate-docs --> to <!-- /generate-docs --> (inclusive) with the block below
  • If not found, append the block below to the end of CLAUDE.md

Read the full file on GitHub · 86 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. 19d ago Changed 770ee132da26
  2. 3mo ago First seen · 86 lines · 50 tokens per session scan A 5c58740a1776

Subscribe to this mod's changes

generate-docs is an agent published in the GitHub repository sjungling/sjungling-claude-plugins (15 stars, last pushed 7d ago), licensed MIT. It adds 50 tokens to every session and 961 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-08-30.

Related

generate-docs compared with agents from other repositories

generate-docs next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
generate-docssjungling/sjungling-claude-pluginsAgent157d agoMITA50Claude Code
playwright-test-generatormicrosoft/playwrightAgent102ktodayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent82kyesterdayMITA33Claude Code
AVM Owner Triagegithub/awesome-copilotAgent42ktodayMITA61Claude Code
Ultimate Transparent Thinking Beast Modegithub/awesome-copilotAgent42ktodayMITA11Claude Code
Pimcore Expertgithub/awesome-copilotAgent42ktodayMITA26Claude Code
WinForms Expertgithub/awesome-copilotAgent42ktodayMITA19Claude Code