goal-prompt-drafting

goal-prompt-drafting is a skill for Claude Code, Codex from OutlineDriven/odin-claude-plugin. It costs 57 tokens per session (1,711 once invoked), scanned A, original, Apache-2.0.

A prompt-writing guide for creating objectives for agents that work over longer periods.

In plain words
What is it for?
Drafting copy-ready objectives for long-running coding agents without changing source files or remote systems.
Why use it?
It turns vague requests into measurable goals with proof of completion, limits, and stopping conditions.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the odin-agent plugin — 46 skills shipped together

Good fit Drafting copy-ready objectives for long-running coding agents without changing source files or remote systems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/outlinedriven/odin-claude-plugin/goal-prompt-drafting
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OutlineDriven/odin-claude-plugin --skill goal-prompt-drafting
Clone the repo
git clone --depth 1 https://github.com/OutlineDriven/odin-claude-plugin

Made for: Claude Code, Codex.

Or install odin-agent, the plugin that ships this one along with the rest of its 46 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for goal-prompt-drafting

README.md
[![agentmods](https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/goal-prompt-drafting/github.svg)](https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/goal-prompt-drafting)
Your own site
<a href="https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/goal-prompt-drafting"><img src="https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/goal-prompt-drafting/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for goal-prompt-drafting

Your own site · 80×15
<a href="https://agentmods.dev/skills/outlinedriven/odin-claude-plugin/goal-prompt-drafting"><img src="https://agentmods.dev/badge/skills/outlinedriven/odin-claude-plugin/goal-prompt-drafting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,711 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high System Prompt Leakage · line 37
    Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
    Fix: Remove any instructions that reveal, print, or output system prompts or internal rules. System instructions should never be exposed to end users.
  • medium Excessive Agency · line 46
    Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.
    Fix: Set explicit rate limits, timeouts, and resource quotas for API calls, file operations, and compute. Implement circuit breakers for runaway loops.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.01711
Opus 5 $0.00028 $0.00856
Sonnet 5 $0.00011 $0.00342
Haiku 4.5 $0.00006 $0.00171

Measured 6d ago against content hash c090a4349532, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

goal-prompt-drafting scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/odin-agent/skills/goal-prompt-drafting/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Goal prompt drafting

Contract

Field Bound contract
Trigger User asks to draft, rewrite, compress, or prepare a copy-ready goal-mode objective or /goal command for a long-running agent.
Authority Read-only: no file, VCS, credential, paid, published, deployed, or remote mutation.
Side effect Chat output only; applies a deterministic one-line normalizer and returns one normalized /goal command plus only necessary missing-information warnings.
Done The objective states a measurable end state, grounded proof, invariants against easy-outs, and a stop or blocked clause; it is one line within the 4,000-character harness limit, and any ungrounded contract element is listed as missing.

Inputs

  • The user's draft, request, or conversation describing the intended work (required).
  • Repository context the agent may read to ground elements: files, the exact test command, logs, or a plan (optional; looked up rather than guessed).
  • The harness character limit is fixed at 4,000; /goal is taken as one line.

Procedure

  1. Read the user's draft and any referenced repository context. Never invent an element: look things up in the request, conversation, or repository; an element that cannot be grounded is left out and flagged (see Failure and recovery). Done when: the grounding set is listed and every element is sourced from the request, conversation, or repository, with ungroundable elements flagged for the Missing list.
  2. Draft the condition as elements joined with AND, never "or": the loop takes the cheaper branch of an OR: Done when: the condition is drafted as AND-joined elements with no OR, and each element names an end state, scope, check, invariant, or stop bound.
    1. End state, not activity: "all legacyAuth() call sites use auth.verify()", not "migrate the auth code". An activity can be claimed; an end state is true or false.
    2. Scope to read first: the files, issue, logs, or plan to read before acting.
    3. Stated check: the exact command and its observable result ("pnpm test exits 0"), plus an instruction to run it and show the output; a result that never lands in the transcript does not exist to the evaluator.
    4. Invariants: what must not change ("without modifying vendor/"), always including "do not weaken, skip, or edit the checks themselves".
    5. Stop bound or blocked clause: "or stop after 20 turns", "if blocked, stop and report the blocker". Without one, a mis-stated condition loops forever. (A turn bound silently extends across session resume because the counter resets.)
  3. Keep it small. Every constraint narrows the state space the model can explore. Collapse to one terminating criterion when possible, move scope and definitions into a referenced file, and drop non-goals: a constraint earns its place only by closing a real easy-out. For long goals, name the final evidence (diff, report, artifact) and require a progress log file for durable state across compaction and resume. If the brief exceeds 4,000 characters, put the details in a GOAL.md and reference that file from the objective. Done when: the objective is one terminating criterion or the minimal set, definitions are moved to a referenced file, and the total length is at or under 4,000 characters.
  4. Reread the drafted condition as a lazy model would: what is the cheapest way to make every check pass without doing the intended work? Close the cheapest outs: prefer pairing existing checks over adding constraints, and do not enumerate every conceivable out into a non-goal list. The recurring outs: Done when: each named easy-out is closed by pairing an existing check, and no constraint was added that restates the step rather than closing a specific out.
    • Delete or stub instead of fix: "search prints nothing" also holds when the callers are gone; pair such a check with one that proves the feature still works.
    • Pass on a subset: running one test file, narrowing the search path, excluding directories from the check.
    • Game the gate: skipping/xfail-ing tests, hardcoding expected outputs, special-casing the test inputs, editing the check (the invariants rule).
    • Claim without running: declaring done or blocked with no check output in the transcript (the show-the-output rule).
  5. For security research goals, collapse to one terminating criterion: identify, trigger, and validate one high-severity vulnerability valid under a referenced threat-model file. That file, not the goal, carries scope, attacker powers, severity baseline, and known findings to skip. Use neutral wording ("trigger and validate", not "prove this is exploitable"), require demonstrated preconditions: assumed attacker access is the most common false positive: and stop for human review after each finding rather than piling up untriaged reports. Validate findings with a second pass by a fresh agent, never the finder alone. Done when: the security goal collapses to one terminating criterion referencing a threat-model file, and the neutral wording, precondition requirement, and second-pass validation are stated.
  6. Normalize deterministically: collapse all whitespace to one line, strip /goal prefixes, surrounding quotes, and code fences; warn if a stop clause is missing; reject output over 4,000 characters: shorten or move detail to a referenced file and rerun rather than truncating the contract. Done when: the output is one line, whitespace-collapsed, stripped of prefixes and fences, at or under 4,000 characters, and carries a stop-clause warning if one is absent.
  7. Return exactly one fenced text block, one line, as shown in Output. Add no prose around it except a Missing: list when checklist elements could not be grounded. Done when: exactly one fenced text block is returned on one line, with no surrounding prose except a Missing list when elements are ungrounded.

Read the full file on GitHub · 74 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 74 lines · 57 tokens per session scan A c090a4349532

Subscribe to this mod's changes

goal-prompt-drafting is a skill published in the GitHub repository OutlineDriven/odin-claude-plugin (35 stars, last pushed yesterday), licensed Apache-2.0. It adds 57 tokens to every session and 1,711 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens