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…
Reviews pending fleet worktree merges before they're accepted. Reads the merge-check queue, detects file-level conflicts between branches, proposes a safe merge order, and surfaces reconciliation plans for overlapping changes.
$ npx -y skills add SethGammon/Citadel --skill merge-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/merge-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Reviews pending fleet worktree merges before they're accepted. Reads the merge-check queue, detects file-level conflicts between branches, proposes a safe merge order, and surfaces reconciliation plans for overlapping changes.
name: merge-review license: MIT description: >- Reviews pending fleet worktree merges before they're accepted. Reads the merge-check queue, detects file-level conflicts between branches, proposes a safe merge order, and surfaces reconciliation plans for overlapping changes. user-invocable: true auto-trigger: false trigger_keywords: - merge review - check merges - any conflicts - fleet conflicts - pending branches - safe to merge last-updated: 2026-03-26
**Use when:** reviewing pending fleet worktree merges before accepting them into the main branch. **Don't use when:** reviewing general code quality (use /review); checking CI status before merging (use /pr-watch).
/merge-review # Process the full queue
/merge-review {branch} # Review a specific branch onlyRead `.planning/telemetry/merge-check-queue.jsonl`. Each line is a JSON object:
{"branch": "fleet/task-abc", "worktree": "/path/to/worktree", "queuedAt": "ISO"}If the file doesn't exist or is empty: > "No pending merge reviews. Fleet agents haven't completed any worktrees recently." Stop here.
If invoked with a specific branch (`/merge-review {branch}`): filter to that branch only.
Run `git diff main..{branch} --name-only`, `--stat`, and `git branch --list {branch}`.
If the branch no longer exists: mark `status: "merged"`, note "likely already merged. Skipped.", continue.
Compare changed file sets pairwise. For each pair sharing files, read `git diff main..{branch} -- {file}` for both and classify:
For each branch:
Order branches: fewest conflicts first, most conflicts last.
If circular dependencies exist (A conflicts with B, B conflicts with C, C conflicts with A): escalate to the user — do not propose an impossible order.
## Merge Review: {N} branch(es) pending
### Branch: {name}
Files changed: {N}
Overlap with other branches: {branch-X} ({file-list}) | none
Risk: low | medium | high
Recommendation: merge | review-first | resolve-conflict
---
[repeat for each branch]
---
### Conflicts Detected
{branch-A} and {branch-B} both modified:
- {file}: {brief description — e.g., "A adds export, B removes same export"}
Recommended resolution: {which change to keep, or how to combine them}
[repeat for each conflict pair]
### Proposed Merge Order
1. {branch} — no conflicts, safe to merge first
2. {branch} — depends on #1; review {file} after merging #1
3. {branch} — manual conflict resolution needed in {file} before merging
### Summary
Branches ready to merge: {N}
Branches needing review: {N}
Branches with hard conflicts: {N}If all branches are conflict-free:
## Merge Review: {N} branch(es) pending — No conflicts detected
All branches can be merged in any order. Recommended order (by change size, smallest first):
1. {branch} — {N} files
2. {branch} — {N} filesAfter producing the report, mark reviewed items in the queue:
Write the updated queue back to `.planning/telemetry/merge-check-queue.jsonl`.
Run `git worktree list --porcelain`. For each non-main worktree: check `git branch --merged HEAD`. If merged and clean: run `git worktree remove "{path}" --force` and `git branch -d "{branch}"`. No user confirmation needed. Report count: "Cleaned up {N} merged worktree(s): {branch-names}".
---
**Queue empty:** Output "No pending merge reviews." and stop.
**Branch no longer exists:** Remove from queue, note, continue.
**Branch not in queue:** Note "not in the merge queue" and suggest `/merge-review` to see all.
**All branches conflict (circular):** List all conflicts; do not propose an order; escalate to user.
**One branch pending:** Skip conflict detection; output single-branch review (files, stat, recommendation).
**Large diff (>500 lines):** Summarize changed areas; link to `git diff` command for details.
**Worktree path missing but branch exists:** Proceed with git diff using branch name; worktree existence not required.
---
**Disclosure:** "Reviewing pending fleet worktree merges. Read-only — no changes applied." **Reversibility:** green — read-only review; no files merged or modified **Trust gates:**
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…
Autonomous multi-session campaign agent. Decomposes large work into phases, delegates to sub-agents, reviews output, and maintains campaign state across…
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.…