goal-crafting
Create high-quality Claude Code /goal prompts.
This skill turns rough intent into an executable session goal with clear scope, constraints, verification, and success criteria. It produces goal text for the user to paste; it neither runs /goal itself nor performs the goal's implementation work, unless the user explicitly asks to continue after the goal is written.
/goal installs a session Stop hook that blocks the turn from ending until the condition holds, then auto-clears. So the Success criteria is not framing prose — it is the predicate that hook evaluates, and the agent keeps working against it rather than pausing to ask.
Input
The user may provide:
- A rough task, bug report, feature idea, refactor, review request, migration, UI change, or investigation target.
- An existing
/goalthat should be improved or reviewed. - Partial context from a project, spec, ticket, error, screenshot, or conversation.
Workflow
When the input is an existing /goal to review rather than a new one to write, skip steps 1 and 2: run it through the step 5 quality checks, report what fails, and produce the corrected version.
- Classify the goal type