agentleFS
mik2winmik2win/foureyes/skills/to-prd/SKILL.md

to-prd

Skill2 starsChanged 3 months agoMITView on GitHub

Synthesize the CURRENT conversation into a Product Requirements Document and save it to the project's plans location — no fresh interview, it crystallizes what's already been discussed. Quizzes only about which modules the change touches (a design-first nudge) before writing. TRIGGER when: the user says "turn this into a PRD", "write this up", "document what we decided", or wants a durable doc out of a discussion that's already happened. DO NOT TRIGGER when: requirements are still unclear and need an interview (use /analyst), or the user wants to break an existing plan into work items (use /to-issues).

132 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use decision-mapping, zoom-out and 9 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • FabienDehopreSkill

    decision-mapping

    Turn a loose idea into a sequenced map of investigation tickets, then drive them to resolution one at a time.

    Also in 8 projects that use this

  • victorgarciaesgiSkill

    zoom-out

    Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.

    Also in 60 projects that use this

  • simo97Skill

    request-refactor-plan

    Use this skill when user wants to create a refactor plan.

    Also in 23 projects that use this

  • simo97Skill

    edit-article

    The user will invoke this skill to help them edit an article.

    Also in 23 projects that use this

  • kennethkeimSkill

    ubiquitous-language

    Extract a DDD-style ubiquitous language glossary from the current conversation, flagging ambiguities and proposing canonical terms. Saves to UBIQUITOUS_LANGUAGE.md. Use when user wants to define domain terms, build a glossary, harden terminology, create a ubiquitous language, or mentions "domain model" or "DDD".

    Also in 23 projects that use this

  • AnasX7Skill

    setup-pre-commit

    Set up Husky pre-commit hooks with lint-staged (Prettier), type checking, and tests in the current repo. Use when user wants to add pre-commit hooks, set up Husky, configure lint-staged, or add commit-time formatting/typechecking/testing.

    Also in 34 projects that use this

  • +4 more from simo97

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 1 is distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 127 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read .claude/PROJECT.md — Plans location + naming convention (the PRD is a plan),

    line 34
  2. Very specific:

    If missing or TEMPLATE, fall back to the root CLAUDE.md (always in context) when it carries the plans location and architecture — note …

    line 36
  3. Very specific:

    If CONTEXT.md exists, read it and write the PRD in its ubiquitous language.

    line 39
  4. Very specific:

    Read any source passed in $ARGUMENTS (brief, spec, issue) and fold it in.

    line 40
  5. Very specific:

    Before writing, ask the user which modules / layers this change touches (offer your best guess from PROJECT.md → Architecture and the …

    line 55
  6. Very specific:

    If a touched module is unfamiliar, Grep/Glob to confirm it exists and what it does — cite path.

    line 62
  7. Very specific:

    Write to the plans location from PROJECT.md using its naming convention (e.g.

    line 68
  8. Distinctive:

    Keep it factual and traceable — number user stories, reference them from acceptance criteria.

    line 100
  9. Very specific:

    Domain vocabulary: Write in the CONTEXT.md language.

    line 122

“Common” is measured: kept by at least 6 in 10 of the 127 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

To PRD: $ARGUMENTS

Turn what you and the user have already discussed into a clean PRD. This is a synthesis skill, not an interview — the thinking happened in the conversation (often a /grill or /analyst session); your job is to capture it precisely. The one thing you do ask about is which modules the change touches, because naming the design surface up front is what keeps a PRD from becoming a wish-list that ignores the codebase.

$ARGUMENTS may point at a source (a brief/spec path, an issue file) to fold in; otherwise work from the conversation context.

This skill carries only invariant logic. The plans location and naming convention come from .claude/PROJECT.md; the domain vocabulary comes from CONTEXT.md.


Phase 0 — Load profile

  1. Read .claude/PROJECT.md — Plans location + naming convention (the PRD is a plan), Architecture (module map, for the modules-touched question), Domain (roles/vocabulary). If missing or TEMPLATE, fall back to the root CLAUDE.md (always in context) when it carries the plans location and architecture — note you're running without a kit profile; STOP → /bootstrap first only if neither has them.
  2. If CONTEXT.md exists, read it and write the PRD in its ubiquitous language.
  3. Read any source passed in $ARGUMENTS (brief, spec, issue) and fold it in.

Phase 1 — Gather from context (no interview)

Pull the substance from the conversation: the problem, the decisions already made, the scope agreed, constraints, and any open questions raised. Don't re-ask what's already settled — if the conversation answered it, capture it. If the conversation is thin and the PRD would be mostly guesswork, stop and route to /analyst (the interview skill) instead of inventing requirements.


Phase 2 — The one quiz: modules touched

Before writing, ask the user which modules / layers this change touches (offer your best guess from PROJECT.md → Architecture and the conversation, via AskUserQuestion). Naming the design surface now:

  • grounds the PRD in the real codebase,
  • surfaces ripple effects and reuse early,
  • and flags if the change is bigger than the discussion assumed.

If a touched module is unfamiliar, Grep/Glob to confirm it exists and what it does — cite path.


Phase 3 — Write the PRD

Write to the plans location from PROJECT.md using its naming convention (e.g. <plans>/<YYYY-MM-DD>-<slug>-prd.md; prefix a ticket id if the conversation had one). For a longer PRD, delegate the drafting to the docs-writer agent, then review it. Structure:

# <Feature> — PRD

- **Date:** <today>   ·   **Status:** Draft   ·   **Source:** <conversation | brief path>

## Problem & value
<the pain/gap, who it's for, why now — from the discussion>

## Goals / non-goals
- **Goals:** <what success looks like>
- **Non-goals:** <explicitly out of scope>

## Requirements
- Numbered user stories (US-1, US-2…) and behaviour, in the domain vocabulary.

## Modules touched
- `<module/layer per PROJECT.md>` — <what changes there> (from Phase 2)

## Constraints & assumptions
<decisions taken as given, deadlines, dependencies>

## Open questions
<unresolved forks that still affect scope or design>

## Acceptance criteria
<verifiable, each traceable to a user story (AC-n → US-n)>

Keep it factual and traceable — number user stories, reference them from acceptance criteria.


Phase 4 — Route onward

Next needRoute
Break the PRD into independently-grabbable work items/to-issues <prd-path>
Codebase-readiness / impact analysis before building/prepare <prd-path>
Requirements still have real gaps/analyst (proper interview)

State the recommendation and the PRD path.


Hard rules

  • Synthesize, don't interview. The only question you ask is modules touched. Everything else comes from the conversation — if it isn't there, route to /analyst, don't invent it.
  • Ground in the codebase. Modules-touched must reference real paths from PROJECT.md → Architecture; confirm unfamiliar ones.
  • Domain vocabulary. Write in the CONTEXT.md language.
  • Facts from PROJECT.md. Plans location and naming convention come from the profile.

See also

  • Before: /grill or /analyst (where the discussion happens). /discover brief as a source.
  • After: /to-issues (split into work items) or /prepare (plan the build).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.