Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Create/update .agent/constitution.md. Use when commands/boundaries/constraints must be confirmed before baseline or code changes. Draft v0 from repo evidence, then interview user.
.claude/skills/majiayu000-agent-ops-constitution/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-04 | ✗→✓ | ▲ Improved | 47% | 0% |
| case-09 | ✗→✓ | ▲ Improved | 25% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -8% | 0% |
| case-06 | ✗→✓ | ▲ Improved | 16% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 17% | 0% |
Make .agent/constitution.md baseline-ready by confirming:
Before starting constitution interview, ensure a context map exists:
1) Check if .agent/map.md exists 2) If NO map exists: 📍 No context map found. Creating one first to inform constitution questions... → Invoke agent-ops-context-map to generate .agent/map.md 3) If map exists but is stale (>30 days old or significant changes detected): 📍 Context map may be outdated. Refresh? [Y]es / [N]o 4) Use the map to:
1) Ensure context map exists (see above) 2) Run tool detection — invoke agent-ops-tools or aoc tools scan --save
.agent/tools.json with available development tools3) Inspect repo evidence (README, CI workflows, package/build files). Do not guess. 4) Draft v0 constitution:
TODO + UNCONFIRMED5) Interview the user:
6) Update constitution until:
7) Use agent-ops-state to update .agent/focus.md. 8) Invoke agent-ops-tasks for any setup work discovered.
After constitution setup, invoke agent-ops-tasks discovery:
1) Collect setup items discovered:
CHORE issueBUG issueDOCS issueSEC issueCHORE issue2) Present to user: 📋 Constitution setup found {N} items to address:
High:
Medium:
Create issues for these? A]ll / S]elect / N]one
3) Workflow continues:
Start from constitution template.
For LOW confidence work, constitution must be verified as complete before proceeding.
When confidence is LOW, verify constitution has ALL of these sections CONFIRMED (not TODO/UNCONFIRMED):
| Section | Required | Purpose | |---------|----------|---------| | Project scope | ✅ | What this project does | | Work areas: allowed | ✅ | Where changes are permitted | | Work areas: restricted | ✅ | Where caution is required | | Work areas: forbidden | ✅ | Where changes are never allowed | | Build command | ✅ | Single-line build command | | Test command | ✅ | Single-line test command | | Lint command | ✅ | Single-line lint command | | Format command | ⚪ Optional | Single-line format command | | Coverage command | ✅ for LOW | How to measure coverage | | Environment assumptions | ✅ | OS, runtime versions, dependencies | | Tool detection | ✅ | .agent/tools.json exists | | Constraints | ✅ | Project-specific limitations | | Default confidence | ✅ | LOW/NORMAL/HIGH |
Before LOW confidence work begins:
🎯 LOW CONFIDENCE CONSTITUTION CHECK
Checking constitution completeness for low confidence work...
| Section | Status |
|---------|--------|
| Project scope | ✅ CONFIRMED |
| Allowed areas | ✅ CONFIRMED |
| Restricted areas | ✅ CONFIRMED |
| Forbidden areas | ⚠️ TODO |
| Build command | ✅ CONFIRMED |
| Test command | ✅ CONFIRMED |
| Lint command | ✅ CONFIRMED |
| Coverage command | ❌ MISSING |
| Environment | ✅ CONFIRMED |
| Tool detection | ✅ .agent/tools.json exists |
| Constraints | ⚠️ UNCONFIRMED |
Result: INCOMPLETE — 3 items need confirmation
⚠️ Cannot proceed with low confidence work until constitution is complete.
Starting interview to fill gaps...For LOW confidence, also check constitution age:
| Age | Action | |-----|--------| | < 7 days | Proceed | | 7-30 days | Prompt: "Constitution is {N} days old. Review before proceeding?" | | > 30 days | Require: "Constitution is stale. Re-interview before low confidence work." |
If constitution is incomplete for LOW confidence:
agent-ops-interview for each gap📋 Constitution gaps for low confidence work:
1. Forbidden work areas (currently: TODO)
2. Coverage command (currently: MISSING)
3. Constraints (currently: UNCONFIRMED)
Starting interview to fill these gaps...
Q1: What areas of the codebase should NEVER be modified?
(These will be marked as forbidden work areas)Other measured skills in the registry, with their headline benchmark lift.