intent
Skill1 starsChanged 5 months agoMITView on GitHub
Capture the intent of a code change as plain, factual context: What it does, Why, what is in/out of Scope, and the Decisions reviewers shouldn't re-litigate. Stage 0 of the `gate` code pre-submission pipeline. Downstream stages (lint/test gate, state-space-minimization, mutation testing, conventions, review-crew, fold-findings) review the change against this stated purpose, and it becomes the PR body later. Use when the user says "establish intent", "capture the intent", "what is this change for", "/intent", or before running the gate pipeline on a fresh branch. Produces plain context, NOT voiced or scrubbed prose -- voice and AI-tell scrubbing happen later, at the open-PR stage. AI-written is fine here.
4 other projects use a version of this.
Adopted by
Most recently taken up by
- rasatpetabit/ai-skillstheir own version, first seen Sep 25, 2026
- Yeachan-Heo/oh-my-claudecodetheir own version, first seen Sep 22, 2026
- InSciCo/i-frameworktheir own version, first seen Jul 13, 2026
- ntholm86/principles-of-earned-autonomy-skills-suitetheir own version, first seen Jun 21, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- Yeachan-Heo/oh-my-claudecode★ 40ksame name
- InSciCo/i-framework★ 4same name
- ntholm86/principles-of-earned-autonomy-skills-suite★ 4same name
- rasatpetabit/ai-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- anti-slopSkill
- gateSkill
- handoffSkill
- retroSkill
- rust-conventionsSkill
- scrub-ai-tellsSkill
- skill-distillSkill
- tixSkill
- tutorSkill
- typescript-conventionsSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
This is not user-facing prose: Do NOT apply voice or scrub AI tells here.
- Distinctive: line 24
Keep it plain, clear, factual.
- Distinctive: line 47
Keep it tight. Every line should be something a reviewer can act on.
- Distinctive: line 59
Use the vendored reader (self-contained -- no skill-distill dependency):
- Very specific: line 76
When gate runs in a disposable worktree (treehouse or git worktree), the reader filters by *that* tree's cwd and finds only unrelated …
- Distinctive: line 83
Read the transcript and summarize + disambiguate it into What / Why / Scope / Decisions.
- Distinctive: line 104
If the diff makes the What obvious, state it -- don't ask.
- Very specific: line 109
Before writing intent.md, apply a light secret-redact: strip obvious pasted secrets -- API keys, tokens, op:// references, …
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Intent
Stage 0 of the gate pre-submission pipeline. Capture WHY a change was made as
plain, factual context so every downstream stage can review the change against
its stated purpose -- and so the human never has to re-explain it.
This is not user-facing prose. Do NOT apply voice or scrub AI tells here. Keep it plain, clear, factual. AI phrasing is fine. (Voicing/scrubbing happens later, at the open-PR stage.) The job here is accuracy and completeness, not style.
Output
A plain intent.md at a stable per-branch path so later stages can find it:
/tmp/<branch>-intent.md (use the current git branch --show-current; replace
/ in the branch name with -).
# Intent: <short title>
## What
<what the change does -- factual, from the diff + transcript>
## Why
<goal / motivation -- from the transcript, or asked if absent>
## Scope
- In: <what this change covers>
- Out: <deliberately deferred, each with a one-line rationale>
## Decisions
- <settled tradeoff/decision + why -- so reviewers don't re-litigate it>Keep it tight. Every line should be something a reviewer can act on. No filler, no hedging, no "this PR aims to."
Capture (priority order)
1. PRIMARY -- the recent agent transcript(s) for THIS change
Whoever just wrote the code already expressed the WHY in conversation. Read the
most recent relevant session(s) whose cwd matches the current repo, newest
first. Claude Code is the primary / most recent tool; Codex and pi are also
supported.
Use the vendored reader (self-contained -- no skill-distill dependency):
python3 {skill-dir}/scripts/read-recent-session.py # newest matching session
python3 {skill-dir}/scripts/read-recent-session.py --list --count 5 # pick the right one
python3 {skill-dir}/scripts/read-recent-session.py --count 2 --max-chars 6000Notes on the reader:
- Matches sessions by the transcript's recorded
cwd(inside the repo root), not the lossy encoded directory name. - Excludes Claude Code subagent sidechains by default (
subagents/transcripts are the agent talking to itself, not the human-stated WHY). Pass--include-subagentsonly if the top-level session is thin. - The current intent-capture session is itself the newest match -- skip it and
use the session that actually contains the change discussion.
--listmakes this easy: read the timestamps/branches and choose the one for THIS change. - When
gateruns in a disposable worktree (treehouse orgit worktree), the reader filters by that tree's cwd and finds only unrelated sessions. The authoring session lives under the original checkout: run the reader there, or, when the current conversation is the authoring session, write from it directly and say so. - Already applies a light secret-redact pass on its output.
Read the transcript and summarize + disambiguate it into What / Why / Scope / Decisions. Pull Scope-Out and Decisions from moments where the user or agent explicitly deferred something or chose between options.
2. FALLBACK -- no usable transcript
Derive the What from the diff + commit messages + branch name:
git diff master...HEAD # or the merge base
git log master..HEAD --oneline
git branch --show-currentThen ask the user a few targeted questions for only the non-inferable parts:
- Why / the goal behind it
- What is deliberately out of scope
- Any key decisions a reviewer might otherwise second-guess
3. Never ask what the diff already shows
If the diff makes the What obvious, state it -- don't ask. Only ask about intent that isn't recoverable from code: motivation, deferred scope, and tradeoffs.
Redact step
Before writing intent.md, apply a light secret-redact: strip obvious pasted
secrets -- API keys, tokens, op:// references, bearer/Authorization values,
JWTs, KEY=/TOKEN=/SECRET= assignments -- so they never land in the file,
even internally. The reader does this on its output; do the same for anything you
add by hand. When unsure, redact.
How downstream stages use it
intent.md is the shared contract for the rest of gate:
- lint/test gate, conventions -- sanity baseline; intent frames what "done" means for this change.
- state-space-minimization, mutation testing -- check the change actually covers its stated Scope (and nothing creeps in from Scope-Out).
- review-crew -- reviews the diff against the stated What/Why instead of guessing the goal; Decisions tell reviewers what's already settled.
- fold-findings -- reconciles crew findings with the declared Scope/Decisions.
- open-PR stage -- takes this plain
intent.mdand then voices + scrubs it into the user-facing PR body.
So: be accurate and complete here. Style is somebody else's stage.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

