aytuncyildizli/reprompter/reprompter-goal-workflow
Claude Code and agent skill by aytuncyildizli/reprompter
- community
Checking that the SKILL.md file is still in the repository.
RePrompter Improve output formats — compress a finished spec-XML prompt to a `/goal <objective>` command (Codex CLI, Claude Code v2.1.139+, Hermes), compile it to a runnable `.workflow.js` for Claude's dynamic Workflow tool, or deliver it to another model via headless-relay. Use when: "before /goal", "for /goal", "Codex /goal", "Claude Code /goal", "Hermes /goal", improve a goal prompt, "compile to workflow", "workflow preflight", "dynamic workflow"; or the headless-relay delivery step after a…
Install
npx vskill@latest install aytuncyildizli/reprompter/reprompter-goal-workflowSKILL.md
RePrompter — /goal, Workflow script, and headless-relay delivery
Mode skill of thereprompterplugin. Entry/routing:../reprompter/SKILL.md. Generate the spec prompt with../reprompter-improve/SKILL.md, then apply the format below. Content below is verbatim from root SKILL.md lines 60-213 (/goal), 214-358 (Workflow script) and 1495-1572 (headless-relay).references/workflow-template.mdandreferences/runtime/claude-workflow-runtime.mdare copied alongside; Repromptverse Option H is in../reprompter-team/references/runtime-options.md.scripts/<name>paths resolve to the bundled../reprompter/scripts/<name>(e.g.node ../reprompter/scripts/workflow-command.js --help).Required reading:../reprompter/references/advanced-features.md. The always-on rules in../reprompter/SKILL.md→ "Core shared rules" (context check, uncertainty permission, WHAT not HOW) apply before any/goalcompression or workflow compile.
Format: /goal command (Improve output)
When the user mentions /goal, before /goal, for /goal, "Codex /goal", "Claude Code /goal", "Hermes /goal", or asks to improve a goal prompt, run RePrompter before the goal is submitted.
This lane works on Codex CLI (any version exposing the goals feature), Claude Code CLI v2.1.139+ (the release that shipped a native /goal slash command on 2026-05-11), and Hermes Agent (persistent goals documented in the v0.13.0 / 2026.5.7 release). These runtimes accept the same /goal <objective> shape, so the compression flow is identical; only the setup check and a few runtime-specific operational notes differ. If the target runtime is Claude surfaces without /goal support, OpenClaw, Grok CLI, Gemini, or another LLM, use Improve (spec-XML) or Repromptverse instead; do not emit a /goal command for runtimes that have no /goal surface.
Detecting the target runtime
Pick the runtime once, at the start of the lane, and pass it through to the Card:
| User signal | Runtime | |
|---|---|---|
"Codex /goal", "for Codex /goal", explicit codex mention | Codex CLI | |
"Claude Code /goal", "/goal in Claude Code", explicit claude / claude-code mention | Claude Code CLI (≥ v2.1.139) | |
"Hermes /goal", "/goal in Hermes", explicit hermes / hermes-agent mention | Hermes Agent | |
| Bare "/goal" or "before /goal" with no runtime marker | ASK which runtime, with the three options as buttons; default to the user's primary CLI if known from session context |
Process:
- Treat the input as Single prompt mode unless it clearly needs Repromptverse.
- Detect the target runtime (table above). Carry the runtime label through the rest of the lane.
- Render the Goal Command Card first, with
Runtimepopulated from step 2. - Infer the user's real intent from the rough prompt: desired outcome, hidden constraint, success signal, and likely risk.
- Build the rich expanded prompt first, using the normal RePrompter structure: goal/task, context, assumptions, requirements, constraints, execution notes, and success criteria.
- Compress that expanded prompt into a dense one-line goal summary. This should feel like a summary of a long XML prompt, not a slightly polished copy of the user's rough sentence. The compression rule is identical across runtimes — both Codex's alpha
/goaland Claude Code's v2.1.139+/goalconsume<objective>as a single argument. - Generate an exact copy-paste command:
/goal <summary of expanded prompt>. - Do not put the full XML or Markdown document after
/goal; only the compressed summary belongs in the command. - Include the expanded prompt basis after the command so the user can inspect what was compressed or send it as a follow-up normal message after the goal is set.
- Tell the user to run the exact
/goal <summary of expanded prompt>command in the runtime chosen at step 2. - Do not claim RePrompter can automatically intercept
/goal; slash commands are user-invoked in both Codex and Claude Code unless the local runtime adds a separate hook.
Goal Command Card
Both runtimes shape the slash command as /goal <objective>. Render this card before the generated command:
| Field | Content | |
|---|---|---|
| Goal Command | Exact one-line /goal <summary of expanded prompt> command | |
| Compressed From | Expanded RePrompter prompt | |
| Objective | One sentence naming the reprompted intent the runtime should pursue | |
| Runtime | Codex CLI, Claude Code CLI (≥ v2.1.139), or Hermes Agent — whichever was detected in step 2 above | |
| Mode | /goal preflight | |
| Paste Into | Codex TUI prompt, Claude Code TUI prompt, or Hermes TUI prompt, as-is | |
| Risk Level | low / medium / high, based on blast radius | |
| Missing Inputs | Up to 3 unresolved unknowns; use documented assumptions for reasonable defaults and write none when the prompt is ready | |
| Verification | 2-4 checks the agent should run while pursuing the goal | |
| Quality | Before score → after score, with the weakest remaining dimension |
Then output:
Then show the expanded prompt basis:
Runtime-specific operational notes
The compression flow is shared, but the two /goal surfaces have small behavioral differences worth surfacing in the expanded prompt's <execution_notes> block:
Claude Code CLI (≥ v2.1.139):
/goalsets a thread-level persistent objective that survives/resume, terminal close, and context compaction. Only one goal per session — setting a new/goalreplaces the previous one.- After each turn a separate fast evaluator model (Haiku) checks the completion condition against the transcript. If not met, the runtime triggers another turn without user input.
- The evaluator only judges what Claude surfaces in the transcript, so the expanded prompt should require the agent to print artifact paths, file contents, or test results — proof must be visible.
- Pause / resume controls:
/goal pauseand/goal resume(handy for long-running goals interrupted by ad-hoc work). - Optional budget constraints (token or wall-clock) prevent runaway costs.
- `/goal` requires hooks. When
disableAllHooksorallowManagedHooksOnlyis set insettings.json,/goalis unavailable. v2.1.139 silently hung in this case; v2.1.140 changed the failure mode to a clear error message but did not make/goalwork under those settings. If you operate in a managed environment that blocks hooks, the/goalpreflight lane cannot run on Claude Code until hooks are permitted — use Single mode in that case.
Codex CLI:
/goalis an experimental alpha feature gated byfeatures.goals = truein~/.codex/config.toml. The local alpha binary exposesUsage: /goal <objective>,ThreadGoal.objective,tokenBudget,/goal pause,/goal resume, and/goal clear.- Codex's
/goalis invoked the same way (/goal <objective>), but config-gated — a fresh session is required after enabling.
Hermes Agent:
/goalsets a persistent objective that continues across turns until the runtime's goal judge considers it complete, the user pauses/clears it, or the configured turn budget is reached.- Goal state survives
/resume, and user messages preempt the continuation loop. - Useful controls:
/goal status,/goal pause,/goal resume, and/goal clear. - Default continuation budget is bounded (
goals.max_turns, documented default 20), so the expanded prompt should make success criteria and verification visible. - Hermes supports
/goalin both CLI and messaging-command surfaces; RePrompter still only emits the copy-paste command and does not intercept slash commands.
The Card's Risk Level and Verification fields apply equally to all supported /goal runtimes.
Setup check
Pick the block matching the detected runtime.
Codex CLI:
If the feature exists but is disabled, configure:
Then start a fresh Codex session so the slash-command surface reloads.
Claude Code CLI:
No config flag is required — /goal is enabled by default once Claude Code is at v2.1.139 or later. However, /goal depends on Claude Code's hooks layer: if disableAllHooks or allowManagedHooksOnly is set in ~/.claude/settings.json, the command is unavailable on any version. v2.1.139 silently hung in that case; v2.1.140 surfaces a clear error message instead. Upgrading does not re-enable /goal under hook-blocking settings — permitting hooks is the only way to use /goal on Claude Code. Managed environments that block hooks should use Single mode for goal-shaped work.
Hermes Agent:
No feature flag is required for normal /goal use. Optional tuning lives in Hermes config:
Format: Workflow script (Improve output)
When the user says "compile to workflow", "build a workflow script", "workflow preflight", "make a workflow", "run via workflow tool", or "dynamic workflow", reprompt the task and compile it into a runnable Claude dynamic Workflow script. This is the execution-compilation sibling of the /goal preflight lane: RePrompter builds the expanded prompt first, then emits a .workflow.js the user runs via the Workflow tool — RePrompter does not run it.
This lane is the same surface as Repromptverse Option H; use this lane when the user wants the compiled script directly, and Option H when Phase 3 auto-picks the Workflow tool during a Repromptverse run.
Compatibility
Single Claude-native surface: requires the Workflow tool in the current toolset. There is no /goal-style command — the output is a Workflow({ scriptPath, args }) invocation. Other runtimes (Codex, Grok, Hermes, OpenClaw) use their own Repromptverse options (D/F/G/C) and the /goal preflight lane instead.
Runtime detection
| Signal | Runtime | |
|---|---|---|
A tool named Workflow is present in the current toolset | Claude dynamic Workflow tool — proceed with this lane | |
No Workflow tool | Fall back to Repromptverse (Option B/A/etc.) or /goal preflight |
Process
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassedPattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinggrokbot-plugin/skills/reprompter-goal-workflow/SKILL.md
Popularity
- Repository stars
- 119
- Repository forks
- 11
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aytuncyildizli/reprompter/reprompter-goal-workflow)