goal-loop-builder
Installation
SKILL.md
Goal Loop Builder
Create a runnable contract for agent loops: a copy-ready command plus a durable Markdown file when useful. For /goal work, default to a real Markdown contract file plus a short one-line /goal command that references that file. Default to Chinese-first output with an English-compatible mirror unless the user asks otherwise.
Workflow
-
Classify the request.
- Use a normal prompt for one-turn answers, small rewrites, or trivial shell output.
- Use Codex
/goalor Claude/goalwhen the task has one finish line and should keep advancing until evidence proves completion. - Use Claude
/loopwhen the task should run on a timer, poll external state, babysit a PR/deploy, or produce recurring reports. - Use
.claude/loop.mdwhen the user wants a default prompt for bare/loop; it defines one default prompt, not a task list. - Use
goal.mdor<task-slug>.goal.mdfor/goalcontracts; the Markdown file is the source of truth, and the/goalcommand only points to it.
-
Ask only for high-impact missing details.
- Ask if runtime choice, target outcome, verification surface, write boundary, production access, credentials, or destructive authority is unclear.
- Otherwise choose conservative defaults and state them briefly.