skills/use-goal-prompt/SKILL.md
Use when: 'goal prompt'.
npx skillsauth add kenoxa/spine use-goal-promptInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Read-only. Emit a /goal prompt; never execute it.
Pick the closest template, adapt it to the user's actual task, emit a /goal prompt with 9 sections:
GOAL · CONTEXT · CONSTRAINTS · PRIORITY · PLAN · DONE WHEN · VERIFY · OUTPUT · STOP RULES.
Templates are starting points, not fill-in-the-blank forms. Reformulate, rephrase, drop
irrelevant lines, add task-specific ones so the prompt fits the job. Keep all 9 section
headers — they are the /goal output-format contract; compose the content within freely.
Rendered prompts must explicitly name /use-session for continuity. When the
task mentions a branch, worktree, or isolated implementation, also name
/use-worktree. Do not rely on automatic skill triggering.
Phase Trace: Classify, Compose, Output all zero-dispatch. Log template + ask-count.
| Phase | Agent | Reference |
|-------|-------|-----------|
| Classify | mainthread | catalog table below |
| Compose | mainthread | references/template-{intent}.md |
| Output | mainthread | — |
If --intent=<name> flag present, use it. Else match user phrasing to one template:
| Template | Trigger phrases | Reference (lazy-load) |
|----------|----------------|----------------------|
| interrogate | "vague idea", "fuzzy", "intake interview", "scope this", "what do I actually want", "build-ready brief" | references/template-interrogate.md |
| plan | "planning docs", "roadmap", "decisions doc", "spec", "design doc", "ADR", "milestones" | references/template-plan.md |
| build | "implement the plan", "build the system", "ship it end-to-end", "execute roadmap", "full system" | references/template-build.md |
| refactor | "refactor", "restructure", "preserve behavior", "surgical diff", "clean up", "no behavior change" | references/template-refactor.md |
| consolidate | "parallel implementations", "canonical version", "collapse parallel", "single source of truth", "merge implementations" | references/template-consolidate.md |
| harden | "test coverage", "CI pinning", "supply chain", "security posture", "guardrails", "regression coverage", "pin dependencies" | references/template-harden.md |
| migrate | "schema migration", "data migration", "platform migration", "dual-write", "rollback path" | references/template-migrate.md |
Boundary: multiple parallel implementations → consolidate. One implementation needs restructuring → refactor.
Decline branch — watch / poll / observe-external-event: If the user's intent reduces to "watch X until terminal state" (CI pipeline, deploy, long job), do NOT compile a /goal prompt. The /goal Stop hook re-fires on every check with no productive work between fires. Suggest /loop <interval> <command> (e.g. /loop 2m gh run watch <id>) or a blocking gh run watch / glab ci status --wait instead. Return without writing a goal-prompt file.
interrogate → plan → build for greenfield. Standalone: refactor / consolidate / harden / migrate.Mixed mode — also draft <other> as a separate /goal session to Output.references/template-{intent}.md. Treat its fenced block as a scaffold to adapt, not a script to copy.[...] placeholders mark the obvious ones; the task may need more.<NEEDS: short description> markers.SESSION: line under CONTEXT for any multi-turn goal:
Use /use-session; maintain session.json + events.jsonl + session-log.md. If worktree needed, use /use-worktree attach, not fork./goal cap). Size depth to the task..scratch/<session>/goal-prompt.md.pbcopy / xclip). Fail silent.<NEEDS:> marker count (omit if 0), target /goal command.E3 evidence before exit:
.scratch/<session>/goal-prompt.md exists, char count ≤ 4000 (E3: wc -c < goal-prompt.md ≤ 4000).grep -cE '^(GOAL|CONTEXT|CONSTRAINTS|PRIORITY|PLAN|DONE WHEN|VERIFY|OUTPUT|STOP RULES):$' goal-prompt.md == 9)./use-session line and any worktree prompt explicitly names /use-worktree. [E2/E3]/do-frame or /do-design after output — suggest only; user pastes manually./goal's Stop hook re-fires on every polling check with no productive agent work between fires. Decline and redirect to /loop or gh run watch.tools
Use when: 'create a worktree', 'git worktree', 'parallel branch'.
tools
Use when: 'session state', 'resume work', 'worktree session'.
testing
Thinking-lens stress-test on a recommendation.
data-ai
Git conflict resolver for prepared merge briefs. Use when a merge, sync, or land operation has conflicts and the caller provides a self-contained brief.