From dna
Compile decisions to human contract, agent contract, or both. Explicit only.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dna:compileThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Compile decisions into human contract, agent contract, or both.
Compile decisions into human contract, agent contract, or both.
Usage: /dna:compile human, /dna:compile agent, /dna:compile (both)
contracts/human.md)Organized by level. Narrative prose. What people agree on.
# Human Contract — [project name from .dna/config.json]
## Identity (Level 1)
[compiled from level 1 decisions]
## Direction (Level 2)
[compiled from level 2 decisions]
## Strategy (Level 3)
[compiled from level 3 decisions]
## Tactics (Level 4)
[compiled from level 4 decisions]
For each level section:
contracts/agent.md)Structured for agent consumption. Constitution + project decisions.
# Agent Contract — [project name from .dna/config.json]
## Principles
[from constitution decisions]
## Boundaries
[assumptions + constraints from all levels]
## Authority
[what's autonomous vs HITL — from stakes + tradeoffs]
## Context
[key decisions the agent needs, with Detail inline]
## Rules
[concrete enforcement rules from high-stakes decisions]
Completeness analysis: Run dna-graph progress --json to assess graph health before compilation. If foundation is thin (level 1-2 gaps), warn the person before proceeding.
CLAUDE_PROJECT_DIR="$PROJECT_DIR" python3 "$TOOL" progress --json
Read .dna/config.json to get the project name for contract headers
Get the deterministic compilation skeleton:
CLAUDE_PROJECT_DIR="$PROJECT_DIR" python3 "$TOOL" compile-manifest --target {target} --json
Read decisions listed in the manifest (not all decisions — the manifest provides the exact set)
Sort by level, then by dependency order within level
Compile the target contract(s) following the structure above
Present compiled output for human approval
Write to contracts/ on approval
suggested, mark it clearly in the output<!-- Compiled from: DEC-001, DEC-003, ... --> comments per sectionconstitution/ directorydna/ directorycontracts/ directory.dna/config.jsonCLAUDE_PROJECT_DIR="$PROJECT_DIR" python3 "$TOOL" <command>format.md in the dna pluginnpx claudepluginhub fraim-ai/fraim-toolkit --plugin dnaDrafts binding contract specifications after grilling consensus approval, strictly prohibiting code generation to govern subsequent project phases.
Sets up multi-agent teams for complex projects with file-based planning, per-agent directories, and teammate spawning. Triggers on team/swarm/start-project requests.
Authors enforceable project constitutions for greenfield projects with testable principles, enforcement mechanisms, rationale, and amendment processes.