keel
Skill0 starsChanged 4 months agoMITView on GitHub
Ledger-bound planning for AI coding agents: an append-only JSONL ledger (.keel/ledger.jsonl) where every plan phase carries an executable acceptance check. 'Done' means the check passed, not that a checkbox was ticked. Use when planning, breaking down, or organizing any multi-step task, research project, or work requiring 5+ tool calls; supports multi-agent phase claiming and a research profile with hypothesis tracking and experiment dedup.
- Installs packages
8 other projects use a version of this.
Adopted by
Most recently taken up by
- matrixfede/keeltheir own version, first seen Nov 1, 2026
- APareek89/ai-buildcrafttheir own version, first seen Nov 1, 2026
- Chaierss/keeltheir own version, first seen Nov 1, 2026
- kisrafistya/keeltheir own version, first seen Oct 15, 2026
- IamK77/Skilltheir own version, first seen Oct 12, 2026
- joseconti/keel-skilltheir own version, first seen Oct 7, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- lencx/skills★ 196same name
- joseconti/keel-skill★ 14same name
- broomva/skills★ 4same name
- IamK77/Skill★ 2same name
- Chaierss/keel★ 1same name
- matrixfede/keel★ 1same name
- APareek89/ai-buildcraft★ 0same name
- kisrafistya/keel★ 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.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 3 are distinctive, and 6 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
If .keel/ exists in the project (or any parent), run $KEEL status before anything else.
- Very specific: line 85
Every error gets logged, and keel deduplicates by a normalized signature:
- Very specific: line 92
If keel says the signature was seen before and is unresolved, do not repeat the same action — mutate the approach.
- Very specific: line 99
Before attempting something that failed in a past session, ask the ledger: $KEEL query errors --sig "the error text".
- Distinctive: line 104
When several agents share one project, claim a phase before touching it:
- Very specific: line 141
No complex task without keel init and phases-with-checks first.
- Distinctive: line 142
Write the check before the work.
- Very specific: line 147
Never edit .keel/ by hand, and never present a rendered view as if you authored it — regenerate with $KEEL status.
- Distinctive: line 149
When the user extends the task, add phases.
“Common” is measured: kept by at least 6 in 10 of the 7 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
keel
The ledger binds you; markdown only describes you. Everything important goes
through the keel CLI into .keel/ledger.jsonl — an append-only,
machine-checkable record. You never edit .keel/ files by hand.
Set once per session for convenience:
KEEL="$(command -v python3 || command -v python) ${CLAUDE_SKILL_DIR}/scripts/keel.py"FIRST: restore state
If .keel/ exists in the project (or any parent), run $KEEL status before
anything else. The rendered view is the authoritative state: current phases,
what passed its check, unresolved error signatures, live findings. Trust it
over your memory of the conversation.
Starting a task
For any multi-step task (roughly 5+ tool calls):
$KEEL init --goal "one-sentence goal" # add --profile research for research work
$KEEL phase add "Parse the config" --check "python -m pytest tests/test_config.py -q"
$KEEL phase add "Wire up CLI flag" --check "myapp --dry-run --new-flag 2>&1 | grep -q OK"
$KEEL phase add "Write migration notes" --check manualThe check is the point. A phase's --check is a shell command that exits
0 only when the phase is genuinely complete — a test selector, a
file-existence assertion, a grep over output. Write the check when you write
the phase, before doing the work; it is your acceptance criterion. Use
--check manual only when no executable check exists, and treat every manual
check as a smell.
Working a phase
$KEEL phase start p1 # marks in_progress — the Stop gate now knows work is open
# ... do the work ...
$KEEL done p1 # RUNS the check; refuses to mark done if it failskeel done failing is a feature: it caught a phase you believed finished but
wasn't. Fix the work (or the check, if the check itself was wrong) and rerun.
keel done p1 --skip-check --reason "..." exists for emergencies and is
recorded as skipped in the ledger — visible to anyone auditing the run.
Logging as you go
$KEEL finding "the retry logic lives in transport.py, not client.py" --refs src/transport.py— after any discovery worth surviving a context reset. To correct an earlier finding, pass--supersedes e12; the old one disappears from the rendered view instead of contradicting you forever.$KEEL decision "use SQLite over JSONL for the cache"— decisions with a why.$KEEL artifact "wrote benchmark results" --refs results/bench.csv
Errors: query before retrying
Every error gets logged, and keel deduplicates by a normalized signature:
$KEEL error "ImportError: no module named foo.bar"
# → keel: logged error sig=3fa2c1b0 — SEEN 2x BEFORE (UNRESOLVED — do not retry the same action)If keel says the signature was seen before and is unresolved, do not repeat the same action — mutate the approach. When you fix one:
$KEEL resolve 3fa2c1b0 "foo needs pip install foo-extras"Before attempting something that failed in a past session, ask the ledger:
$KEEL query errors --sig "the error text".
Multi-agent work
When several agents share one project, claim a phase before touching it:
KEEL_AGENT=worker-2 $KEEL claim p3 # atomic; refused if another agent holds it
KEEL_AGENT=worker-2 $KEEL release p3 # give it up without finishingClaims and findings from all agents land in the same ledger, so the rendered
view is the shared coordination surface. An orchestrator assigns phases;
workers claim, work, keel done, release nothing (done releases implicitly).
Research profile
keel init --profile research for experiment-driven work:
$KEEL hypo add "warmup length explains the gap, not LR"
$KEEL exp --config runs/ablation_a.json --hypothesis H1 -- python train.py --config runs/ablation_a.json
$KEEL hypo set H1 supported --evidence e17keel exp hashes the canonicalized config; a hash that already has a
recorded result is refused (shown instead), so you can never silently rerun
an experiment and waste compute or overwrite evidence. --force overrides,
and is recorded.
What the hooks do (so you aren't surprised)
- UserPromptSubmit / PreCompact: the rendered ledger view is injected only when it drifted from what you last saw (ledger changed, >15 min gap, or compaction imminent). No injection means nothing changed — don't re-read.
- Stop gate: stopping is blocked only if a phase is
in_progress, or a phase marked done has a check that now fails. Pending phases don't block — pausing between phases is normal. To abandon a phase,$KEEL phase drop pN.
Rules
- No complex task without
keel initand phases-with-checks first. - Write the check before the work. Manual checks need a stated reason.
- Log findings immediately after discoveries — especially anything read from images, browser output, or other content that won't survive context loss.
keel errorbefore any retry; never repeat an action against an unresolved signature.- Never edit
.keel/by hand, and never present a rendered view as if you authored it — regenerate with$KEEL status. - When the user extends the task, add phases; don't start a second ledger.
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.

