citadel-knowledge
Background knowledge about Citadel Legion architecture, agents, memory, brain, skills, and hooks. Claude loads automatically when working on the orchestration system itself.
- License 许可
- GPL-3.0
- 最近更新
- 2026-07-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- citadel-knowledge
- description
- Background knowledge about Citadel Legion architecture, agents, memory, brain, skills, and hooks. Claude loads automatically when working on the orchestration system itself.
- when_to_use
- citadel, legion, brain, agent, memory, skill, hook, workflow, up, graph, capsule, preflight, audit-gate, orchestration
- user-invocable
- false
03 SKILL.md 正文
Citadel Legion — Architecture Reference
Purpose: AI orchestration layer on top of Claude Code. Coordinates agents, brain graph, memory, skills, and hooks into a managed workflow system.
Core components
| Component | Location | Purpose |
|---|---|---|
| Brain graph | docs/brain/ |
Routing index; nodes describe topics, agents, files |
| Agents | .claude/agents/*.md |
Specialized subagents invoked by name |
| Skills | .claude/skills/*/SKILL.md |
Slash commands and auto-loaded capabilities |
| Memory | docs/ai-context/ |
Durable context across sessions |
| Hooks | .claude/hooks/ |
Lifecycle automation |
| State | .claude/state/ |
Artifacts, sessions, human-intervention queue |
Memory files
active-memory.md— current goals and in-progress workwhat-worked.md— validated patternswhat-did-not-work.md— known pitfallsfeature-implementation-patterns.md— reusable shortcuts
Brain query
python tools/brain_query.py "<topic>" --limit 3
Start/stop
citadel up # start
citadel down # stop
citadel up --restart # clean restart
Never invoke claude directly — bypasses preflight and daemon.
Audit gate (stop hook)
Every session stop runs .claude/hooks/audit-gate.sh. Requires:
.claude/state/artifacts/current/file-map.md.claude/state/artifacts/current/feature-contract.md- Required agents from execution manifest
Agent ledger pattern
task-planner → token-efficiency-auditor → effort-decider → domain agents → efficiency-auditor (last). Domain-logic gate: only invoke domain-logic-validator / query-specialist when prompt explicitly touches workspace-specific domain logic or queries.
04 同仓库更多 Skills
workspace-visualize
Generate an interactive collapsible HTML tree view of the codebase with file sizes, type breakdown bar chart, and color-coded file types. Opens in your default browser. Use when exploring a new repo, understanding project structure, or identifying large files before refactoring.
testing-strategy-review
暂无简介
technical-domain-routing
暂无简介
target-codebase-overview
暂无简介
skill-forge
暂无简介
settings-reference
Claude Code settings.json reference for permissions, sandbox, plugins, skill visibility, and configuration options. Claude loads automatically when asked about settings, permissions, configuration, or hooks.