prd-to-goal

prd-to-goal is a skill for Claude Code from yonatangross/orchestkit. It costs 55 tokens per session (3,177 once invoked), scanned A, original, MIT.

A method for turning a product requirements document, issue, or technical specification into one precise `/goal` command. It reduces the specification to testable conditions that an agent can check and gives the command a stopping rule.

In plain words
What is it for?
Use it when you have a written specification and need to create a copy-pasteable goal with clear acceptance checks and retry limits.
Why use it?
It prevents vague goals that cause an agent to loop, drift from the requirements, or stop without a verifiable result.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ork plugin — 111 skills, 38 commands, 36 agents, 32 hooks shipped together

Good fit Use it when you have a written specification and need to create a copy-pasteable goal with clear acceptance checks and retry limits.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add yonatangross/orchestkit
Claude Code
/plugin install ork

Made for: Claude Code.

Or install ork, the plugin that ships this one along with the rest of its 111 skills, 38 commands, 36 agents, 32 hooks.

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 prd-to-goal

README.md
[![agentmods](https://agentmods.dev/badge/skills/yonatangross/orchestkit/prd-to-goal/github.svg)](https://agentmods.dev/skills/yonatangross/orchestkit/prd-to-goal)
Your own site
<a href="https://agentmods.dev/skills/yonatangross/orchestkit/prd-to-goal"><img src="https://agentmods.dev/badge/skills/yonatangross/orchestkit/prd-to-goal/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 prd-to-goal

Your own site · 80×15
<a href="https://agentmods.dev/skills/yonatangross/orchestkit/prd-to-goal"><img src="https://agentmods.dev/badge/skills/yonatangross/orchestkit/prd-to-goal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,177 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00055 $0.03177
Opus 5.5 $0.00022 $0.01271
Sonnet 5.5 $0.00011 $0.00635
Haiku 4.5 $0.00006 $0.00318

Measured 17d ago against content hash 39d4aa6d151b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

prd-to-goal scanned grade A with 1 finding 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 17d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- `curl -sf $URL` returns 2xx
plugins/ork/skills/prd-to-goal/SKILL.md · 220 lines

How it starts

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

prd-to-goal — PRD → /goal Decomposition

Converts a PRD / issue / spec into a single copy-pasteable /goal line. The hard part of /goal is not running it — it is writing an until clause that is convergent (terminates), falsifiable (testable boolean), and observable (the agent can actually check it without subjective judgement). This skill makes that decomposition reproducible.

1. When to use

Use it when:

  • You have a written PRD, GitHub issue, or spec and want to run /goal against it.
  • Past /goal runs drifted, looped, or burned tokens because the until clause was vague (until tests pass, until done, until design is good).
  • You need to justify the abort budget — turns, tokens, no-progress threshold.

Skip it when:

  • One-shot bug fix where the failing test is the acceptance criterion. Just run /goal until pnpm test -- auth.spec.ts passes.
  • No written PRD exists. Run write-prd first — vibes do not decompose.
  • The work is destructive or irreversible (DB migrations, mass file deletes). /goal retries; you do not want retries on DROP TABLE.

2. Inputs the skill accepts

Input How
Pasted PRD text Provide as the argument, or paste into the chat after invoking.
GitHub issue gh issue view <N> --json title,body,labels — the skill reads body.
Spec file Path to a Markdown / text file; the skill Reads it.
ADR / design doc Same as spec file.

3. The decomposition algorithm

  1. Extract acceptance criteria. Pull every MUST, SHOULD, Definition of Done, Acceptance Criteria, and checkbox-style line. If the doc has none, stop and tell the user to run write-prd first — there is nothing to converge on.
  2. Map each criterion to an observable boolean. Each criterion must reduce to a single shell-checkable assertion. Examples of observable state:
    • test -f path/to/file (file exists)
    • pnpm test -- pattern passes (test command exits 0)
    • gh pr view <N> --json state | jq -r .state == "MERGED"
    • wc -l < src/auth.ts returns a number within bound
    • pnpm lint exits 0
    • curl -sf $URL returns 2xx
  3. Reject non-observable criteria. Drop or rewrite criteria that depend on subjective judgement (code is clean, design feels right, users are happy). Either find a proxy (lint exits 0, Lighthouse score > 90, NPS survey ID exists) or surface the criterion back to the user as out of scope for /goal.
  4. Compose the until clause. AND-join the observable assertions in priority order — the cheapest, most likely-to-fail check first so the loop short-circuits early. Three to five assertions is the sweet spot; more than seven usually means the PRD is two PRDs.
  5. Fold the budget INTO the same condition. Claude Code accepts one goal per session, replace-on-set, and the bound is written inside that single condition (…, or stop after 15 turns). It is not a second command. Sensible turn caps:
    • 15 for a single feature, 30 for a refactor, 5 for a bug fix.

Read the full file on GitHub · 220 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. 17d ago Changed 39d4aa6d151b
  2. 18d ago Changed · -1 lines feaad71f0a96
  3. 26d ago Changed 6435a489a1d4
  4. 27d ago Changed · -7 lines 057ea3c92750
  5. 1mo ago Changed · +4 lines b832c87f842f
  6. 1mo ago Changed 3135f97d4665
  7. 1mo ago First seen · 224 lines · 55 tokens per session scan A 4d6bce5abe3c

Subscribe to this mod's changes

prd-to-goal is a skill published in the GitHub repository yonatangross/orchestkit (295 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 3,177 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

feature-requirements

Turn the ticket into requirements and CUJs, and stop with a split proposal when it is too big.

omnigent-ai/omnigent · 26 tokens

cococonverge

CocoPivot — multi-pod convergence synthesizer. Deterministically deduplicates findings from N parallel pod outputs into one prioritized, coordinated action plan. Invoked via $pivot run/show/status/clear.

Snowflake-Labs/cocoplus · 48 tokens

plan

Enter the Plan phase of CocoBrew. Runs CocoSpec quality gate pre-flight, reads spec.md and discuss.md (if present), invokes Coco native plan mode as a mandatory gate, captures the approved plan to plan.md, creates initial flow.json template, and commits. Must have $spec completed first.

Snowflake-Labs/cocoplus · 63 tokens

lean-debt

CocoLean shortcut debt ledger — harvests cocoplus: comment markers across the CocoPod and produces a ranked deferral report sorted by ceiling imminence and age.

Snowflake-Labs/cocoplus · 0 tokens

pod-status

Display complete CocoPlus project state: lifecycle phase, CocoFlow pipeline status, active modes, memory state, safety gate, inspector, meter, personas, patterns, cupper findings, and automation maturity level. Run at any time to get a full project overview.

Snowflake-Labs/cocoplus · 55 tokens

build

Enter the Build phase of CocoBrew. Reads plan.md, invokes CocoHarvest to decompose the plan into parallel workstreams, assigns personas, generates flow.json stages, and begins execution via $flow run. Must have $plan completed and approved first.

Snowflake-Labs/cocoplus · 53 tokens