This skill should be used when the user asks to operate Claude Code /goal, write a goal completion condition, compare /goal with /loop, Stop hooks, or auto mode, diagnose a stuck goal loop, set stop conditions, resume or clear an active goal, or define safe continuation gates for autonomous Claude Code sessions.
Operate Claude Code /goal as a session-scoped completion-condition loop. Use this skill to decide whether /goal is the right mechanism, write an evaluator-friendly condition, set continuation and stop boundaries, and close with evidence that the goal ended for the right reason. [DOC]
Treat /goal as a Claude Code feature whose exact availability depends on the installed version, workspace trust, hooks settings, and provider configuration. Verify local state when the answer depends on it. If current state cannot be checked, state coverage_gap instead of assuming the command is available. [DOC][CONFIG]
Supporting files:
references/claude-code-goal-behavior.md - Canonical behavior, requirements, status, clear, resume, non-interactive use, and evaluator mechanics. [DOC]references/continuation-mechanism-matrix.md - Decision matrix for /goal, /loop, Stop hooks, auto mode, and scheduling. [DOC][INFERENCIA]references/failure-modes-and-stop-rules.md - Stuck-loop patterns, false completion risks, and manual stop rules. [INFERENCIA]assets/goal-condition-checklist.md - Checklist for writing measurable completion conditions. [CONFIG]assets/goal-safety-gates.md - Preflight and runtime gates for autonomous continuation. [CONFIG]assets/goal-stop-condition-matrix.md - Normal, manual, bounded, and unsafe stop conditions. [CONFIG]scripts/check.sh - Deterministic package check for required terms, assets, evals, and fixtures. [CONFIG]claude -p, desktop, or Remote Control./goal status, transcript reason, latest tool results, changed files, and validation output./goal <condition> string or a recommendation not to use /goal./goal, /loop, Stop hook, auto mode, schedule, or ordinary single turn.coverage_gap.Use /goal only when the task has one measurable end state and can be proven from evidence Claude surfaces in the conversation. Prefer it for migrations, refactors, test repairs, acceptance-criteria implementation, backlog draining, file-splitting budgets, and other substantial work where completion can be judged after each turn. [DOC]
Avoid /goal for vague exploration, brainstorming, open-ended research, subjective polish, tasks requiring fresh human judgment after every step, destructive operations without approval, or goals whose evidence is hidden from the transcript. Use a normal prompt, plan mode, Stop hook, /loop, or scheduling instead. [DOC][INFERENCIA]
Confirm the local command can run before relying on it. Check Claude Code version when possible; /goal requires Claude Code v2.1.139 or later. Confirm workspace trust for interactive use. Inspect settings for disableAllHooks and allowManagedHooksOnly when /goal is unavailable, because /goal is implemented through the hooks system. [DOC][CONFIG]
If non-interactive mode is requested, use claude -p "/goal ..." and treat Ctrl+C as the manual interruption path. If resuming, note that an active goal can restore with --resume or --continue, while achieved or cleared goals do not restore. [DOC]
Write the condition as a state the evaluator can verify from transcript evidence. Include:
Prefer: /goal all tests in test/auth pass with npm test -- test/auth exiting 0, no production files outside src/auth are modified, or stop after 12 turns and report blockers. Avoid: /goal make auth better. [DOC]
After each turn, expect the /goal evaluator to read the condition and conversation, return yes or no, and provide a short reason. A no decision starts another turn and gives that reason to Claude as guidance. A yes decision clears the active goal and records achievement in the transcript. The evaluator does not run tools or read files independently, so require Claude to surface command output and artifact evidence before claiming completion. [DOC]
Use auto mode only to reduce per-tool approvals inside each turn. Do not treat auto mode as a continuation mechanism; it approves tool calls but does not start a new turn. Use /loop for time-interval repetition. Use a Stop hook for reusable or deterministic post-turn logic across sessions. Use /goal for one session-scoped completion condition. [DOC]
/goal, /loop, Stop hooks, auto mode, and scheduling.coverage_gap./goal per measurable end state or use a checklist with a bounded stop clause./goal for status, inspect the evaluator reason, narrow the condition, add a stop clause, or /goal clear./goal; report the settings blocker and use a non-goal workflow./goal keeps one current session moving; it is not a durable scheduler, project manager, or cross-session governance system.Unified with the verified metadata.relations frontmatter (each skill confirmed present in the plugin tree):
scheduled-task-opsdynamic-workflow-forgeagent-creatorkatas-deterministic-agent-loopworktree-isolationworkflow-forge/goal.[INFERENCIA] unless directly backed by docs or config.assets/goal-safety-gates.md and assets/goal-stop-condition-matrix.md before proposing unattended continuation./goal con condición de completitud verificable y gates de continuación seguros. [EXPLICIT]/goal por docs [DOC]. [SUPUESTO]Capas del packet, cargables bajo demanda (disciplina ICM: una capa por vez, nunca todas juntas): references/ guías de profundidad (cargar UNA por etapa) · knowledge/ cuerpo de conocimiento · prompts/ prompts listos · examples/ salida de ejemplo · agents/ subagentes del packet · templates/ plantilla de output · scripts/ automatización local · assets/ recursos estáticos.
e8f986b
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.