setup
Agent skill fromSethGammon/Citadel
First-run experience for the harness. Three modes: Recommended (guided, ~3 min), Full Tour (guided + skill walkthrough, ~8 min), and Express (zero questions, ~30 sec). Installs hooks first, detects stack, configures harness.json, runs a live demo on real code, and prints a reference card.
How to install setup
install setup
# install the Citadel pack with the skills CLI
npx skills add SethGammon/Citadel# or add only this skill to Claude Code: copy the folder
skills/setup/
# into
~/.claude/skills/setup/ (all projects)
.claude/skills/setup/ (one project)
1# /do setup — First-Run Experience23Configures the harness for a specific project: installs hooks, detects stack, writes harness.json, and optionally demos the system on real code. Flag: `/do setup --express` skips mode selection and runs Express directly. Reference tables and layouts: docs/SETUP_REFERENCE.md.45## Orientation67**Use when:** first-run configuration of Citadel on a new project -- installs hooks, generates harness.json, scaffolds .planning/.8**Don't use when:** harness is already configured and you want to verify it (use /verify); adding a single skill to an existing project (copy SKILL.md manually).910## Protocol1112### Step -1: ARCHIVE DETECTION (all modes, before anything else)1314Run `ls docs/citadel/ 2>/dev/null`. If `docs/citadel/` exists and contains `.md` files with `citadel-archive: true` in frontmatter, extract the `exported-at` date and prompt once:1516```17Found a Citadel archive from {exported-at date}.18 Campaigns: {N} Postmortems: {N} Backlog items: {N} Research: {N}1920Restore history into .planning/ during setup? [Y/n]21```2223Y or Enter → set `restoreArchive = true`, restore after Step 1 (below). n → skip silently. No archive found → skip entirely, no output.2425**ARCHIVE RESTORE** (runs after Step 1 if `restoreArchive = true`). Splitting: each `## Section Title` becomes one restored file; strip frontmatter before writing.2627| File | Restore to |28|---|---|29| `campaigns.md` | Split sections → `.planning/campaigns/completed/{name}.md` |30…
Excerpt shown under the repository's MIT license.
