extract-skill
Reverse-engineer design systems, tokens, and components from live products or screenshots
Use when starting a complex or ambiguous task that risks scope drift
$ npx -y skills add nyldn/claude-octopus --skill skill-intent-contract --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/skill-intent-contractContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when starting a complex or ambiguous task that risks scope drift
name: skill-intent-contract description: "Use when starting a complex or ambiguous task that risks scope drift" disable-model-invocation: true
> **Host: Codex CLI** — This skill was designed for Claude Code and adapted for Codex. > Cross-reference commands use installed skill names in Codex rather than `/octo:*` slash commands. > Use the active Codex shell and subagent tools. Do not claim a provider, model, or host subagent is available until the current session exposes it. > For host tool equivalents, see `skills/blocks/codex-host-adapter.md`.
The intent contract creates a **persistent record of user intent** that:
This closes the loop between intention and delivery.
The intent contract is stored in the current resolved plan run directory as `session-intent.md`. Use `scripts/plan-storage.sh` to create or recover that directory; never write a loose intent file into `.claude/`.
# Intent Contract **Created**: [ISO timestamp] **Workflow**: [discover/embrace/review/etc.] **Status**: [active/validating/completed] ## Job Statement What the user is trying to accomplish (JTBD framework). [User's goal in plain language] ## Success Criteria ### Good Enough - [Minimum viable success criterion 1] - [Minimum viable success criterion 2] ### Exceptional - [Excellence criterion 1] - [Excellence criterion 2] ## Boundaries What this should NOT be: - [Boundary 1: What to avoid] - [Boundary 2: What's out of scope] ## Context & Constraints **Stakeholders**: [Who needs this to work for them] **Existing Assets**: [What to build on] **Timeline**: [Time constraints if any] **Technical Constraints**: [Platform, language, dependencies] ## Clarifying Context [Any answers from the 3-question pattern] ## Task Allocation **Risk**: [low | intermediate | high] **Initiative**: [human | AI | shared] — who starts and proposes **Control**: [human | AI | shared] — who oversees execution as it runs **Decision rights**: [human | AI] — who has final say on the outcome **AI role**: [none | executor | collaborator | challenger] **Execution disposition**: [AI-assisted | human-only | pending-user-decision] **Escalation decision**: [not-needed | pending | user's recorded resolution] **Resolved AUTONOMY_MODE**: [supervised | semi-autonomous | loop-until-approved | autonomous | not-applicable (contract-only sentinel)] ## Validation Checklist - [ ] Meets "good enough" criteria - [ ] Respects all boundaries - [ ] Works for all stakeholders - [ ] Builds on existing assets appropriately - [ ] Allocation still fits what the task turned out to be
Create an intent contract when:
**Do NOT create for:**
Run this before capturing intent. The question is not how to run the task across agents but whether it should be delegated at all, and if so, which parts of the authority go where. Framework: Afroogh, Varshney & D'Cruz (2025), *A Task-Driven Human-AI Collaboration* ([arXiv:2505.18422](https://arxiv.org/abs/2505.18422)).
**Classify risk.** Complexity is already scored elsewhere — defer to `estimate_complexity` and `classify_cynefin` in `scripts/lib/routing.sh` rather than re-deriving it. Risk is a separate axis that nothing in the codebase measures, so judge it here on three questions:
| Risk | Reading | |------|---------| | **Low** | Reversible, no material consequence, no named accountability. | | **Intermediate** | Reversible only at real cost, or consequence is unclear. | | **High** | Irreversible, materially consequential, or someone must answer for it. |
**Allocate the three dimensions separately.** They are independent, and treating them as one axis is the mistake this step exists to prevent. People readily hand AI the *initiative* on unfamiliar work while keeping control and decision rights — an allocation a single autonomy slider cannot express.
Record every outcome explicitly:
| Risk / complexity | Initiative | Control | Decision rights | AI role | Execution disposition | Escalation decision | Mode | |---|---|---|---|---|---|---|---| | Low / low | AI | AI | AI | executor | AI-assisted | not-needed | `autonomous` | | Low / high | shared | human | human | collaborator | AI-assisted | not-needed | `loop-until-approved` | | High / low | human | human | human | executor | AI-assisted | not-needed | `supervised` | | High / high | human | human | human | challenger | AI-assisted | not-needed | `supervised` |
The High / high allocation is adversarial: the human leads while AI attacks the proposed decision as a deliberate counterweight to the human's own bias. In High / low work, AI may execute only the bounded actions the human directly approves.
**The rule that inverts.** For **intermediate-risk** work where uncertainty is highest, the cited evidence says avoid AI entirely — "neither as a gatekeeper nor as a second opinion". This contradicts the smooth intuition that middling risk implies middling involvement, and it also sits in tension
Every AI model has blind spots. Claude Octopus supports twelve external provider integrations — Codex, Antigravity CLI, Copilot, Qwen, Ollama, Perplexity, OpenRouter, OrcaRouter, OpenCode, Cursor CLI, Grok, and Kimi Code — alongside the built-in Claude Code
Repo: nyldn/claude-octopus
Reverse-engineer design systems, tokens, and components from live products or screenshots
Multi-AI requirements scoping using available external providers (Double Diamond Define phase). Priority triggers: octo define, octo scope, co-define,…
Multi-AI validation, scoring, and review using available external providers (Double Diamond Deliver phase)
Multi-AI implementation using available external providers (Double Diamond Develop phase). DO NOT use for simple code edits, reading/reviewing code, built-in…
Multi-AI research using available external providers (Double Diamond Discover phase)
Decompose and execute large changes, migrations, or multi-issue fixes in parallel with quality gates