/codebase-architecture:architecture-to-specfrom codebase-architecture
Turn architecture analysis into a PRD or spec without interviewing. Use after codebase-architecture-analyze or for a feature spec.
Ships in codebase-architecture. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Synthesize the current conversation and codebase understanding into a spec (PRD). Do not interview — only use what is already known (plus quick code reads to fill gaps).
This is the spec step of the reimplementation playbook after analyze/extract (and optional improve). See playbook-chain.md.
Invoke skill codebase-design before writing the spec. Use design vocabulary and the project domain glossary throughout.
projects/{slug}/architecture/ or {repo}/docs/architecture/), read them first.projects/{slug}/work/YYYY-MM-DD-{topic}/spec.md (create work/ + dated folder under that project as needed){TARGET_REPO}/docs/architecture/spec-{repo_basename}.md ({repo_basename} = remote basename or directory basename; always defined)Issue trackers are never required. Prefer wiki work items in SkillWiki fleets; docs fallback is always valid.
## Problem Statement
The problem from the user's perspective.
## Solution
The solution from the user's perspective.
## User Stories
Long numbered list:
1. As an <actor>, I want a <feature>, so that <benefit>
## Implementation Decisions
- Modules to build/modify (design vocabulary: module, interface, seam)
- Interface changes (invariants, errors — not ephemeral file paths)
- Architectural decisions, schema, external contracts
- Do NOT include specific file paths or large code dumps
- Exception: prototype snippets that encode a decision (state machine, schema) — trim to decision-rich parts
## Testing Decisions
- Good tests assert external behaviour through seams, not implementation details
- Which modules / seams are tested
- Prior art in the codebase
## Out of Scope
...
## Further Notes
...
Point to next execution skill: external codebase-migrate (or repo migrate workflow) for multi-file transforms; normal implementation skills for small features. Migrate is not bundled in this plugin.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub karlorz/agent-skills --plugin codebase-architecture5 skills in this plugin
/codebase-architectureRoute architecture work to analyze, design, improve, or to-spec. Use when the user asks for codebase-architecture./codebase-architecture-analyzeAnalyze architecture into C4, ADRs, debt, and reimplementation maps. Use when documenting or reverse-engineering a repo./codebase-designDesign a module interface, seams, and testability. Use when another architecture skill needs deep-module vocabulary.Other plugins' skills for the same job