generate-goal

Synthesizes conversation context into a self-contained /goal prompt for autonomous task handoff.

599|54|Updated Aug 21, 2025
One-click install
npx skills add https://github.com/ZacheryGlass/.claude --skill generate-goal
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: generate-goal
Source: https://github.com/ZacheryGlass/.claude/tree/main/skills/generate-goal
Command: npx skills add https://github.com/ZacheryGlass/.claude --skill generate-goal

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Long planning conversations converge on a clear next task, but handing that work to the /goal autonomous loop requires manually re-summarizing every decision, path, and constraint. This Skill distills the current conversation into one ready-to-run /goal prompt so nothing load-bearing is lost in the handoff.

Core Features & Use Cases

  • Conversation-to-goal synthesis: Mines the discussion for decisions, exact file paths, commands, constraints, and current state, then composes a directive a cold agent can execute without shared memory.
  • Measurable completion conditions: Every generated prompt ends with an evaluator-checkable end state, since the /goal loop stops only when a small evaluator model confirms the condition from the transcript.
  • Enforced length validation: Ships a Python script that verifies the prompt argument stays under the 4000-character /goal limit before output, reporting headroom or overage.
  • Use Case: After a long debugging session where you agreed to add a default-off feature flag with pin-neutral tests, ask for a goal prompt and receive a single fenced block containing the directive, context, constraints, and completion criteria ready to paste into /goal.

Quick Start

Ask Claude to turn this conversation into a /goal prompt for the work we just agreed on.

Frequently Asked Questions about generate-goal

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I turn a long Claude Code conversation into a /goal prompt?▼

Invoke the generate-goal skill with a phrase like "generate a goal" or "hand this off to /goal". It mines the conversation for decisions, paths, and constraints, then outputs one fenced code block containing a self-contained /goal prompt you can paste directly.

What is the character limit for a /goal prompt in Claude Code?▼

The /goal command caps the argument text after "/goal " at 4000 characters. The skill bundles a check_goal_length.py script that measures exactly that slice and reports PASS with headroom or FAIL with the overage before output.

Why must a /goal prompt include a completion condition?▼

The /goal loop runs turn after turn until a small evaluator model confirms the condition from the transcript, and it has no turn limit. A measurable end state provable from surfaced output, such as tests passing or files committed, is the only stopping signal.

Does the generate-goal skill write any files to disk?▼

No. The skill outputs the prompt to chat only in a single fenced code block. A temporary scratch file may be used solely to run the length check and is deleted immediately afterward.

What happens if the conversation has multiple possible goals?▼

If the objective is genuinely ambiguous or several distinct goals are in play, the skill asks one focused clarifying question before generating. Otherwise it proceeds directly to composing the prompt.