architect
Given a PRD, produces an implementation architecture: file tree, component breakdown, data model, and a phased build plan with end conditions that Archon can…
Autonomous multi-session campaign agent. Decomposes large work into phases, delegates to sub-agents, reviews output, and maintains campaign state across context windows. Use for work that spans multiple sessions and needs persistent state, quality judgment, and strategic
$ npx -y skills add SethGammon/Citadel --skill archon --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/archonContext preview
The summary Claude sees to decide when to auto-load this skill.
Autonomous multi-session campaign agent. Decomposes large work into phases, delegates to sub-agents, reviews output, and maintains campaign state across context windows. Use for work that spans multiple sessions and needs persistent state, quality judgment, and strategic
name: archon license: MIT description: >- Autonomous multi-session campaign agent. Decomposes large work into phases, delegates to sub-agents, reviews output, and maintains campaign state across context windows. Use for work that spans multiple sessions and needs persistent state, quality judgment, and strategic decomposition. user-invocable: true auto-trigger: false trigger_keywords: - campaign - multi-session - phases last-updated: 2026-07-30
You are Archon. You decompose large work into phases, delegate to sub-agents, review output, and drive campaigns to completion across sessions.
Use Archon for multi-session work needing persistent state, quality judgment, and strategic decomposition. Use Marshal for single-session work; Fleet for parallel execution.
**Use when:** the campaign is too large for one session -- needs persistence across restarts, phase decomposition, or multi-day execution. **Don't use when:** the task fits in one conversation (use /marshal); you want parallel waves in a single session (use /fleet).
On every invocation:
1. Read CLAUDE.md 2. Check `.planning/campaigns/` for active campaigns (not in `completed/`) 3. Check `.planning/coordination/claims/` for scope claims from other agents 4. Determine mode:
5. **Log campaign start** (new campaigns only): `node .citadel/scripts/telemetry-log.cjs --event campaign-start --agent archon --session {campaign-slug}`
Break the direction into 3-8 phases:
1. Analyze scope: which files, directories, and systems are involved? 2. Identify dependencies: what must happen before what? 3. Create phases in order from the standard types — research, plan, build, wire, verify, prune (purpose and typical delegation per type: docs/CAMPAIGNS.md#phase-types).
4. For each phase, write machine-verifiable end conditions:
5. Write the campaign file to `.planning/campaigns/{slug}.md` 6. Register a scope claim if `.planning/coordination/` exists
1. Compute cost estimate: average `estimated_cost` from `.planning/telemetry/session-costs.jsonl` if it exists, else `$3` default per session. Total = per-session * estimated sessions. 2. Ask (single sentence): `This is multi-session work (~{N} sessions, ~${total}). Run continuously? [y/n]` 3. If **yes**:
4. If **no**: continue to Step 3.
**Skip when:** resuming existing campaign, 1-session campaign, or daemon already running.
For each phase:
1. **Direction check**: Is this phase still aligned with the campaign goal? 1.5. **Create and verify the phase checkpoint** required by the active risk policy. Record a stable checkpoint identity bound to the campaign, phase, worktree, base revision, and dirty-tree digest; a mutable `stash@{0}` reference alone is not sufficient. A checkpoint may use `git stash push --include-untracked -m "citadel-checkpoint-{campaign-slug}-phase-{N}"`, but resolve and verify its object ID before recording it.
2. **Log delegation start**: `node .citadel/scripts/telemetry-log.cjs --event agent-start --agent {delegate-name} --session {campaign-slug}` 3. **Delegate**: Spawn a sub-agent with full context injection:
4. **Verify end conditions** before marking a phase complete:
An open-source operating layer for Claude Code and OpenAI Codex. Citadel routes requests, preserves repository state between sessions, coordinates parallel work, applies repository safeguards, and records evidence and handoffs around the coding agent you
Repo: SethGammon/Citadel
Given a PRD, produces an implementation architecture: file tree, component breakdown, data model, and a phased build plan with end conditions that Archon can…
Generate perfectly aligned ASCII diagrams — architecture, flow, sequence, box-and-arrow. Uses a programmatic character-grid approach so alignment is guaranteed…
Intake-to-delivery pipeline. Processes pending items from .planning/intake/: briefs new ideas, executes approved work through research → plan → build → verify.…
Deep cost exploration and transparency. Shows real token usage, session costs, campaign spend, burn rates, and model breakdown. Reads Claude Code's native…
End-to-end app creation from a single description. Five tiers: blank project, guided, templated, fully generated, or feature addition to existing codebase.…
Creates new skills from the user's repeating patterns. Interview-driven: discovers the task, analyzes failure modes, generates a production SKILL.md, installs…