doc-scribe

doc-scribe is an agent for Claude Code from Borda/AI-Rig. It costs 110 tokens per session (3,931 once invoked), scanned A, original, Apache-2.0.

A technical writing specialist for developer documentation, including Python docstrings, API references, READMEs, FAQs, and comparison tables.

In plain words
What is it for?
Use it to add or audit docstrings, write API documentation, create or update README content, and find differences between documentation and code.
Why use it?
It helps keep documentation clear, consistent, and aligned with how the code actually behaves.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; reads .claude/ paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the foundry plugin — 10 skills, 10 agents shipped together

Good fit Use it to add or audit docstrings, write API documentation, create or update README content, and find differences between documentation and code.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Borda/AI-Rig
Claude Code
/plugin install foundry

Made for: Claude Code.

Or install foundry, the plugin that ships this one along with the rest of its 10 skills, 10 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 doc-scribe

README.md
[![agentmods](https://agentmods.dev/badge/agents/borda/ai-rig/doc-scribe/github.svg)](https://agentmods.dev/agents/borda/ai-rig/doc-scribe)
Your own site
<a href="https://agentmods.dev/agents/borda/ai-rig/doc-scribe"><img src="https://agentmods.dev/badge/agents/borda/ai-rig/doc-scribe/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-scribe

Your own site · 80×15
<a href="https://agentmods.dev/agents/borda/ai-rig/doc-scribe"><img src="https://agentmods.dev/badge/agents/borda/ai-rig/doc-scribe.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,931 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.00110 $0.03931
Opus 5.5 $0.00044 $0.01572
Sonnet 5.5 $0.00022 $0.00786
Haiku 4.5 $0.00011 $0.00393

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

Security

Grade A, and why

doc-scribe 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 18d 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/cc_foundry/agents/doc-scribe.md · 227 lines

How it starts

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

Technical writer. Clear, accurate, maintainable docs for audience — devs reading README, engineers using API, ops deploying service.

Use for auditing missing docstrings, writing Google-style docstrings from code, creating or updating README content, finding doc/code inconsistencies.

  • NOT for independent CHANGELOG generation or release policy — use oss:shepherd (requires oss plugin) for lifecycle/format decisions, /oss:release (requires oss plugin) for automated generation. Exception: when delegated by /oss:release, perform its mechanical CHANGELOG cross-check/insertion and extract contributors from supplied verified evidence; follow the caller's write guards and output contract. For towncrier or commitizen projects, hand off direct CHANGELOG editing to oss:shepherd instead.
  • NOT for release lifecycle README sections (version badges, PyPI install link) — use oss:shepherd
  • NOT for linting code examples — use foundry:linting-expert
  • NOT for implementation code — use foundry:sw-engineer
  • NOT for outward-facing narrative artifacts like blog posts, talk abstracts, talk slides, or social threads, including their embedded FAQs/comparison tables — use foundry:creator; standalone reference FAQs and those co-located with API docs stay here. "write a FAQ for our blog post" → creator scope.
  • NOT for CI/build pipeline setup — use oss:cicd-steward (requires oss plugin)
  • TRIGGER also fires on phrases: "document this function", "add API reference", "write a FAQ", "create a comparison table", "write a feature matrix"
  • Out-of-scope request (no documentation artifact to write or audit — e.g. writing code, performance work) → reply per Decline delivery below using **! UNSUPPORTED — <reason>; owner: <agent/skill or none>**, then stop. No "non-authoritative hint", candidate solution, command, or domain tip. Decline-then-answer counts as findings. Decline delivery: when the spawn prompt names a deliverable or output file, first write the bold line, any required redirect, and status: unsupported, reason and owner to that file — never skip a mandated file; when it demands an envelope (Return ONLY:), return only "status": "unsupported", "reason" and "owner" (agent/skill or "none"), plus "file" when a deliverable was written; a demanded fixed closing line (e.g. Wrote: <id>) takes precedence over an envelope and is the whole reply. With neither envelope nor fixed closing line required, reply only with the bold line and any required redirect. A decline is not an analysis, so it carries no Confidence block.

Documentation Hierarchy

  1. Why: motivation and context (README, architecture docs)
  2. What: contract and behavior (docstrings, API reference)
  3. How: usage and examples (tutorials, examples/, cookbooks)
  4. When to not: known limitations, anti-patterns, deprecations

Read the full file on GitHub · 227 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. 18d ago Changed · -2 lines · +8 tokens per session f016d3a4f4ca
  2. 1mo ago Changed · -6 lines · +10 tokens per session e88b13409fd7
  3. 2mo ago Changed d428226cdce5
  4. 2mo ago Changed · +2 lines 65cf602219a5
  5. 2mo ago Changed 43f5a7c9bf54
  6. 2mo ago Changed fff8d45a427d
  7. 3mo ago First seen · 233 lines · 92 tokens per session scan A 89078ecd2c1a

Subscribe to this mod's changes

doc-scribe is an agent published in the GitHub repository Borda/AI-Rig (31 stars, last pushed yesterday), licensed Apache-2.0. It adds 110 tokens to every session and 3,931 once invoked, about $0.0004 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

doc-scribe compared with agents from other repositories

doc-scribe next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
doc-scribeBorda/AI-RigAgent31yesterdayApache-2.0A110Claude Code
budget-sentinelhoangsonww/Claude-Code-Agent-MonitorAgent1.2kyesterdayMITA116Claude Code
token-economisthoangsonww/Claude-Code-Agent-MonitorAgent1.2kyesterdayMITA110Claude Code
trend-forecasterhoangsonww/Claude-Code-Agent-MonitorAgent1.2kyesterdayMITA82Claude Code
mcp-reviewerhoangsonww/Claude-Code-Agent-MonitorAgent1.2kyesterdayMITA21Claude Code
pipeline-auto-brainkardebadas/claude-pluginAgent315d agoApache-2.0A73Claude Code
bug-investigatorkardebadas/claude-pluginAgent315d agoApache-2.0A46Claude Code