prd-to-goal

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

A command that turns a written product requirements document, issue, or technical specification into a precise goal for an agent to pursue. A product requirements document describes what a product or feature must do.

In plain words
What is it for?
Use it before running a goal-based workflow on a PRD, issue, or specification, especially when the acceptance criteria need to be made explicit.
Why use it?
Vague completion conditions can make an agent repeat work or stop without proving the result. This helps express the required outcome as checks that can be tested.

Command for Claude CodeCursor

Written for Claude Code and Cursor: allowed-tools in frontmatter, but also a Cursor plugin manifest. Also seen: mentions subagents; mentions Claude Code.

Part of the ork plugin — 83 skills, 39 commands, 36 agents, 32 hooks shipped together

Good fit Use it before running a goal-based workflow on a PRD, issue, or specification, especially when the acceptance criteria need to be made explicit.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/yonatangross/orchestkit/prd-to-goal
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.

Clone the repo
git clone --depth 1 https://github.com/yonatangross/orchestkit

Made for: Claude Code, Cursor.

Or install ork, the plugin that ships this one along with the rest of its 83 skills, 39 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/commands/yonatangross/orchestkit/prd-to-goal/github.svg)](https://agentmods.dev/commands/yonatangross/orchestkit/prd-to-goal)
Your own site
<a href="https://agentmods.dev/commands/yonatangross/orchestkit/prd-to-goal"><img src="https://agentmods.dev/badge/commands/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/commands/yonatangross/orchestkit/prd-to-goal"><img src="https://agentmods.dev/badge/commands/yonatangross/orchestkit/prd-to-goal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,103 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.00037 $0.03103
Opus 5.5 $0.00015 $0.01241
Sonnet 5.5 $0.00007 $0.00621
Haiku 4.5 $0.00004 $0.00310

Measured 12d ago against content hash c9d811dd932d, 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 12d 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/.cursor-plugin/commands/prd-to-goal.md · 215 lines

How it starts

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

Auto-generated from skills/prd-to-goal/SKILL.md

Source: https://github.com/yonatangross/orchestkit

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 · 215 lines

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. 12d ago Changed c9d811dd932d
  2. 27d ago Changed · -18 tokens per session 49676cf967dc
  3. 2mo ago Changed 5fb33b5c9778
  4. 2mo ago Changed · +4 lines 3f91f85f2da1
  5. 2mo ago Changed 9bd92c2ba734
  6. 3mo ago First seen · 211 lines · 55 tokens per session scan A e113cd8b50d4

Subscribe to this mod's changes

prd-to-goal is a command published in the GitHub repository yonatangross/orchestkit (312 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 3,103 once invoked, about $0.0001 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-08-30.

Related

prd-to-goal compared with commands from other repositories

prd-to-goal next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prd-to-goalyonatangross/orchestkitCommand312todayMITA37Claude Code, Cursor
pn-distillperniemann/pnCoreCommand0todayMITA41Claude Code, Cursor
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code
convergegithub/spec-kitCommand153ktodayMITA35Claude Code