Delegate a task to a subagent or a person with a Commander's Intent contract (purpose, end state, limits, stop conditions) instead of steps, then verify that the change stayed inside the allowed paths and that the end state checks pass.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Skill?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/joaquincuevas-skill-2550504b)
---
name: intent
description: Delegate a task to a subagent or a person with a Commander's Intent contract (purpose, end state, limits, stop conditions) instead of steps, then verify that the change stayed inside the allowed paths and that the end state checks pass.
disable-model-invocation: true
argument-hint: [task to delegate]
---
# intent — delegate the why, not the how
You are writing a delegation contract and, later, checking the result against it. A bundled script lints the
contract and verifies the change; it cannot tell whether the work is *good*, only whether it stayed inside the
contract and passed its own checks.
Task: $ARGUMENTS
## Tooling
Stdlib-only Python. Use whichever of `python3` / `python` exists:
```bash
python3 "${CLAUDE_SKILL_DIR}/scripts/run.py" init .clarent/intent.md --purpose "<why>" # records HEAD as base
python3 "${CLAUDE_SKILL_DIR}/scripts/run.py" lint .clarent/intent.md
python3 "${CLAUDE_SKILL_DIR}/scripts/run.py" verify .clarent/intent.md # exit 2 = not done
```
## Procedure
1. **Write the contract** with `init`, then fill it:
- `purpose`: why this matters, in one sentence someone new to the code understands.
- `end_state`: what is *observably* true when done (a command that passes, a file that exists, a number).
- `verification`: the commands that prove the end state, exactly as you would run them.
- `stop_conditions`: when the delegate must stop and ask instead of improvising.
- `[constraints]`: `allowed_paths` and `forbidden_paths` (git-style globs), `must` / `must_not` for what a
program cannot check. Optional `freedom`: what the delegate may decide alone. Keep `key_tasks` to the few that
matter; four or more numbered steps is a script and `lint` warns.
2. **Lint** until there are no errors. Read the warnings out to the user.
3. **Delegate.** Give the subagent the whole `intent.md` (the front matter and the context below it), not a summary.
4. **Verify** when the delegate says it is done. Exit 2 means a forbidden or out-of-scope file, or a failed check:
send the report back and do not accept the work. Then confirm every `must` / `must_not` line by reading the diff.
5. **Optional hook.** To enforce this automatically for subagents, register `clarent intent hook` as a
`SubagentStop` hook (see the README): it verifies `.clarent/intent.md` and returns exit 2 with the report,
up to 3 times, then lets the subagent stop.
## Rules
- The end state must be checkable. "Cleaner code" is not an end state.
- Do not widen `allowed_paths` after the fact to make `verify` pass without telling the user.
- `verify` passing means "inside the contract", not "correct".