goal-lock
Skill17 starsChanged 4 months agoMITView on GitHub
A discipline helper for autonomous and long sessions — given the active goal in `docs/goal.md`, list the unchecked deliverable subgoals (the actual `- [ ]` items), report how many remain, and let the operator (or an autonomous worker) decide whether the next iteration should keep advancing the goal or whether the goal's `Done when` criteria are already satisfied. Does *not* alter the agent loop or override the harness — this is a transparency / discipline tool, not a runtime hook.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- AlexZio00/sovereign-skillstheir own version, first seen Jul 7, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- AlexZio00/sovereign-skills★ 138same 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 repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- game-dev-agentSkill
- idol-shortSkill
- info-shortSkill
- job-huntSkill
- music-videoSkill
- news-shortSkill
- product-cfSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 32
Does not alter the Claude Code harness's turn loop.
- Distinctive: line 34
Does not auto-tick subgoals.
- Very specific: line 37
Does not enforce any policy.
- Distinctive: line 100
Multi-goal locking: Only the *active* goal is reported.
- Very specific: line 106
Read the first ### subsection below it.
- Very specific: line 109
Stop at the next ## heading (e.g., ## Next goal).
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
goal-lock
A small discipline helper. When an autonomous worker or a long
interactive session is advancing the active goal in docs/goal.md,
it's useful to know at a glance which deliverable subgoals are
still unchecked. That's the entire purpose of this skill.
What this does
Reads the first ### YYYY-MM-DD | ... subsection under ## Active
goal in docs/goal.md and lists every - [ ] (unchecked)
deliverable subgoal. Also reports the count and the
"Done when" line if present.
What this does NOT do
- Does not alter the Claude Code harness's turn loop. The agent still runs whatever the operator or scheduler invoked.
- Does not auto-tick subgoals. Operator (or the per-commit hook that ticks subgoals on relevant commits) does that.
- Does not enforce any policy. This is read-only reporting. If
the operator wants autonomous mode to halt when all subgoals
are checked, they wire
scripts/check-done.sh's exit code into theirAUTONOMY_MODEdriver.
Why this exists
docs/goal.md "Done when" criteria are prose plus a list of
deliverable subgoals. Without a one-liner check, a long
autonomous session has to either (a) re-read the entire goal file
between iterations or (b) drift past the goal because no one
re-checked completion. This skill makes the check a single
bash call.
Invocation
# Default — list unchecked subgoals + counts
bash skills/goal-lock/scripts/check-done.sh
# One-line summary
bash skills/goal-lock/scripts/check-done.sh --quiet
# Machine-readable JSON
bash skills/goal-lock/scripts/check-done.sh --jsonExit codes:
0— at least one subgoal remains unchecked (work is still to do)1— all subgoals are checked (goal is probably done; theDone whenprose may add further conditions the operator must read manually)2—docs/goal.mdmissing, malformed, or active goal section empty
How autonomous mode can use this
The recommended pattern for an autonomous loop is to call
check-done.sh after each iteration:
while bash skills/goal-lock/scripts/check-done.sh --quiet >/dev/null; do
# advance the goal — fetch next roadmap Now item, do one chunk,
# commit + push
./scripts/autonomous-iterate.sh || break
doneThe loop exits naturally when check-done.sh returns 1 (no more
unchecked subgoals), which is the closest we can get to Hermes'
runtime /goal lock-in without modifying the Claude Code harness.
Scope explicitly out
- Parsing the "Done when" prose for arbitrary conditions (e.g., "tag v0.x.0 landed"). Those conditions are operator- defined and not generally parseable; the operator writes a per-goal check script if needed.
- Auto-ticking subgoals based on git activity. The existing
docs/operator-contract.md§9 already says Claude appends to roadmap "Done" and ticks subgoals when the relevant commit lands — that flow is unchanged by this skill. - Multi-goal locking. Only the active goal is reported. Candidate / past / abandoned sections are ignored.
How it parses goal.md
- Skip everything until the line that starts with
## Active goal. - Read the first
###subsection below it. - Within that subsection, find lines starting with
- [ ](six characters exactly). Each is an unchecked subgoal. - Stop at the next
##heading (e.g.,## Next goal). - The "Done when" line is whatever line in the active goal
subsection begins with
**Done when**:orDone when:— verbatim pass-through to the report.
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.

