agent-ops-constitution
БесплатноБез исполняемых скриптовНе проверенCreate/update .agent/constitution.md. Use when commands/boundaries/constraints must be confirmed before baseline or code changes. Draft v0 from repo evidence…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Constitution workflow (mandatory before baseline)
Goal
Make .agent/constitution.md baseline-ready by confirming:
- allowed/restricted/forbidden work areas
- single-line build/lint/test/format commands
- environment assumptions
- project-specific constraints
- issue-first workflow expectations
Pre-requisite: Context Map
Before starting constitution interview, ensure a context map exists:
- Check if
.agent/map.mdexists - If NO map exists:
→ Invoke📍 No context map found. Creating one first to inform constitution questions...agent-ops-context-mapto generate.agent/map.md - If map exists but is stale (>30 days old or significant changes detected):
📍 Context map may be outdated. Refresh? [Y]es / [N]o - Use the map to:
- Pre-populate candidate work areas
- Identify build/test tooling
- Understand project structure for interview questions
Procedure
- Ensure context map exists (see above)
- Run tool detection — invoke
agent-ops-toolsoraoc tools scan --save- Creates
.agent/tools.jsonwith available development tools - Identifies missing recommended tools based on detected project type
- Populates "Available tools" section in constitution
- Creates
- Inspect repo evidence (README, CI workflows, package/build files). Do not guess.
- Draft v0 constitution:
- every inferred item must cite its evidence ("CANDIDATE from
") - anything without evidence is
TODO+UNCONFIRMED - use detected tools to suggest build/lint/test commands
- every inferred item must cite its evidence ("CANDIDATE from
- Interview the user:
- one question per TODO/UNCONFIRMED item
- ask both "what should it be?" and "why?"
- Update constitution until:
- build + test commands are CONFIRMED
- work boundaries are CONFIRMED
- Use
agent-ops-stateto update.agent/focus.md. - Invoke
agent-ops-tasksfor any setup work discovered.
Issue Discovery During Constitution
After constitution setup, invoke agent-ops-tasks discovery:
Collect setup items discovered:
- Missing configuration →
CHOREissue - Broken scripts →
BUGissue - Missing documentation →
DOCSissue - Security concerns noted →
SECissue - Environment issues →
CHOREissue
- Missing configuration →
Present to user:
📋 Constitution setup found {N} items to address: High: - [BUG] Build script references missing file - [CHORE] CI workflow needs updating Medium: - [DOCS] README is outdated Create issues for these? [A]ll / [S]elect / [N]oneWorkflow continues:
- Issues created before baseline capture
- Baseline can now proceed with known issues documented
Template
Start from constitution template.
Low Confidence Completeness Check (MANDATORY)
For LOW confidence work, constitution must be verified as complete before proceeding.
Required Sections Checklist
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 |
Completeness Verification
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...
Staleness Check
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: " |
Установить agent-ops-constitution в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agent-ops-constitution?
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.
Как установить скилл agent-ops-constitution?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-ops-constitution запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic