prd-to-goal

prd-to-goal is a command for Claude Code, Cursor from yonatangross/orchestkit. It costs 55 tokens per session (3,074 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.

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 — 107 skills, 36 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

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, Cursor.

Or install ork, the plugin that ships this one along with the rest of its 107 skills, 36 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 55 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,074 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.03074
Opus 5 $0.00028 $0.01537
Sonnet 5 $0.00011 $0.00615
Haiku 4.5 $0.00006 $0.00307

Measured 9d ago against content hash e113cd8b50d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 9d 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 · 211 lines

How it starts

The opening of the file, as written. The whole thing — 211 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

/ork: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 /ork: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 /ork: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 · 211 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. 9d 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 (231 stars, last pushed today), licensed MIT. It adds 55 tokens to every session and 3,074 once invoked, about $0.0003 per session on Opus 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.