goal-loop
Skill4.3k starsChanged 3 months agoApache-2.0View on GitHub
Bootstrap a goal-driven self-improving AutoNudge loop from a goal plus an anchor directory, then run the board autonomously until the Definition of Done is met.
- Installs packages
- Commits and pushes
4 other projects use a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- aktsmm/Agent-Skillstheir own version, first seen Oct 4, 2026
- davidondrej/skillstheir own version, first seen Oct 3, 2026
- xeroc/skillstheir own version, first seen Jul 17, 2026
- attentiondotnet/davidondrej-skillstheir own version, first seen Jul 7, 2026
Who's talking about kirodotdev/KiroCrew
- A Hacker News story“Kiro Crew”Hacker News · Aug 4, 2026 · 9 points
- A Hacker News story“Kiro Crew persistent workspace that self-improves, continues beyond one session”Hacker News · Sep 11, 2026 · 2 points
- A Hacker News story“KiroCrew”Hacker News · Aug 29, 2026 · 2 points
- tddworks/ClaudeBar“Migrate Kiro to JSON and shared account profiles”GitHub · Oct 2, 2026
- awslabs/cli-agent-orchestrator“[Feat] Memory: relevance-first recall and meaning-based staleness (pin, expiry, supersession, reversible …”GitHub · Oct 2, 2026
The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 22
Talked about on GitHub and Hacker News (22 times).
On GitHub · 19
- Oct 2, 2026Migrate Kiro to JSON and shared account profiles — tddworks/ClaudeBar0 reactions · 4 comments
- Oct 2, 2026[Feat] Memory: relevance-first recall and meaning-based staleness (pin, expiry, supersession, reversible retention) — awslabs/cli-agent-orchestrator0 reactions · 1 comment
- Sep 29, 2026Add Kiro_Crew — AppImage/appimage.github.io0 reactions · 1 comment
- Sep 28, 2026Boundary probe: separate computed review verdict from published authoritative verdict — hippoley/CounterProof0 reactions · 1 comment
- Sep 25, 2026deps: bump kirodotdev/kirocrew from `ba01bb1` to `5e6c5a2` in /images/gateway — lsdopen/kiro-crew-operator0 reactions · 1 comment
14 more on GitHub
- Sep 25, 2026chore(deps): update dependency kirocrew to v0.7.2 - autoclosed — layertwo/kirocrew-opencode0 reactions
- Sep 18, 2026RFC: modernize Passdown orchestration for ACP and cross-provider agents — vunm-io/passdown0 reactions · 8 comments
- Sep 15, 2026note: Windows の Kiro Crew で Computer Use を使うとき、Node などの追加インストールは必要か — maijun2/tech-notes0 reactions · 1 comment
- Sep 15, 2026Feature request: add a KiroCrew platform target/profile — microsoft/apm0 reactions · 1 comment
- Sep 13, 2026[Request]: kirocrew — ScoopInstaller/Extras0 reactions
- Sep 5, 2026fix: ship an installable Kanban store release — nathanyi96/kirocrew-app-kanban0 reactions
- Sep 5, 2026feat: list agent-dashboard — kirodotdev/KiroCrewApps0 reactions
- Aug 29, 2026chore(deps): update dependency kirocrew to v0.4.1 — layertwo/kirocrew-opencode0 reactions
- Aug 27, 2026[CLI]: Add owner lease or idle timeout for detached browser daemons — microsoft/playwright0 reactions
- Aug 24, 2026nexus-zero: WASM ship — 2MB TinyGo plugin, host capability for kiro-cli — marktantongco/KiroCrew0 reactions · 3 comments
- Aug 19, 2026fix(kiro): prevent long-session history self-conflicts — ajdiyassin/oh-my-pi0 reactions
- Aug 7, 2026Kiro + Kiro Crew integration — kamo62/neokod0 reactions · 1 comment
- Aug 6, 2026Kiro — kiza-zmaj/judge-guard-core-master0 reactions
- Aug 5, 2026[제안] kirocrew-study 추가 — 코딩 에이전트 런타임 위 오케스트레이션 해부 — bgmbgm94/coding-agent-study-skills0 reactions
On Hacker News · 3
- Aug 4, 2026Kiro Crew9 points
- Sep 11, 2026Kiro Crew persistent workspace that self-improves, continues beyond one session2 points
- Aug 29, 2026KiroCrew2 points
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- davidondrej/skills★ 4.1ksame name
- aktsmm/Agent-Skills★ 26same name
- attentiondotnet/davidondrej-skills★ 11same name
- xeroc/skills★ 1same 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 repository11 other files it gives its agents.
- AGENTS.mdAGENTS.md
- website/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- website/CLAUDE.mdCLAUDE.md
- gateway-restartSkill
- grillSkill
- kirocrew-app-devSkill
- rubber-duckSkill
- self-nudge-loopSkill
- self-rcaSkill
- self-updateSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
After running this skill's scaffold.sh, the anchor directory contains:
- Very specific: line 73
If a newer kanban-md rejects one with unknown flag, compare that subcommand's --help output with the command.
- Very specific: line 77
If kanban-md is not on PATH, the scaffold skips board/ creation and prints a warning.
- Very specific: line 139
If the armed nudge has gone stale, revise it with monitor_update rather than re-arming, which loses the cycle count
- Distinctive: line 143
Never read credential files as text
- Very specific: line 144
Never hand-edit kanban .md files — use kanban-md CLI
- Distinctive: line 168
Test failures, build errors, lint errors → fix them, that's the job
“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
goal-loop
Thin orchestration skill on top of self-nudge-loop. One extra file
(GOAL.md) and one extra script (scaffold.sh) that calls the underlying
self-nudge-loop scaffold and appends goal-specific conventions.
What you get
After running this skill's scaffold.sh, the anchor directory contains:
<anchor>/
├── GOAL.md ← your goal statement + issue-discovery rules (this skill)
├── LOOP.md ← DoD placeholder + REST arming recipe (from self-nudge-loop)
├── README.md ← directory map (from self-nudge-loop)
└── board/ ← kanban-md board, 6 columns (only when kanban-md is installed)The loop agent re-reads GOAL.md + LOOP.md every cycle. That's the
"mission briefing" — everything else is session state.
When to use
- User sets a concrete, verifiable goal ("get this test suite to 100% pass", "migrate all callers off module X", "drain DLQ Y").
- You want the agent to discover issues itself (grep TODO/FIXME, failed tests, open tickets) and convert them to board cards.
- You trust the agent to run for 10+ cycles autonomously without human per-step review.
When NOT to use
- One-off fix → just use the agent directly
- Already-defined backlog → use
self-nudge-loop/scaffold.shdirectly - Goal cannot be expressed as ≤5 shell-checkable DoD criteria → split the goal first
Prerequisites
kanban-md CLI — required for the board operations the loop agent runs
every cycle (its list, pick, create, move, edit and handoff
subcommands). It is a single-binary Go tool from
github.com/antopolskiy/kanban-md.
Install (pick one):
# Homebrew (macOS/Linux) — recommended, auto-updates
brew install antopolskiy/tap/kanban-md
# Go (if you already have Go on PATH)
go install github.com/antopolskiy/kanban-md/cmd/kanban-md@latest
# Pre-built binary from GitHub Releases
# https://github.com/antopolskiy/kanban-md/releases
# download the linux/amd64 (or matching) tarball, extract to ~/.local/bin/Verify:
command -v kanban-mdThe loop's commands were written for and checked against kanban-md 0.37.0; the
cycle uses its list, pick, create, move, edit and handoff subcommands.
If a newer kanban-md rejects one with unknown flag, compare that subcommand's
--help output with the command; the self-nudge-loop skill's commands and its
test are where they are kept in step.
If kanban-md is not on PATH, the scaffold skips board/ creation and
prints a warning. Install the CLI before arming a goal loop; this skill requires
the board for automatic claim and handoff.
The current scaffold also requires a readlink implementation that supports
-f (GNU coreutils). Stock macOS readlink does not provide that flag.
Kiro Crew autonudge_stop MCP tool — included with Kiro Crew. Used
by the agent to self-halt when DoD is met; no extra install is required.
Run it
From a repo checkout (this skill and its scaffold.sh are repo-checkout-only, so
the path below exists only where KIROCREW_PROJECT_DIR names such a checkout):
cd ~/.kiro/crew/skills/goal-loop
./scaffold.sh \
--project my-goal-name \
--anchor-dir /abs/path/to/goal/anchor \
--goal "Get MyService integration tests to green on AL2023"Then:
- Open
<anchor>/LOOP.md— fill in 5 shell-checkable DoD criteria. - Open
<anchor>/GOAL.md— confirm issue-discovery sources (defaults: tree grep, kanban backlog). Add/remove. ls <anchor>/STOPmust say "No such file".- Arm the loop:
monitor_start(message, interval_secs, max_cycles, max_runtime_secs)from a live session, the UI 🎯 "Set a goal", orPOST /api/autonudge. Revise a running loop in place withPATCH /api/autonudge/{loop_id}(ormonitor_update), which keeps its cycle count;DELETE /api/autonudge/{loop_id}stops it.
The goal-loop cycle (what the agent does)
The nudge written by this skill instructs the agent to, every cycle:
- STOP / DoD checks first — if STOP exists or all DoD criteria met, call
autonudge_stopand stop. - Resume or claim work —
kanban-md --dir <BOARD> list --claimed-by loop-<project> --json; resume a held card if any (a blocked one: release it as described under "not stop conditions" below and pick instead), otherwisekanban-md --dir <BOARD> pick --claim loop-<project> --status todoto claim the next unblocked todo. Keep the same project claimant every cycle. If none, go to 3. - Discover issues — run the discovery sources from GOAL.md. For each
finding not already on the board,
kanban-md create. Then pick. - Execute one atomic step on the claimed card (≤5 tool calls).
- Record — edit card body with
<UTC> cycle-<n>: <verb> <outcome>, and callsession_ledger_recordwith the phase,nextas a concrete intent, and any approach tried and rejected. The ledger survives context compaction; a card's Cycle Log does not. On resume, readsession_ledger_readbefore re-deriving state from the board. When the card is ready for human approval, move it to Review withkanban-md --dir <BOARD> handoff <id> --claim loop-<project> --note "<summary>" --release(--releasedrops the claim so the next cycle's--claimed-byscan does not resume a card already in Review). - DM the user — one-line progress tick via
send_message.
Operating invariants
Inherited verbatim from self-nudge-loop/LOOP.md §"Operating invariants".
See that file. The short list:
- If the armed nudge has gone stale, revise it with
monitor_updaterather than re-arming, which loses the cycle count - Never
git push - Never read credential files as text
- Never hand-edit kanban .md files — use
kanban-mdCLI - One cycle = one atomic step
- Stay silent in chat unless DoD met, hard blocker, or STOP tripped
Persistence rule (CRITICAL)
The agent self-stops in exactly three cases:
- User stop — the configured
STOPsentinel exists → callautonudge_stop(reason="sentinel"). - Goal achieved — all DoD criteria in
LOOP.mdcheck green → callautonudge_stop(reason="DoD met"). - Unrecoverable infrastructure error — the host/tooling itself is
broken in a way the agent cannot route around: disk full, network
partition, auth provider down for >3 cycles, kanban-md binary missing
from PATH mid-loop, kernel OOM, etc. Log one-line diagnosis to the
Cycle Log and call
autonudge_stop(reason="infra: <what>").
The service may also deactivate the loop on its finite cycle/runtime bounds or an approval stall. Those are bounded stops, not evidence that the goal succeeded.
Everything else is a problem to solve, not a reason to halt. Examples of things that are NOT stop conditions:
- Test failures, build errors, lint errors → fix them, that's the job
- "I don't know how" → read code, grep, check logs, try a smaller probe, add a research card to the board, read a skill for context
- A card seems blocked → split it, unblock dependencies, or mark the
blocker explicit with
kanban-md --dir <BOARD> edit <id> --block "<reason>" --release(it drops the claim, so the--claimed-byresume scan stops returning the card) and pick a different card - A tool returned an error → read the error, correct the invocation, retry
- The goal feels unreachable → re-read GOAL.md, decompose into smaller cards, run discovery again
- You already tried X twice → try Y; if Y fails, try Z; never stop on "tried twice"
- It's late in the cycle budget → keep working; the service enforces
max_cycles, not you
The agent never creates the user's STOP sentinel itself. It calls
autonudge_stop only for the three cases above; service-enforced bounds remain
independent. When in doubt: keep going, find another angle, create a new card,
and tick.
Extension points (future)
--seed-backlog <file>— pre-populate the board from a newline-delimited list of card titles--agent <name>— write anagent:hint to GOAL.md so loops launched from chat pick up a specialist--discovery <source>— multi-select: grep, taskei, tod-failures
Out of scope for v1. Ship the tiny version, iterate when you hit a real missing feature.
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.

