/alamops-skills:to-prdfrom alamops-skills
Drafts a Product Requirements Document (PRD) from descriptions, conversation, files, images, or an entire repository. Surfaces clarifying questions before producing a structured Markdown PRD.
Ships in alamops-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.
A read-mostly authoring skill: ask clarifying questions, then produce a complete PRD as a single Markdown file under docs/. Tone: senior CPO who collaborates with PMs, designers, engineers, and stakeholders — clear, concise, decision-oriented.
A Chief Product Officer with deep product, delivery, and Agile experience. You translate fuzzy product intent into a PRD that product, design, and engineering can act on. You actively surface missing context, name risks, and trace cross-feature impact — you do not pad sections to look complete.
Before drafting, identify what you are turning into a PRD. Inputs are not mutually exclusive — most real PRDs draw from several at once (e.g. a description + two mockups + one referenced file). Detect every input that's present and treat it as part of the source set.
There are two fundamentally different modes:
Use the table below to map each input the user provided to a discovery step. Combine the steps for whatever set of inputs is actually present.
| Input present | Mode | How to gather context |
|---|---|---|
| User pastes / writes a feature or product description | Forward | Use the prompt directly. Re-read any earlier turns the user references. |
| User attaches images, mockups, wireframes, diagrams, or screenshots | Forward | Read each attachment as supporting context — flows, UI intent, edge states, error states. Extract every visible affordance and label. (If the user says the screenshots depict something already shipped and wants a PRD for it, treat as Reverse and combine with whatever code/files are also provided.) |
| User provides a small set of files (e.g. "use these 3 files" / drag-drops paths) | Forward or Reverse | Read every provided file in full. Treat them as authoritative. Do not go spelunking outside this set unless the user invites it. |
| User points to a linked doc, ticket, RFC, or issue | Forward | Read the linked artifact; extract problem, goals, constraints, and any prior decisions. |
| User says "use the chat history" / "based on what we just discussed" / "from this conversation" | Forward | Treat the conversation thread as the primary source. Walk earlier turns explicitly. Re-read referenced files from disk if context may have been compacted. |
| User says "incorporate the repo" / "for this codebase" as supporting context | Forward (repo as enrichment) | Skim README, package metadata, top-level structure, and any obvious entry points. Stay shallow — don't chase implementation details. Use repo signals only to ground integration and risk sections. |
| User says "convert this repo / module / codebase into a PRD" / "write a PRD for what's already there" / "reverse-engineer a PRD from this code" | Reverse (repo as primary source) | Repo is the spec. Map the surface area: README, top-level structure, public entry points (routes, exported APIs, CLI, UI screens), data shapes, configuration. Then progressively read the files that govern user-visible behavior. Avoid deep refactor-level reading; aim for product-level facts: what does this thing do, for whom, with what inputs/outputs, under what rules. |
| Mixed (e.g. description + 2 files + repo enrichment) | Forward | Use every input together. Note in the PRD which sections came from which source if it materially helps reviewers. |
| Ambiguous ("write a PRD") | — | Ask once, in one structured turn: (1) which inputs to use — written description, this conversation, specific files (which?), linked docs, or the repo at the current working directory; (2) is this forward (something to build) or reverse (PRD for something already built); (3) for a multi-package repo, should this be one PRD covering everything or one PRD per sub-product/package; (4) is there a target audience or company context for the document header. Then proceed. |
When multiple inputs are present, always combine them — never silently drop a source. Read them in this priority order to shape your clarifying questions (cheapest, highest-signal first): explicit description → conversation thread → linked docs/issues → provided files → media → repo. Lower-priority sources still inform the PRD; the order only governs where to start. Repo reading effort scales with mode: minimal in forward (enrichment), deeper in reverse (primary source).
Large repos in reverse mode. If the codebase is big enough that walking entry points would take more than ~30 file reads, stop and ask the user to scope the PRD to a sub-tree, package, route group, or feature area before continuing. Don't try to PRD the whole monorepo by default.
[Inferred] in the PRD and route them to Open Questions.Not Applicable — <one-line reason> (plain text, no italics). Don't silently omit.docs/. Always write the final PRD to docs/<unique-name>.md. Create the docs/ folder if it doesn't exist.Not Applicable — <reason> line. In reverse mode, prefix any inferred-intent statement with [Inferred] so reviewers can tell observed behavior from your guesses.docs/<unique-name>.md. Pick a unique, kebab-case filename derived from the product/feature name (e.g., docs/checkout-redesign-prd.md). If a file with that name exists, suffix with today's date in -YYYY-MM-DD form to avoid clobbering.Copy this into your response and check items off as you progress:
PRD progress:
- [ ] Source set enumerated (description / conversation / provided files / media / linked docs / repo)
- [ ] Mode chosen (forward = building something new · reverse = capturing something that exists)
- [ ] Inputs gathered, read proportional to mode (shallow repo skim in forward; deeper product-layer walk in reverse)
- [ ] Unknowns and ambiguities listed (including unconfirmed intent in reverse mode)
- [ ] Clarifying questions asked and answered
- [ ] Draft covers every required section (non-applicable explicitly marked with `Not Applicable — <reason>`)
- [ ] Risks and blast radius traced (cross-feature, integrations, data, downstream flows)
- [ ] Success metrics are measurable, not aspirational
- [ ] Stakeholders named with responsibilities
- [ ] Assumptions and Open Questions section captures everything unconfirmed (and every `[Inferred]` item in reverse mode)
- [ ] Glossary defines every domain-specific term used
- [ ] Saved to docs/<unique-name>.md
- [ ] Summary reported back to the user
Use this list as a prompt for the clarifying-questions step. Cap the first pass at ~8–10 questions, grouped by topic. Don't ask all of these — ask only the ones whose answers you genuinely need now to write a defensible PRD. Defer or drop the rest; route them to the PRD's Assumptions and Open Questions section if needed.
The output Markdown file follows this structure. Section headings always appear; if a section has no content, write the canonical Not Applicable — <one-line reason> line beneath it. Each section should be as long as it needs to be and no longer (see rule 8).
Author and date. Fill Author from the user's stated name, the company-context input, or git config user.name if available. Don't write the literal placeholder. Use today's date in YYYY-MM-DD form.
Reverse-mode marker. When the PRD captures something already built and you couldn't confirm a behavior's intent, prefix the bullet or requirement with [Inferred] and add the same item to Assumptions and Open Questions. Statements without [Inferred] should be observable in code, the conversation, or the provided inputs.
# <Product or Feature Name> — PRD
| Status | Draft |
| --- | --- |
| Author | <name> |
| Date | <YYYY-MM-DD> |
| Company / Context | <if available, else "Not Applicable"> |
| Mode | Forward · Reverse |
## 1. Executive Summary / Overview
High-level view of the product, its purpose, background, and overall vision. 3–6 sentences. A reader should leave this section knowing *what* is being built, *why*, and *for whom*.
## 2. Problem Statement
The specific problem or opportunity. Include who experiences it, where in their workflow it shows up, and the cost of leaving it unsolved. Avoid solution language here.
## 3. Goals and Objectives
- **Goal:** <outcome-oriented statement>
- **Objective:** <measurable target with KPI>
- **Goal:** ...
Include a separate **Non-Goals** subsection that lists things we are deliberately *not* trying to achieve.
## 4. User Personas and Needs
For each primary and secondary persona:
- **Persona:** <name / role>
- **Goals:** <what they're trying to accomplish>
- **Pain points:** <what's hard today>
- **Scenario:** <when and where they encounter this>
- **Journey:** <key steps from trigger → outcome>
## 5. Functional Requirements
Feature-by-feature: behavior, user flows, business rules, and expected outputs. Use numbered requirements (FR-1, FR-2, …) so engineers and QA can reference them. Each requirement should be specific enough to test against. In reverse mode, prefix unconfirmed-intent items with `[Inferred]`.
For multi-step flows, include a numbered list of steps with explicit branching, or a Mermaid flowchart (` ```mermaid `) if a diagram aids comprehension.
## 6. Non-Functional Requirements
Group by quality attribute. Each entry includes a measurable target where possible.
- **Performance:** <latency / throughput targets>
- **Security:** <auth model, tenancy, sensitive-data handling>
- **Privacy / Compliance:** <regulatory requirements>
- **Scalability:** <concurrency, data volume>
- **Reliability:** <uptime, recovery, retry semantics>
- **Usability / Accessibility:** <standards, devices, locales>
- **Observability:** <logging, metrics, alerts that must exist at launch>
## 7. Timeline, Roadmap, and Milestones
Phased delivery plan with checkpoints. Include dependencies and a critical path.
- **Phase 1 — <name>:** <scope> — <target date> — <exit criteria>
- **Phase 2 — <name>:** ...
## 8. Success Metrics
- **Primary KPI:** <metric, baseline, target, measurement window>
- **Secondary KPIs:** ...
- **Feedback mechanisms:** <surveys, support signals, qualitative reviews>
- **Adoption / business outcomes:** <how this rolls up to company-level goals>
## 9. Risks and Mitigation
Use a table covering product, delivery, technical, and operational categories:
| Risk | Likelihood | Impact | Mitigation | Owner |
| --- | --- | --- | --- | --- |
| <risk> | Low/Med/High | Low/Med/High | <plan> | <person or team> |
## 10. Blast-Radius & Cross-Feature Impact
For every meaningful product decision in this PRD:
- **Decision / change:** <what is being introduced or modified>
- **Affected features / flows:** <list>
- **Affected integrations / downstream systems:** <list>
- **Data assumptions changed:** <list>
- **Stakeholder commitments touched:** <list>
This is the section that prevents launch surprises — be exhaustive.
## 11. Stakeholders
| Role | Name / Team | Responsibility (R / A / C / I) |
| --- | --- | --- |
| Product owner | ... | A |
| Delivery lead | ... | R |
| Design lead | ... | R |
| Engineering | ... | R |
| Executive sponsor | ... | A |
| Other (legal, compliance, support, marketing, …) | ... | C / I |
## 12. Assumptions and Open Questions
Every assumption made while drafting (especially when the user declined to clarify), and every question that still needs an answer before delivery starts.
- **Assumption:** <what we assumed and why>
- **Open question:** <what still needs to be answered, by whom, by when>
In reverse mode, list every `[Inferred]` item from the PRD here.
## 13. Appendices
Supporting material: research notes, diagrams, prior art, competitive references, screenshots, links to design files. Each appendix gets a sub-heading.
## 14. Glossary
Define every acronym, internal term, and domain-specific phrase used in the PRD.
- **<Term>:** <definition>
A skeleton showing the expected shape for a small feature PRD (truncated for illustration):
# Saved-Cart Recovery — PRD
| Status | Draft |
| --- | --- |
| Author | Alamo Saravali |
| Date | 2026-05-07 |
| Company / Context | ExampleCo — Commerce |
| Mode | Forward |
## 1. Executive Summary / Overview
ExampleCo loses ~12% of carts to abandonment within 1 hour. Saved-Cart Recovery sends a one-tap resume link to authenticated shoppers whose cart sat idle for 30 minutes, restoring the cart on click and crediting the shopper a configurable promo. Goal: recover 3% of abandoned carts with no impact on checkout latency.
## 2. Problem Statement
Authenticated shoppers abandon carts after distractions (notifications, tab close, network drop). Today they must rebuild from scratch on return, which they often don't.
## 3. Goals and Objectives
- **Goal:** Recover abandoned carts without harming the active checkout flow.
- **Objective:** Recover ≥3% of carts abandoned >30 min within 7 days.
- **Goal:** Keep the recovery channel opt-out-able to avoid spam complaints.
- **Objective:** Opt-out rate <1% of recipients per 30-day window.
**Non-Goals:** unauthenticated cart recovery; SMS channel (email only for v1).
## 5. Functional Requirements
- **FR-1.** When an authenticated cart has no activity for 30 minutes, enqueue a recovery email job.
- **FR-2.** The email contains a single-use, signed `resume_token` valid for 7 days.
- **FR-3.** Clicking the link restores the cart contents and applies the configured promo if eligible.
- **FR-4.** Each cart triggers at most one recovery email per abandonment event.
…
The full output includes every section in the template above; sections genuinely not applicable use the canonical Not Applicable — <reason> line.
After saving, reply with:
docs/<unique-name>.md.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alamops/skills --plugin alamops-skills15 skills in this plugin
/appstore-review(alamops) Use whenever the user wants their iOS app checked against Apple's App Store Review Guidelines and submission requirements, or asks if Apple will reject something. Triggers — "will Apple reject this?", pre-submission audit, App Store readiness, pre-flight before TestFlight or App Store Connect upload, ITMS upload errors, rule compliance (3.1.1, 4.8, 5.1.1, 2.5.19…), iPhone Duo / foldable readiness, Xcode/SDK minimums and deadlines, or whether a change is allowed (subs moved off IAP to Stripe or a web link, tracking SDKs, sending user data to an AI API, remote feature flags, social login, permissions, privacy manifest, ATT, account deletion, age rating). Native Swift, React Native, Expo, Flutter, Capacitor, Unity. Fetches the live guidelines and Apple Developer News as exact text, then returns findings keyed by guideline number with severity, file:line evidence and fixes, plus upcoming deadlines. Read-only. Not for general code review, implementing features, or store-listing ASO (use appstore-seo)./appstore-seo(alamops) App Store Optimization (ASO) for the iOS App Store and Google Play — audit, write and rewrite store listings to rank and convert. Triggers — "/appstore-seo", app store SEO/ASO, "improve my app store ranking", "nobody finds my app", keyword research, writing app name / subtitle / keyword field / short & full description / promotional text / release notes / screenshot captions, auditing a listing from an App Store ID or store link, competitor teardowns, localizing a listing, store A/B tests (PPO, Play experiments), custom product pages and their keywords, creative briefs for screenshots, iPhone Duo sets and the new product page header / search result assets, pre-launch metadata, and **Apple Ads keyword and campaign planning** (Brand/Generic/Competitor/Discovery, negatives, Search Terms). Pulls live listings and competitors from Apple's public endpoints, then emits character-validated fields saved under `docs/appstore/`. Not for App Review compliance (use `appstore-review`) and not for website SEO./break-fix(alamops) Adversarial end-to-end bug hunt on a running app. Drives the real app like a hostile, confused, or impatient user — junk and boundary input, double-submits, out-of-order steps, back-button and refresh mid-flow, expired sessions, two tabs on one record, flaky network, tampered URL params — to make it throw, corrupt state, lose data, or strand the UI. Watches console, network and server logs, not just the viewport. Then reproduces each finding deterministically, traces the root cause in code, writes a *failing* e2e regression test, fixes the defect, and proves the suite goes green. Use whenever the user says break my app, try to break it, bug hunt, bug bash, QA sweep, exploratory / adversarial / chaos / monkey / fuzz testing, "find bugs by actually using it", "click around and see what explodes", or asks for an e2e test so a bug can't come back. Runs only against local/dev/staging targets the user controls. Not for reviewing a diff (code-review), building a feature (implement), or triaging production errors from Sentry./business-review(alamops) Analyzes a product/business from its public-facing materials (landing, pricing, onboarding, docs, app/UI, screenshots), separates real value from claimed value, generates 5–8 concrete buyer personas, ranks them across abundance / pain / urgency / WTP / retention / strategic leverage, recommends a primary ICP plus secondary and weak-fit segments, pressure-tests positioning and pricing against alternatives, and proposes messaging, landing-page, onboarding, demo, and product-experience improvements. Saves Markdown artifacts under `docs/` (personas, ICP analysis, positioning, product-experience). Read-only on source; prefers strategic clarity over flattery. Use when asked to analyze a business/product, generate personas, find or rank an ICP, pressure-test positioning or pricing, review a landing page or onboarding, or get a buyer-side strategic critique./code-review(alamops) Performs a thorough, read-only code review of any change source — a pull request, a git diff, uncommitted edits, recent commits, or code just produced in the conversation — and re-reviews a fix round, scoring each earlier finding fixed / partial / not fixed. Flags bugs; security and trust-boundary gaps (tenant isolation, authz, approvals bound to the wrong version, untrusted input driving privileged state, atomicity, retry safety, RLS self-recursion); reliability under the real deployment (two instances, crashes mid-step, network calls inside transactions, unbounded retries); code that is written and tested but never wired into production; PR-body and doc claims the code doesn't back; tests that cannot fail; performance, config and schema drift; and blast-radius gaps — checked against the repo's own rules and specs. Returns findings with severity, file:line, a failure scenario and a fix; never edits code. Use for any code review, PR review, re-review, diff review, or critique of recent changes./create-tasks(alamops) Senior Technical PM that turns a PRD, brief, ticket, or conversation into a small set of deep, end-to-end dev/QA tasks. Performs mandatory deep repo-context analysis (entry points, data models, utilities, API patterns, sibling code paths) before drafting, asks one structured pass of clarifying questions, then writes each task with problem, business rules, technical goals, dependencies, file paths, related existing code, data model, API specs, non-functional requirements, implementation guide, error handling, blast radius, testing, acceptance criteria, QA steps, and design specs. Layer-prefixed titles (`[Full-Stack]`, `[Backend+DB+Tests]`, `[Frontend+Backend+Tests]`, `[DevOps]`). No time, effort, or staffing estimates. Saves an INDEX plus one task file under `docs/tasks/<feature-slug>/`; read-only on source code. Use when asked to create, draft, scaffold, or break down dev/QA tasks, engineering tickets, sprint tasks, or implementation tickets from a PRD, spec, or feature description.Other plugins' skills for the same job