skills/architect/SKILL.md
Given a PRD, produces an implementation architecture: file tree, component breakdown, data model, and a phased build plan with end conditions that a campaign orchestrator can execute directly. Multi-candidate evaluation for key decisions.
npx skillsauth add special-place-administrator/citadel_codex architectInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Architect skill converts a PRD into a buildable plan. It decides HOW to implement what the PRD describes. Its output is a campaign-ready architecture document.
One of:
Greenfield mode: PRD with Mode: greenfield, or no existing source files.
Produces a complete architecture from scratch.
Feature mode: PRD with Mode: feature, OR the user describes a feature
and the project has existing source files.
In feature mode:
If PRD exists, read it. Extract core features, technical decisions, end conditions, out of scope, integration points.
If no PRD, read the codebase. Scan file tree, read package.json/equivalent, read main entry points. Use the user's description as the feature spec.
For any architectural decision where multiple valid approaches exist:
Key decisions warranting multi-candidate evaluation:
Write to .citadel/research/architecture-{slug}.md:
# Architecture: {App Name}
> PRD: .citadel/research/prd-{slug}.md
> Date: {ISO date}
## File Tree
{Greenfield: complete file tree. Feature mode: ONLY new and modified files.}
## Component Breakdown
### Feature: {name}
- Files: {list}
- Dependencies: {what must exist first}
- Complexity: {low/medium/high}
## Data Model
### {Entity name}
- Fields: {name: type}
- Relationships: {connections}
## Key Decisions
### {Decision}: {What was chosen}
- **Chosen**: {approach} — because {reasoning}
- **Rejected**: {alternative} — because {why not}
## Build Phases
### Phase 1: {name}
- **Goal**: {one sentence}
- **Files**: {files created or modified}
- **Dependencies**: {what must exist first, or "none"}
- **End Conditions**:
- [ ] {machine-verifiable condition}
## Phase Dependency Graph
Phase 1 → Phase 2 → Phase 3
## Risk Register
1. {risk}: {mitigation}
2. {risk}: {mitigation}
3. {risk}: {mitigation}
Convert the architecture into a campaign-ready format:
Present the summary to the user and ask for approval.
---HANDOFF---
- Architecture: {app name}
- Document: .citadel/research/architecture-{slug}.md
- Phases: {count}
- Estimated complexity: {low/medium/high}
- Next: Campaign ready to execute
---
development
GitHub issue and PR investigator. Pulls open issues/PRs, classifies them, searches the codebase for root cause or reviews contributed code, proposes fixes with file:line references, and optionally implements fixes. Handles both issues and pull requests.
development
Generate and verify tests — happy path, edge cases, error paths — using the project's own framework and patterns
development
Four-phase root cause analysis: observe, hypothesize, verify, fix. Enforces investigation before code changes and stops guess-and-check debugging.
testing
First-run experience for the harness. Detects the project stack, scaffolds the .citadel/ state directory, generates configuration, runs one real task as a demo, and prints a reference card of all available skills. Gets someone from install to first `do` command in 5 minutes.