Generate, enrich, and maintain agentic development documentation for any codebase. Produces AGENTS.md + topic files with progressive disclosure, drift detection, and SME-directed enrichment.
Mechanical stub creator. Receives an approved topic list from the orchestrator and creates stub files. Does NOT scan, propose, or make decisions.
Use when generating or enriching documentation content for approved topics. Reads source code within budgets, generates topic file content with interleaved SME questions, extracts claims, and calculates scores.
Use when all documentation topics are current or lightly drifted. Detects mechanical and decision drift, auto-fixes broken references, flags stale content for review, validates cross-topic consistency, and recalculates scores. Semantic drift evaluation is handled by the review subagent.
Use when reviewing documentation content after drafting or maintenance. Runs a two-pass review (mechanical + semantic) against source code, classifies findings, and produces a structured report with verdict.
Modifies files
Hook triggers on file write and edit operations
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A Claude Code plugin that generates, enriches, and maintains agentic development documentation for any codebase.
Codebase Scribe produces structured documentation that helps AI agents (and humans) understand your codebase:
docs/agents/) — Deep-dive documents organized by area: architecture, patterns, testing, build/deploy, and moreThe plugin adapts to any codebase — it discovers your repo's structure first, then proposes a documentation layout tailored to what it finds.
The plugin operates in three modes, automatically selected based on documentation state:
| Mode | When | What happens |
|---|---|---|
| Seed | No docs exist | Scans repo structure, proposes topics, creates documentation stubs |
| Draft | Stubs or thin docs exist | Reads source code, fills stubs with content, extracts claims |
| Maintain | Docs are current | Detects drift between code and docs, auto-fixes broken references, flags changes for review |
After each Draft or Maintain run, a Review gate automatically verifies documentation accuracy using a separate review agent (see Documentation Review below).
Add the marketplace to your ~/.claude/settings.json:
{
"extraKnownMarketplaces": {
"codebase-scribe": {
"source": {
"source": "github",
"repo": "TommasoBagassi/codebase-scribe"
}
}
},
"enabledPlugins": {
"codebase-scribe@codebase-scribe": true
}
}
Restart Claude Code. The plugin will be downloaded and available automatically.
Clone the repo somewhere on your machine:
git clone https://github.com/TommasoBagassi/codebase-scribe.git /path/to/codebase-scribe
The repo ships with its own .claude-plugin/marketplace.json, so you just need to point Claude Code at the cloned directory. Add to your ~/.claude/settings.json:
{
"extraKnownMarketplaces": {
"codebase-scribe-local": {
"source": {
"source": "directory",
"path": "/path/to/codebase-scribe"
}
}
},
"enabledPlugins": {
"codebase-scribe@codebase-scribe-local": true
}
}
Restart Claude Code.
Run /plugin in Claude Code to check the plugin is loaded. You should see codebase-scribe listed with no errors.
/codebase-scribe — scans your repo and proposes documentation topics/codebase-scribe again — reads source code and fills stubs with contentFor large repos (5+ topics), drafting happens in batches of 3 topics per run to ensure quality. Just keep running /codebase-scribe until all topics are drafted — the plugin tracks progress and picks up where it left off.
Each subsequent run detects what's changed and updates accordingly. The plugin progresses through phases automatically: seed → draft → maintain.
The plugin captures design decisions and architectural rationale alongside auto-generated documentation:
During regular drafting, the plugin identifies deliberate-but-unexplained patterns in your code and asks one question per topic — "Why this approach?" Answers are woven into the documentation and tracked as human-sourced knowledge.
During focus mode (/codebase-scribe focus:"area"), the plugin asks 3-5 deeper observation-driven questions about the specific area. This is where the most valuable tribal knowledge gets captured — design constraints, rejected alternatives, known fragilities.
Over time, the Human Input score in STATUS.md tracks how much of each topic has human knowledge behind it, increasing naturally as you engage with the documentation.
Design decisions are tracked in .claims.yml with provenance — the maintain mode detects when code changes might invalidate a recorded decision and flags it for your review on the next run.
Every documentation change goes through a quality gate powered by a separate review agent:
Automatic review — After drafting or maintenance, a fresh-session review agent verifies documentation against source code. It checks file path existence, function name accuracy, behavioral claims, and coverage gaps.
Two-pass verification:
npx claudepluginhub tommasobagassi/codebase-scribe --plugin codebase-scribeFeature development with code-architect/explorer/reviewer agents, CLAUDE.md audit and session learnings, and Agent Skills creation with eval benchmarking from Anthropic.
Production-grade engineering skills for AI coding agents — covering the full software development lifecycle from spec to ship.
Comprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
Intelligent draw.io diagramming plugin with AI-powered diagram generation, multi-platform embedding (GitHub, Confluence, Azure DevOps, Notion, Teams, Harness), conditional formatting, live data binding, and MCP server integration for programmatic diagram creation and management.
Access thousands of AI prompts and skills directly in your AI coding assistant. Search prompts, discover skills, save your own, and improve prompts with AI.
Upstash Context7 MCP server for up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your LLM context.