/codebase-blueprints:acquire-codebase-knowledge Optional: specific area to focus on, e.g. "architecture only", "testing and concerns"from codebase-blueprints
Maps and documents an existing codebase by producing seven evidence-backed docs covering stack, structure, architecture, conventions, integrations, testing, and concerns.
Ships in codebase-blueprints. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Create seven populated, evidence-backed documents under docs/codebase/ so a maintainer can understand stack, structure, architecture, conventions, integrations, tests, and concerns without relying on unsupported inference.
Use $ARGUMENTS as an optional focus area such as architecture only or testing and concerns. If $ARGUMENTS is empty, complete all seven documents fully. If a focus area is present, still run Phase 1 and Phase 4 across all seven documents; complete focused docs first and mark uninvestigated non-focus sections as [TODO].
Exactly these files must exist in docs/codebase/ before finishing:
| File | Purpose |
|---|---|
STACK.md | Language, runtime, frameworks, all dependencies. |
STRUCTURE.md | Directory layout, entry points, and key files. |
ARCHITECTURE.md | Layers, patterns, and data flow. |
CONVENTIONS.md | Naming, formatting, error handling, and imports. |
INTEGRATIONS.md | External APIs, databases, auth, and monitoring. |
TESTING.md | Frameworks, file organization, and mocking strategy. |
CONCERNS.md | Tech debt, bugs, security risks, performance bottlenecks, and high-churn files. |
Every non-trivial claim needs evidence from source files, config, or terminal output. Unknowns use [TODO]; team intent gaps use [ASK USER]. Every document includes a short evidence list with concrete file paths. Final response includes numbered [ASK USER] questions and intent-vs-reality divergences.
- [ ] Phase 1: Run scan, read intent documents
- [ ] Phase 2: Investigate each documentation area
- [ ] Phase 3: Populate all seven docs in docs/codebase/
- [ ] Phase 4: Validate docs, present findings, resolve all [ASK USER] items
docs/codebase/, run python3 "$SKILL_ROOT/scripts/scan.py" --output docs/codebase/.codebase-scan.txt from the target project root, and read intent documents named like PRD, TRD, README, ROADMAP, SPEC, or DESIGN before source code..codebase-scan.txt and references/inquiry-checkpoints.md to investigate each document. If the stack is ambiguous because there are multiple manifests, unfamiliar file types, or no package.json, read references/stack-detection.md.assets/templates/ into docs/codebase/ and fill them in this order: STACK.md, STRUCTURE.md, ARCHITECTURE.md, CONVENTIONS.md, INTEGRATIONS.md, TESTING.md, CONCERNS.md.references/inquiry-checkpoints.md; fix missing sections or unsupported claims and repeat until the validation pass criteria are met.[ASK USER] item as a numbered question, and highlight intent-vs-reality divergences.| Situation | Required behavior |
|---|---|
| Monorepo | Check workspaces, packages/, and apps/; map each sub-package separately. |
| Outdated README | Treat README as intent until cross-referenced with actual file structure. |
| TypeScript aliases | Resolve tsconfig.json paths such as @/foo to real filesystem paths before documenting structure. |
| Generated output | Do not document patterns from dist/, build/, generated/, .next/, out/, or __pycache__/. |
| Environment variables | Use .env.example, .env.template, or .env.sample; never treat committed secrets as acceptable. |
| Dependencies | Production stack comes from dependencies or equivalents such as [tool.poetry.dependencies]; document linters, formatters, and tests as dev tooling. |
| Test TODOs | TODOs under test/, tests/, __tests__/, or spec/ are coverage gaps, not production debt. |
| High-churn files | Use recent git history to flag fragile areas in CONCERNS.md. |
| Do not | Do |
|---|---|
| Claim "Uses Clean Architecture with Domain/Data layers" when directories do not show it. | State only what directory structure actually proves. |
Claim "This is a Next.js project" without checking package.json. | Check dependencies first and state what exists. |
Guess the database from a variable such as dbUrl. | Check manifests for pg, mysql2, mongoose, prisma, or equivalent. |
Document dist/ or build/ naming patterns as conventions. | Document source files only. |
Use the enhanced scan.py output sections during Phase 2: CODE METRICS, CI/CD PIPELINES including GitLab CI, CONTAINERS & ORCHESTRATION, SECURITY & COMPLIANCE, and PERFORMANCE & TESTING.
scripts/scan.py: run first from the target project root; requires Python 3.8+ and git.references/inquiry-checkpoints.md: per-template investigation and validation questions.references/stack-detection.md: stack ambiguity resolver.assets/templates/STACK.md, assets/templates/STRUCTURE.md, assets/templates/ARCHITECTURE.md, assets/templates/CONVENTIONS.md, assets/templates/INTEGRATIONS.md, assets/templates/TESTING.md, assets/templates/CONCERNS.md: copy into docs/codebase/.Default mode completes only the required core sections in each template. Extended mode adds optional sections only when repository complexity justifies them.
### Codebase knowledge result
**Status:** complete | needs user answers | blocked
**Docs directory:** `docs/codebase/`
| Document | Status | Evidence count | Notes |
| --- | --- | ---: | --- |
| `STACK.md` | complete | <count> | <notes> |
| `STRUCTURE.md` | complete | <count> | <notes> |
| `ARCHITECTURE.md` | complete | <count> | <notes> |
| `CONVENTIONS.md` | complete | <count> | <notes> |
| `INTEGRATIONS.md` | complete | <count> | <notes> |
| `TESTING.md` | complete | <count> | <notes> |
| `CONCERNS.md` | complete | <count> | <notes> |
### [ASK USER]
1. <question or none>
### Intent vs. reality
- <divergence or none>
docs/codebase/.docs/codebase/.codebase-scan.txt was generated with scripts/scan.py.[TODO], not guessed.[ASK USER] and listed in the final response.dist/, build/, generated/, .next/, out/, and __pycache__/ are excluded from conventions.references/inquiry-checkpoints.md passes with no unsupported claims and no empty required sections.assets/templates/ARCHITECTURE.md (opens in a new tab)assets/templates/CONCERNS.md (opens in a new tab)assets/templates/CONVENTIONS.md (opens in a new tab)assets/templates/INTEGRATIONS.md (opens in a new tab)assets/templates/STACK.md (opens in a new tab)assets/templates/STRUCTURE.md (opens in a new tab)assets/templates/TESTING.md (opens in a new tab)references/inquiry-checkpoints.md (opens in a new tab)references/stack-detection.md (opens in a new tab)scripts/scan.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/architecture-blueprint-generatorGenerate a comprehensive Project_Architecture_Blueprint.md by analyzing a codebase, detecting technology stacks and architectural patterns, documenting components, dependencies, diagrams, implementation patterns, testing, deployment, and governance. Use when asked to create an architecture blueprint, document project architecture, map layers, produce C4/UML/component diagrams, or guide new development consistency./code-exemplars-blueprint-generatorGenerate a configurable prompt blueprint for scanning a codebase and producing an exemplars.md catalog of high-quality, real code examples. Use this skill when the user asks for code exemplars, exemplar blueprint prompts, coding standard examples, repository pattern catalogs, or configuration variables for exemplar generation./copilot-instructions-blueprint-generatorGenerate technology-agnostic blueprints for comprehensive copilot-instructions.md files that make GitHub Copilot follow exact project versions, architecture, code quality, documentation, testing, and versioning conventions discovered from the codebase. Use this skill when the user asks for configuration variables, wants to create copilot-instructions.md, or needs repository-specific GitHub Copilot coding guidance./folder-structure-blueprint-generatorAnalyze a repository and generate Project_Folders_Structure_Blueprint.md with detected technologies, folder purposes, naming conventions, file placement patterns, navigation guidance, build outputs, and optional structure templates. Use this skill when the user asks for a project folder structure blueprint, repository organization map, architecture directory guide, monorepo or microservices structure analysis, or file placement conventions./project-workflow-analysis-blueprint-generatorGenerate technology-agnostic project workflow analysis blueprints that document end-to-end application flows, files, classes, entry points, service layers, data access, error handling, async processing, sequence diagrams, testing patterns, and implementation templates. Use this skill when the user asks to list all files/classes in a workflow, document representative workflows, map an API-to-database flow, or create an implementation-ready workflow blueprint./readme-blueprint-generatorGenerate a comprehensive README.md blueprint by analyzing repository documentation, .github/copilot files, copilot-instructions.md, architecture notes, technology stack, workflow, standards, tests, and exemplars. Use when asked to create or refresh a developer-focused README.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin codebase-blueprintsOther plugins' skills for the same job