/rk-skills:app-prdfrom rk-skills
Transforms raw app ideas into a structured, section-numbered PRD.md and commits it via a worktree and pull request. Stage 1 of the new-app-pipeline.
Ships in rk-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn a raw idea dump into a complete, implementable PRD committed to the target repo. Write it so a cold agent could implement from it plus nothing else.
PRD.md at the repo root). This file is the PRD file in every step below.Each rule applies to every PRD edit, first draft and revision, unless the rule names a condition.
prd-questions. Mark it inline as unverified and list it in the Post-MVP Roadmap section (MVP: minimum viable product) as a scoping task that names the section it blocks.prd-to-issues reads only the PRD and keeps deferred roadmap features out of the release. Put the scoping tasks in their own subsection of the roadmap section, titled Scoping tasks (release scope), apart from the deferred features. Start that subsection with this sentence: "Each task below is research that the current release needs. It belongs to the release of the section that it blocks. It is no deferred feature, and it needs no user decision."*.swiftinterface files under xcrun --sdk iphoneos --show-sdk-path for an Apple platform, or a package's own .d.ts for a TypeScript package. Web documentation alone is insufficient evidence. A sample written against a legacy API proves nothing about its modern replacement (example: the legacy VN* Vision types).fix-pr-review-loop run to LGTM, with the first review set by the pull request (PR) title score (step 3).Before each push of the PRD file (step 3 and step 4), check the draft against the current input and fix each failure before the push.
The current input is the latest value that the user stated for each number, rate, duration, and rule. For a new PRD, it is the idea dump as changed by each later revision request, in order. For a revision of an existing PRD (step 1), it is that PRD as it was before this run, as changed by each revision request, in order. A value that a later request replaced or deleted is no longer part of the current input.
Scoping tasks (release scope) subsection.Run git status, git log --oneline -3, git remote -v, git remote get-url origin, and git ls-remote origin. Select the case from the first rule that applies:
git status fails and no .git entry exists in the current directory or in any parent directory: No repo. Test for the entry with d=$PWD; until [ -e "$d/.git" ] || [ "$d" = / ]; do d=$(dirname "$d"); done; [ -e "$d/.git" ], which fails when no entry exists. Never decide this case from the text of the git error.git status fails and a .git entry exists: git refused to open a repository that exists (for example "detected dubious ownership"). Stop and report the error. Run no git init, create no repository, and push nothing.git remote get-url origin fails, or git remote -v shows no origin line: No remote.git ls-remote origin fails with origin configured: stop and report the error. Its exit status cannot separate a network failure from an authentication failure or a missing remote repository, so select no case, create no repo, and push nothing.git ls-remote origin lists no refs and git log fails because the repo has no commits: Empty repo with remote.git ls-remote origin lists no refs and the local repo has commits: Unpublished local history.The cases:
gh repo create <name> --private. In the no-repo case, run git init first. In the no-remote case with local commits, the same question names the current branch and its number of commits, and states that this history will be published to the new repository. Add the new repository as origin. When the user confirmed that publish, push the branch with git push -u origin <branch> and never ask the Unpublished local history question for it. Then run this check again from rule 1.origin, and name the current branch and its number of commits in the question. On a yes, push the branch with git push -u origin <branch>, then run this check again from rule 1, which then selects Normal repo. On any other answer, stop and report that the PRD cannot land until origin has a default branch.main, one empty initial commit (git commit --allow-empty -m "Initial commit" plus the attribution footer), and push it. Never put the PRD itself in the bootstrap commit.Existing PRD. Fetch the default branch and look for the PRD file on it, and on the branch of the open PRD PR (step 3 defines a PRD PR). When the file exists, revise it in place under the Rules, and never replace it with a new draft unless the user asks. When it does not exist, draft it at that path.
Structure: adapt section names to the product. Keep each required item. An item marked conditional is included only when the product has what it names.
prd-to-issues carries these into each issue.Deferred features: everything the user flagged as later. Scoping tasks (release scope): the scoping tasks from Research items (Rules), under the fixed sentence that rule gives, each naming the section it blocks.<prefix>/prd-<product-slug>. The prefix is the harness prefix from the CLAUDE.md Git Workflow section (cc/ Claude Code, cursor/ Cursor, codex/ Codex). The slug is the product name lowercased, with each run of non-alphanumeric characters as one hyphen.<prefix>/prd or starts with <prefix>/prd-. The second form covers every slug and every Name collision suffix (for example cc/prd-acme-2). List open PRs with gh pr list --state open --limit 1000 --json number,headRefName,isCrossRepository,files and keep each one with isCrossRepository false that passes both tests. With one PRD PR, continue on its branch per step 4. With more than one, stop and ask the user which PR to continue.origin, and it is not the branch of the PRD PR that this run continues, never delete or reuse that branch: add the next suffix (-2, then -3) that exists on neither.work-on-issue step 1 (its Target, Base, and Create parts), with this branch name in place of the issue branch name. To continue on an existing PR branch, use that step's Resume commands for a local-only or remote-only branch.Created. The PRD file footer and the commit use Created only when this run creates the PRD file. When the PRD file existed before this run, both use Updated.docs(prd): <summary>, for the commit too. The CLAUDE.md Pull Requests section owns the title bracket and the body sections. The PR closes no issue, so take the standalone score from the validate-issue step 6 formula. The first review follows that score: a score below 25 selects the Sonnet first review.For each user revision:
grep -c first, replace all occurrences and casing variants, fix grammar fallout (a/an).Updated when it is still Created; commits use Updated from then on.PR URL plus a one-line summary of coverage and where the open questions are listed. The PR merges when the user says so, after the spec review gate (Rules, Executable spec), typically once the prd-questions stage empties the Open Questions section.
| Situation | Do this |
|---|---|
| Empty repo, no base branch | Bootstrap main with an empty commit first; never commit the PRD directly to main |
| User's numbers seem inconsistent (e.g. discount examples) | Record them verbatim, add an Open Question showing the inferred rule |
| User states requirements mid-iteration contradicting earlier ones | Latest wins; search the whole PRD and update every section it touches |
| Tempted to fill a spec gap with a plausible invention | Open Question for a user decision, or a scoping task for a research item (Rules, Research items) |
What SKILL.md sets; muted values are Claude Code's defaults
41 skills in this plugin
/cli-dispatchRequired dispatch procedure for a build, fix pass, or validate pass on an external coding CLI: the Codex CLI (`codex exec`) or the Cursor CLI (`agent -p`). Covers preflight, the shims, the background run, result parsing, the substitution check, and attribution. Load BEFORE dispatching any Codex CLI or Cursor CLI pass, as when an issue's Execution block stamps that harness./codex-validate-fableplan-work-on-issueRuns one or more GitHub issues in parallel through a Codex CLI validate pass, a Fable 5.2 plan when the score or a safety flag calls for one, and a Claude subagent build that opens a pull request per issue. It merges nothing. Use for "codex-validate-fableplan-work-on-issue", "validate with codex, plan with fable, then work on #A #B #C", or "do the next 3 issues the same way with a fable plan"./npx claudepluginhub richkuo/rk-skills --plugin rk-skillsOther plugins' skills for the same job