Agent skill

Prd To Goal

by yonatangross in yonatangross/orchestkit

Decomposes a PRD, issue, or spec into a copy-pasteable single /goal until ..., or stop after N turns line.

MITAuto-check: notesProduct & Project Management

Install Prd To Goal

skills CLI
$ npx skills add yonatangross/orchestkit --skill prd-to-goal -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install yonatangross/orchestkit prd-to-goal --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/yonatangross/orchestkit.git skills-src && mkdir -p .claude/skills && cp -r skills-src/src/skills/prd-to-goal .claude/skills/prd-to-goal && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
prd-to-goal
GitHub stars
292
Token cost
~3.1k tokens
SKILL.md length
1,362 words
Files
2 (incl. references)
Skills in repo
108
Repo updated
First seen
Licence
MIT

At a glance

Decomposes a PRD, issue, or spec into a copy-pasteable single /goal until ..., or stop after N turns line.

  • Works in 9 steps: When to use → Inputs the skill accepts → The decomposition algorithm → …
  • Running /goal against a spec
  • SKILL.md covers 1. When to use, 2. Inputs the skill accepts, 3. The decomposition algorithm and 4. Output template, plus 5 more sections
  • Calls gh, pnpm and jq

What it does

Prd To Goal is an agent skill from yonatangross/orchestkit. Decomposes a PRD, issue, or spec into a copy-pasteable single /goal until ..., or stop after N turns line. Use when running /goal against a spec, to reduce acceptance criteria to AND-joined boolean assertions.

Its SKILL.md is about 3.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/recipe-library.md`). Compatibility notes: Claude Code 2.1.277+ (uses GA /goal loop).

It sits in Product & Project Management, covering PRD writing and User stories. It works with pnpm. The repository describes itself as: The Complete AI Development Toolkit for Claude Code. 106 skills, 36 agents, 171 hooks. Install ork for stable (v9.x), or ork-alpha for the v10 line, which ships daily. The licence is MIT.

When your agent uses it

  • Running /goal against a spec
  • Reduce acceptance criteria to AND-joined boolean assertions

Example prompts

  • “Use the prd-to-goal skill to decompose a PRD, issue, or spec into a copy-pasteable single /goal until ..., or stop after N turns line”
  • “/prd-to-goal”

Requirements

  • Python 3
  • Compatibility (from SKILL.md): Claude Code 2.1.277+ (uses GA `/goal` loop).
  • Pre-approved tools (allowed-tools): Read, Write, Bash, Grep, Agent

Workflow steps

9 steps, taken from the step headings in SKILL.md.

  1. When to use
  2. Inputs the skill accepts
  3. The decomposition algorithm
  4. Output template
  5. Worked examples
  6. Recipe Library — pre-built loops
  7. Anti-patterns
  8. Post-timeout assertion grader
  9. Related skills

What it can do on your machine

Read from SKILL.md and the folder at commit e4ff8d9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Bash
    • Grep
    • Agent

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh
    • pnpm
    • jq
    • curl
    • lighthouse

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh, pnpm and curl, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Claude Code 2.1.277+ (uses GA `/goal` loop).

    From compatibility in the SKILL.md frontmatter.

Context cost

Prd To Goal loads about 3.1k tokens when it runs, and up to ~5.3k if it reads all its reference files. Until then it costs about 56 tokens; SKILL.md has 1,362 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~3.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Read, Write, Bash, Grep, Agent

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from yonatangross/orchestkit at commit e4ff8d9, republished under its MIT licence (© yonatangross). 1,362 words, ~3,145 tokens.

Download SKILL.mdSave it as .claude/skills/prd-to-goal/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
prd-to-goal
description
Decomposes a PRD, issue, or spec into a copy-pasteable single `/goal until ..., or stop after N turns` line. Use when running /goal against a spec, to reduce acceptance criteria to AND-joined boolean assertions.
allowed-tools
Read, Write, Bash, Grep, Agent
compatibility
Claude Code 2.1.277+ (uses GA `/goal` loop).
argument-hint
[prd-text | issue#N | path/to/spec.md]
license
MIT
user-invocable
true
context
inherit
metadata.category
planning
metadata.milestone
M140
metadata.version
0.1.0
metadata.author
OrchestKit
metadata.complexity
low
metadata.tags
/goal, planning, prd, automation, cc-2.1.139

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

InputHow
Pasted PRD textProvide as the argument, or paste into the chat after invoking.
GitHub issuegh issue view <N> --json title,body,labels — the skill reads body.
Spec filePath to a Markdown / text file; the skill Reads it.
ADR / design docSame 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.

    Never emit a second /goal line. A second line does not add a rail — it parses as a fresh condition, REPLACES the first, and leaves the session goaled on the budget alone with every acceptance assertion discarded. The abort-if form this skill used to emit was never Claude Code syntax at all: grep -c -a -F 'abort-if' against the 2.1.226 binary returns 0, and it appears in none of the 357 archived changelogs. Verified 2026-08-08 (#3312).

4. Output template

The skill emits exactly ONE line, ready to paste:

/goal until <assertion_1> AND <assertion_2> AND <assertion_3>, or stop after <N> turns

Emit the line first, on its own. A fenced code block around it is fine, since the user copies it out. Any notes (assertion ordering, what a grep cannot prove) go after the line and stay short. Never emit a second /goal line, and never emit a goal line at all when the input has no observable acceptance criteria (step 1 of the algorithm): say so and point at write-prd instead.

Optional: rubric emission (.claude/rubric.json)

When the user wants graded feedback beyond pass/fail booleans, the skill MAY also emit .claude/rubric.json conforming to ork-rubric/1.0 (schema: ${CLAUDE_PLUGIN_ROOT}/shared/rubric.schema.json), mapping each acceptance criterion to one dimension:

json
{
  "rubric": "ork-rubric/1.0",
  "skill": "prd-to-goal",
  "dimensions": [
    { "name": "regression_test_added", "weight": 0.4, "min_pass": 8, "min_blocker": 3 },
    { "name": "auth_suite_green",      "weight": 0.4, "min_pass": 10, "min_blocker": 5 },
    { "name": "lint_clean",            "weight": 0.2, "min_pass": 10, "min_blocker": 0 }
  ]
}

Scores are 0–10 (min_pass = soft floor, min_blocker = hard blocker regardless of composite); dimension weights MUST sum to 1.0 — see the schema for the full contract.

The file is deliberately user-editable before the /goal run — that is the point. Adjusting weights and min_pass thresholds is how the user injects judgement into the loop without rewriting assertions (rubric-as-environment-feedback, Lance Martin 2026-06-09). The post-timeout grader (§8) treats the rubric, if present, as the user's intent — senior to the literal assertion text.

5. Worked examples

Example A — Bug fix PRD

Input (issue body):

Title: Login fails on emails containing "+"
Acceptance Criteria:
- New regression test in tests/auth/test_login.py covers email with "+"
- The new test passes
- All existing auth tests still pass

Output:

/goal until test -f tests/auth/test_login.py AND pnpm test -- tests/auth/test_login.py passes AND pnpm test -- tests/auth passes, or stop after 5 turns

Rationale: file existence is the cheapest check; the targeted test is the regression gate; the broad auth suite catches collateral damage.

Example B — Feature PRD

Input (PRD excerpt):

Feature: User Avatar Endpoint
MUST:
- New route GET /users/:id/avatar registered
- Returns 200 with { url: string, updatedAt: ISO8601 } for known user
- Returns 404 for unknown user
- Integration test covers both cases
- OpenAPI spec updated

Output:

/goal until grep -q "users/:id/avatar" src/routes/users.ts AND pnpm test -- tests/integration/users.avatar.spec.ts passes AND grep -q "/users/{id}/avatar" openapi.yaml AND pnpm lint passes, or stop after 15 turns

Rationale: route grep catches a handler that was stubbed but never wired; the integration spec encodes both 200 and 404; OpenAPI grep enforces the docs MUST; lint guards against half-typed code shipping.

Show full SKILL.md (559 more words)Show less
Example C — Refactor PRD

Input (PRD excerpt):

Refactor: split monolithic src/auth.ts (1842 LOC) into per-strategy files
Definition of Done:
- src/auth.ts under 200 LOC
- New files in src/auth/strategies/*.ts cover oauth, jwt, password
- All auth tests still pass
- Lint clean
- No new files outside src/auth/

Output:

/goal until [ $(wc -l < src/auth.ts) -lt 200 ] AND test -f src/auth/strategies/oauth.ts AND test -f src/auth/strategies/jwt.ts AND test -f src/auth/strategies/password.ts AND pnpm test -- tests/auth passes AND pnpm lint passes, or stop after 30 turns

Rationale: the LOC bound is the convergent signal — without it, /goal can keep "improving" forever. File-existence checks pin the structural decomposition; tests + lint guard correctness. Higher budget because refactors run longer than bug fixes.

6. Recipe Library — pre-built loops

Where §3–5 generate a custom /goal line from a spec, the recipe library ships ready-made ones for the recurring autonomous loops. Each is a loop shape wrapped around an ork worker skill, following the same convergent / falsifiable / budgeted rules as a generated line.

RecipeUse whenWorker
🧪 Coverage climbraise coverage to a target, meaningfullycover
🔴 Production error sweepclear a backlog of actionable errorsfix-issue
📚 Docs-drift sweepdocs / reference drifted from codeaudit-full
⚡ Page-load budgeta page exceeds its latency budgetperformance
🧹 Repository cleanupstale memory / state accumulateddream
✅ Quality streakdon't trust a single green (flaky suite)verify
🎫 Ticket → PR-readydrive an issue to a CI-green PRfix-issue → create-pr
🧼 Type/lint zeroclear a type/lint backlog without suppressionsfixer agent

Full recipes — the exact single-line /goal until …, or stop after N turns lines, convergent signal, and per-recipe guardrail: references/recipe-library.md. That file is the in-repo source intended for an ork-loops pack on skills.sh (not yet built; the channel Forward Future's Loop Library uses), so the loop recipes can travel while ork supplies the machinery each pass runs on.

7. Anti-patterns

BadWhy it failsGood
/goal until tests passWhich tests? Existing or new? On which command? The agent can pick whatever subset is already green and claim done./goal until pnpm test -- tests/auth/test_login.py passes AND pnpm test -- tests/auth passes
/goal until the code looks cleanNot falsifiable. The agent cannot check "looks clean" — it will either declare victory immediately or never./goal until pnpm lint passes AND [ $(wc -l < src/auth.ts) -lt 200 ]
/goal until doneUnbounded. There is no terminating condition; combined with a generous , or stop after 50 turns this is how runs eat 500K tokens overnight.Pick 3–5 observable assertions. If you cannot, the PRD is not ready — go to write-prd.

8. Post-timeout assertion grader

If the /goal loop hits its turn bound, do NOT retry the same line and do NOT let the looping agent critique its own assertions. Spawn a FRESH-context grader that audits the assertion set itself:

python
# Bare-eval pattern — independent context window, zero shared state:
Bash("CLAUDE_CODE_FORK_SUBAGENT=1 claude -p --bare \"$(cat /tmp/grader-prompt.txt)\"")
# or: Agent(subagent_type="general-purpose", prompt=grader_prompt)  # fresh spawn, no producer prose

The grader receives the /goal line, .claude/rubric.json (if emitted), a compressed summary of the last N turns, and freshly regenerated repo-state evidence. It returns one verdict:

VerdictDiagnosisAction
tightenAssertions too weak — agent could satisfy them without real successRe-run with the stricter revised line
loosenAssertions unsatisfiable as written (wrong path, impossible bound, pre-broken suite)Re-run with the achievable revised line
abortTask genuinely blocked (missing access, contradictory spec, broken env)Stop; surface the blocker to the user

Grading must happen in an independent context window — never self-critique (verifier sub-agents outperform self-critique because the grader does not share the producer's context; Lance Martin, 2026-06-09). Budget: one grader call per timeout, and the grader never loops itself.

Full pattern (prompt template, independence rules, worked example): ${CLAUDE_PLUGIN_ROOT}/skills/chain-patterns/references/assertion-grader.md.

  • ork:write-prd — if the input has no acceptance criteria, run this first.
  • ork:brainstorm — useful when the PRD itself is contested and you want options before writing the goal.
  • ork:audit-full — after /goal exits, run audit-full to confirm the assertions actually held end-to-end (the loop trusts the boolean; audit re-checks the intent).

© yonatangross, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in src/skills/prd-to-goal of yonatangross/orchestkit.

  • SKILL.md
  • references/recipe-library.md

Open the folder on GitHubat commit e4ff8d9

Compare with similar skills

Prd To Goal next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Prd To Goal compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Prd To Goal this skillyonatangross/orchestkit292—~3.1kAutomated safety check: NotesMIT
Sveltekit WebappLeoYeAI/openclaw-master-skills2.2k—~5.2kAutomated safety check: NotesMIT
Ralph Tui Create Beadssubsy/ralph-tui2.5k1 repos~2.6kAutomated safety check: PassMIT
Ralph Tui Create Beads Rustsubsy/ralph-tui2.5k1 repos~2.8kAutomated safety check: PassMIT
Ralph Tui Create JSONsubsy/ralph-tui2.5k1 repos~2.6kAutomated safety check: PassMIT
To Prdywwynm/EverythingDone14411 repos~777Automated safety check: PassGPL-3.0

Similar skills

  • Sveltekit Webapp

    LeoYeAI/openclaw-master-skills

    Scaffold and configure a production-ready SvelteKit PWA with opinionated defaults.

    2.2k GitHub stars~5.2k tokensUpdated 2 mo ago
    Product & Project ManagementAuto-check: notes
  • Ralph Tui Create Beads

    subsy/ralph-tui

    Convert PRDs to beads for ralph-tui execution. An agent skill from subsy/ralph-tui.

    2.5k GitHub starsUsed in 1 repo~2.6k tokens
    Product & Project ManagementAuto-check passed
  • Convert PRDs to beads for ralph-tui execution using beads-rust (br CLI).

    2.5k GitHub starsUsed in 1 repo~2.8k tokens
    Product & Project ManagementAuto-check passed
  • Ralph Tui Create JSON

    subsy/ralph-tui

    Convert PRDs to prd.json format for ralph-tui execution. An agent skill from subsy/ralph-tui.

    2.5k GitHub starsUsed in 1 repo~2.6k tokens
    Product & Project ManagementAuto-check passed
  • To Prd

    ywwynm/EverythingDone

    Turn the current conversation context into a PRD and publish it to the project issue tracker.

    144 GitHub starsUsed in 11 repos~777 tokens
    Product & Project ManagementAuto-check passed
  • Use Case Writer

    phucnt-bazone-vietnam/use-case-writer

    Generate Use Case specifications in English Markdown following the IT BA standard 13-field template (Karl Wiegers / IIBA).

    143 GitHub stars~4.1k tokensUpdated 4 mo ago
    Product & Project ManagementAuto-check passed

More from yonatangross/orchestkit

All 107 skills in this repo
  • API Design

    yonatangross/orchestkit

    API contract design for REST and GraphQL, covering resource shape, URL and header versioning with deprecation windows, RFC 9457 Problem Details error handling, and OpenAPI specs.

    292 GitHub stars~2.9k tokensUpdated today
    Auto-check passed
  • Architecture Decision Record

    yonatangross/orchestkit

    ADR templates in the Nygard format with context, decision, consequences, and alternatives.

    292 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Audit Full

    yonatangross/orchestkit

    Single-pass codebase analysis leveraging a 1M-token context window for comprehensive security scanning, architecture review, and dependency auditing.

    292 GitHub stars~3.5k tokensUpdated today
    Auto-check: notes
  • Code Review Playbook

    yonatangross/orchestkit

    Structured review processes, conventional comments, language-specific checklists, and feedback templates.

    292 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Create PR

    yonatangross/orchestkit

    Creates GitHub pull requests with pre-flight validation, conventional title formatting, and structured summary generation.

    292 GitHub stars~4.5k tokensUpdated today
    Auto-check: notes
  • Explore

    yonatangross/orchestkit

    Multi-angle codebase exploration spawning 3-5 parallel agents for code structure, data flow, architecture patterns, and health assessment.

    292 GitHub stars~3.9k tokensUpdated today
    Auto-check: notes

Works with

Questions about Prd To Goal

What does Prd To Goal do?

Decomposes a PRD, issue, or spec into a copy-pasteable single /goal until ..., or stop after N turns line. Prd To Goal is an agent skill from yonatangross/orchestkit., or stop after N turns line.

When should I use Prd To Goal?

Prd To Goal fits situations like: running /goal against a spec; reduce acceptance criteria to AND-joined boolean assertions.

How do I install Prd To Goal in Claude Code?

Run `npx skills add yonatangross/orchestkit --skill prd-to-goal -a claude-code`. Or copy the skill folder (src/skills/prd-to-goal in yonatangross/orchestkit) into .claude/skills/prd-to-goal in your project. Claude Code loads it when a task matches its description.

How do I install Prd To Goal in Codex?

Run `npx skills add yonatangross/orchestkit --skill prd-to-goal -a codex`. Or copy the skill folder (src/skills/prd-to-goal in yonatangross/orchestkit) into .agents/skills/prd-to-goal in your project. Codex loads it when a task matches its description.

Can I use Prd To Goal in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yonatangross/orchestkit --skill prd-to-goal -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/prd-to-goal, .gemini/skills/prd-to-goal, .github/skills/prd-to-goal and .opencode/skills/prd-to-goal in your project.

What does Prd To Goal need to run?

Going by SKILL.md and its folder, Prd To Goal needs the command-line tools its instructions call (gh, pnpm, jq, curl and lighthouse). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Read, Write, Bash, Grep, Agent. Compatibility (from SKILL.md): Claude Code 2.1.277+ (uses GA `/goal` loop)..

Does Prd To Goal access the network?

SKILL.md contains no URLs. Its commands use gh and curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Prd To Goal safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Prd To Goal use?

Prd To Goal is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Prd To Goal use?

About 3.1k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.1k tokens, read only when the agent opens those files.

What are the alternatives to Prd To Goal?

Skills that share tags, products or a category with Prd To Goal: Sveltekit Webapp (LeoYeAI/openclaw-master-skills, 2.2k stars), Ralph Tui Create Beads (subsy/ralph-tui, 2.5k stars), Ralph Tui Create Beads Rust (subsy/ralph-tui, 2.5k stars) and Ralph Tui Create JSON (subsy/ralph-tui, 2.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Prd To Goal?

yonatangross (a GitHub user) maintains it in yonatangross/orchestkit, which has 292 GitHub stars. The repository holds 108 skills in this directory. The repository was last updated on October 10, 2026.

Source: yonatangross/orchestkit on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.