Draft Goal Condition
Pick the right autonomy lever (/goal, /loop, routines, /schedule, workflow, Stop hook, one-shot) and, when /goal fits, draft a transcript-demonstrable…
от melodic-software★ 34 звезды на GitHub
Установить Draft Goal Condition в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Draft goal condition
Variables
Arguments: $ARGUMENTS. The natural-language intent for the autonomous run, plus any constraints
or bounds the user volunteers. --unattended, anywhere in the arguments, is not part of the intent: it is the caller
declaring that nobody is present, which governs the offer under "Routing". Take it out first.
Purpose
Turn a stated intent into a paste-ready /goal <condition> string in the shape the official Claude
Code docs prescribe, proven to fit the documented character limit by a deterministic counter, never
by estimation. The condition shape and limit can change between versions: read them from the
current docs at authoring time and never bake them into this text.
Step 0. Lever fit (is /goal even the right tool?)
Confirm /goal fits the intent before drafting: read when it starts the next turn and when it
stops from the pointer below, and if that does not fit the intent, route instead of drafting.
- Pointer: the "when the next turn starts" and "stops when" columns of
https://code.claude.com/docs/en/goal#compare-ways-to-keep-a-session-running, for when
/goal,/loopand a Stop hook start the next turn and when each stops.
A lever that repeats build-and-check rounds (a metric hill-climb, or a /goal, /loop or routine
that edits each round) pays off only when the task repeats and the agent can run what it builds and
see the result. When either is missing, prompt once instead.
- Metric hill-climb (one editable target, a scorer the agent cannot edit, keep a round's change
when the score improves and revert it otherwise, log every round) → no new runner. For runtime
speed or a counter:
/performance:goal(if enabled), then/performance:snapshot(if enabled), then/performance:verify(if enabled). For a prompt or model setting against an eval suite:/evals:methodology(if enabled), which says when the bundledclaude-apiskill's hillclimb fits and who starts it. - Interval-driven ("every 5 minutes", "poll until") →
/loop, not/goal. - Cloud / sessionless / scheduled ("nightly", "each morning", runs with no session open) →
routines /
/schedule. Before recommending them, read their release status onhttps://code.claude.com/docs/en/routinesduring the Step 1 fetch, and name it in the recommendation, so the user knows whether the surface may still change. - Custom per-turn logic across all sessions (deterministic script check, settings-scoped) → a prompt-based Stop hook.
- More agents than one conversation can coordinate (or orchestration worth codifying as a
rerunnable script; for the scale each approach fits, see
When to use a workflow) → a
dynamic workflow. This row composes with
/goal: the workflow does the parallel work, the goal sets the hard completion requirement. Route away from drafting only when the intent wants the fan-out and no across-turn completion condition; when it wants both, draft the condition here and say the workflow rides alongside it. - One-shot (a single prompt with no across-turn continuation) → just prompt; no goal.
- Multi-window / multi-ticket ("keep several sessions going", work that will not finish in one
context window, a decomposed backlog) → when
work-itemsis enabled: already-decomposed backlog / existing tickets →/work-items:work(if enabled) (or the work-loop); undecomposed plan or intent →/work-items:decompose(if enabled) then/work-items:work(if enabled). Whenwork-itemsis not enabled, tell the user to enable it (installing it first if needed), or draft only if they insist on one-session completion. We route multi-window work to decomposed items so each item starts in a fresh window; what one window carries across a compaction is in What survives compaction. This is an advisory default, not a prohibition: draft when the intent is genuinely one-session completion.
Two caveats on the workflow row, each of which turns a plausible recommendation into a dead one:
- Route to the right ultracode form. We tell apart the per-task opt-in (the
ultracodekeyword, or asking in plain words for a workflow) and the standing/effort ultracodesession setting. For what each form does, the effort level included, see Let Claude decide with ultracode. Before recommending either form, apply the routing decisions in reference/workflow-row.md: which prompt sources the keyword fits (a-p, Agent SDK, scheduled or relayed prompt among them), which plans reach the workflow lever and what a plan must switch on first, and when the standing setting fits. - The lever is unreachable from an ordinary subagent. We treat the
Workflowtool as missing
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- evals/evals.json
- reference/native-goal.md
- reference/run-contract.md
- reference/workflow-row.md
FAQ
Что делает скилл Draft Goal Condition?
Pick the right autonomy lever (/goal, /loop, routines, /schedule, workflow, Stop hook, one-shot) and, when /goal fits, draft a transcript-demonstrable completion condition checked against the limit by a deterministic counter. Use when: 'which loop should I use', 'craft a /goal', 'make Claude keep working until X', or unmeasurable/too-long /goal.
Как установить скилл Draft Goal Condition?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Draft Goal Condition запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…