App prd

From richkuo/rk-skills · View interactive version

App prd is an AI agent skill from the GitHub repository richkuo/rk-skills. Turns an app idea into a complete, section-numbered Product Requirements Document (PRD.md) and lands it through a worktree and a pull request, bootstrapping an empty repo if needed. Stage 1 of the new-app-pipeline. Use when the user says "create a PRD", "/app-prd", "turn this idea into a PRD", or gi

How to use this skill

Skill file

app-prd

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.

Input

Steps

1. Check repo state

git status, git log --oneline -3, git remote -v, git ls-remote origin. Three cases:

2. Draft `PRD.md`

Structure (adapt section names to the product, keep the skeleton):

  1. Header table — product name, repo, platforms, status (mark the MVP scope explicitly, e.g. "Draft v0.1 — MVP scope"), last-updated date.
  2. Product Overview — what it does, for whom, the emotional/business core in plain language.
  3. Goals — 3-5 bullets.
  4. Platforms & Technology — a table: each app surface, domains, payments, database, storage, email, auth. Record deferred infrastructure explicitly ("to be provisioned later; design compatible from day one").
  5. Feature sections — accounts, core domain objects, creation flows, privacy rules. Number every section (§4.2 style).
  6. Pricing — exact rates in tables, worked examples labeled illustrative, discount rules with the user's own example numbers preserved.
  7. Lifecycle/operations sections — storage tiers, scheduling windows with computed buffers (show the arithmetic: base time + buffer = trigger point).
  8. Notifications — every trigger, plus the implied supporting set (invites, receipts, warnings) marked as implied.
  9. Per-platform parity section when there are multiple surfaces.
  10. Open Questions — numbered; see rule below.
  11. Out of Scope (MVP).
  12. Post-MVP Roadmap — everything the user flagged as later.

3. Faithfulness rules (integrity-critical)

3b. Executable-spec rules (apply to every PRD edit)

4. Land it

Worktree off latest origin/main, branch cc/prd, commit PRD.md, push, open a PR. Attribution footer on the PRD file itself, the commit, and the PR body (Created).

5. Iterate on the same PR

For each user revision:

Output

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 review gate above (a fix-pr-review-loop run to LGTM on the PRD PR) — typically once the prd-questions stage empties the Open Questions section.

Failure modes

| 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; update every section it touches, not just the nearest one |

| Tempted to fill a spec gap with a plausible invention | Open Question instead |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.