grp06/useful-codex-skills/goalcraft

Claude Code and agent skill by grp06/useful-codex-skills

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Turn a rough draft, vague ambition, or messy task brief into a powerful Codex /goal objective for persistent, evidence-checked work. Use when the user asks to write, improve, format, sharpen, stress-test, or activate a Codex goal, thread goal, durable goal, or /goal prompt.

Install

npx vskill@latest install grp06/useful-codex-skills/goalcraft

SKILL.md

Goalcraft

Core Contract

Convert messy intent into a compact Codex /goal objective and activate it: a thread-scoped, user-controlled completion contract that persists until evidence says the work is complete or honestly blocked. A strong goal defines a closed loop: choose the next action, run it, score progress against an explicit evaluator or checklist, record the result, then continue or stop based on evidence. Treat the /goal as a launcher, not the full plan: the objective must be less than 4,000 characters, but if it fits under that hard limit, activate it instead of repeatedly shortening it. Goalcraft's default final result is an active goal, not merely a ready-to-paste draft. Only skip activation when the user explicitly asks for draft-only, review-only, planning-only, or says not to set/start the goal.

For current Codex /goal mechanics, read references/codex-goal-contract.md when the exact runtime behavior matters.

Workflow

  1. Decide whether a Goal is the right tool.
  • Use a Goal when the work has a durable objective, an evidence-based finish line, and a path that may require several turns of investigation or iteration.
  • Do not recommend a Goal for a one-line edit, simple explanation, short code review, or a request where the user wants one answer and then a stop.
  • If the finish line is vague, recommend a goal-sharpening pass before activation rather than drafting a broad objective like "make this better."
  1. Identify the rough objective, workspace, and expected end state.
  • If the user supplied a draft, preserve their intent and tighten it.
  • If a repo or files are mentioned, inspect them before finalizing the goal.
  • If a critical success criterion is missing, ask the smallest necessary question; otherwise state assumptions.
  1. Shape the goal around evidence, not effort. Use these six fields as the main drafting spine.
  • Outcome: what must be true at the end.
  • Verification surface: the tests, benchmark, report, artifact, logs, command output, source material, screenshots, or explicit confirmation that proves it.
  • Constraints: what must not regress while Codex works.
  • Boundaries: which files, directories, systems, tools, data, repositories, or resources Codex may use.
  • Iteration policy: how Codex should choose the next useful action after each attempt.
  • Blocked stop condition: when Codex should stop, what evidence to report, and what input would unlock progress.
  1. Add supporting details only when they improve the contract.
  • Starting point: current context, repo, branch, artifact, issue, or known state.
  • Deliverables: concrete artifacts such as code paths, tests, PRs, reports, screenshots, or logs.
  • Approval boundaries: destructive actions, credentials, deploys, commits, messages, purchases, or other user-controlled decisions.
  • Checkpoint rhythm: how often to test, review, summarize progress, or pause.
  • Success metric: the observable result that proves completion.
  • Realistic environment: production-like preview, matching flags/config, representative data, authenticated browser session, real device, or other surface needed for evidence to mean what the goal says it means.
  • Progress surface: attempt ledger, current-state summary, draft PR, meaningful commit cadence, status artifact, update channel, or side-chat-readable status when the work may run for hours or days.
  1. Design the feedback loop before drafting the final goal.
  • Identify the score: metric, checklist, test result, scorecard, artifact count, benchmark, manual-review packet, or other evidence that lets Codex decide whether progress improved, stalled, or completed.
  • For measurable goals, prefer a baseline, target, measurement method, and counter-metric or anti-gaming guardrail. For example, test pass-rate goals should not be achieved by reducing meaningful coverage.
  • Prefer a fast iteration evaluator plus a slower final gate. For example: cheap smoke test, subsampled eval, lint/typecheck, focused replay, or checklist during work; full suite, full replay, deploy check, visual review, or final report before done.
  • For environment-sensitive goals, name the closest realistic environment Codex may use. If it cannot access one, either make environment setup the preliminary goal or require proxy results to be labeled as such.
  • For visual goals, treat images as context unless image matching is explicitly the requirement. Define completion through feature checklist, design-system adherence, interaction behavior, accessibility, and visual-diff tooling when appropriate; do not allow shortcuts such as cropping or inlining the reference image to fake fidelity.
  • For multi-hour or multi-day goals, name or recommend durable tracking surfaces: a current plan/queue, experiment or attempt ledger, decision/rejection log, scratchpad or daily notes, and generated current-state summary when useful.
  • For long-running implementation goals, consider whether commits, a draft PR, deploy preview, status artifact, or update channel should be part of the control loop.
  • If the real goal cannot yet be measured, recommend a preliminary goal to create the checklist, evaluator, scorecard, or tracking files before starting the main continuation loop.
  • Treat tracking files as part of the control loop, not optional documentation. They should help the next agent choose the next action without rereading the full conversation.
  1. For research or investigation goals, define the evidence standard before the work begins.
  • Ask for a claim inventory and evidence map when the task involves reproducing, auditing, or investigating uncertain source material.
  • Require the final artifact to separate confirmed findings, approximate reconstructions, support-only evidence, blocked claims, and remaining uncertainty.
  • If exact proof may be unavailable, say how proxy evidence should be labeled instead of letting a plausible artifact become an overclaimed conclusion.
  1. Keep the objective usable by Codex.
  • Hard limit: the objective text after /goal must be less than 4,000 characters.
  • Return the goal as soon as it fits under the hard limit.
  • Do not impose a lower working maximum such as 3,800 characters.
  • Treat only objectives of 4,000 characters or more as failed drafts.
  • The /goal should be the compact execution contract. Put rationale, examples, candidate lists, detailed scorecards, and nonessential context in companion notes outside the /goal payload.
  • Make every requirement auditable against files, commands, PR state, logs, screenshots, or explicit user confirmation.
  • Include score-loop and tracking-file detail in the /goal only when execution-critical; otherwise put detailed evaluator/checklist/memory structure in companion notes or a referenced repo document.
  • Include baseline, target, anti-gaming, realistic-environment, visual-completion, progress-surface, and cleanup-gate details in the /goal only when they are execution-critical; otherwise put them in companion notes.
  • Include exact commands only when they are already known from the repo or user.
  • Avoid hidden flags in slash text. /goal --tokens 50K ... is literal objective text in the TUI, not parsed syntax.
  • If a token budget is requested, present it separately from the objective text unless the target surface supports a separate budget field.
  • For complex or ambiguous work, recommend a planning/interview pass before setting the goal.
  • For very large work, include subagent/orchestration guidance only when the current Codex environment supports subagents and the work can be split into bounded, reviewable lanes.
  1. Choose the output shape.
  • Always start with compact shape: Outcome, Context, Boundaries, Constraints, Verify, Iterate/done/stop.
  • Do not use the full checklist as output structure unless the user explicitly asks for a verbose draft outside /goal.
  • Do not force every planning concept into the /goal. Reason with the full checklist, then compress related items before output.
  • Merge deliverables into Boundaries.
  • Merge must-not-regress into Constraints.
  • Merge autonomy, checkpoint rhythm, and blocked stop conditions into Iterate/done/stop.
  • Keep examples and candidate lists outside the goal unless they are essential execution constraints.
  • Section soft budgets: Outcome 250, Context 650, Boundaries 900, Constraints 550, Verify 550, Iterate/done/stop 700 characters.
  1. Validate length before activation.
  • Put only the ready-to-paste /goal ... command in a temporary file or pipe it to this skill's bundled validator: resolve scripts/validate_goal_length.py relative to the directory containing this SKILL.md, then run it with --max-chars 3999.
  • The validator belongs to Goalcraft, not to the user's working project. Do not search the user's repository for scripts/validate_goal_length.py.
  • The script strips a leading /goal and counts the actual objective Codex validates.
  • Validate once. If it passes the hard limit, return it. Do not keep running validation or shortening the goal just to satisfy a lower target.
  • If it fails the hard limit, discard the draft and switch immediately to emergency shape: /goal Complete [outcome] within [boundaries]. Preserve [constraints]. Verify with [checks/evidence]. Stop for [risks/blockers]. Done when [criteria].
  • After emergency fallback, validate once against the hard limit using --max-chars 3999.
  • Do not run iterative "make it a little shorter" loops. More than one failed hard-limit validation means the draft shape failed, not the character counter.
  • Do not activate or return a final goal until the validator passes.
  • If the bundled script path is unavailable, use this deterministic fallback on the file containing the exact final /goal ... command:
bash
python3 - "$GOAL_FILE" <<'PY'
import pathlib, sys
text = pathlib.Path(sys.argv[1]).read_text(encoding="utf-8").strip()
if text.startswith("```"):
lines = text.splitlines()
if lines and lines[0].startswith("```"):
lines = lines[1:]
if lines and lines[-1].startswith("```"):
lines = lines[:-1]
text = "\n".join(lines).strip()
if text.startswith("/goal") and text[len("/goal"):].startswith((" ", "\n", "\t")):
text = text[len("/goal"):].strip()
count = len(text)
print(f"objective_chars={count}")
if count > 3999:
raise SystemExit(1)
PY
  1. Activate the goal.
  • Default: after validation, activate the objective with the available goal surface (create_goal, thread/goal/set, or the current environment's equivalent).
  • If a current active goal already exists, do not silently replace it. Report the conflict and ask for confirmation unless the user has explicitly asked to replace the current goal.
  • If the goal tool supports a separate token budget and the user explicitly requested one, pass it as the tool's budget field rather than embedding budget syntax in the objective text.
  • If activation fails, report the exact failure and include the validated /goal ... text as the fallback artifact.
  1. Decide output mode.
  • Default: activate the goal and return a short confirmation with assumptions, objective length, and any companion notes.
  • Draft-only exception: when the user explicitly asks not to activate, return a ready-to-paste /goal ... block plus a short assumptions list.
  • If the user asks for review, critique the draft first and include a revised version.
  • If the user explicitly asks to replace an existing goal, call the goal tool or app-server surface only after the objective is final.

Output Format

Return companion notes outside the goal when details should not spend objective characters. Use this shape by default after successful activation:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
55
Repository forks
5
7-day trend score
20

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/grp06/useful-codex-skills/goalcraft/badge)](https://verified-skill.com/skills/grp06/useful-codex-skills/goalcraft)

Something wrong with this skill or its page? Tell us.