agentleFS
chiruu12chiruu12/claude-skills-template/.claude/skills/to-prd/SKILL.md

to-prd

Skill0 starsChanged 7 months agoMITView on GitHub

Turn the current conversation context into a PRD and submit it as a GitHub issue. Synthesizes what's already known — does NOT interview the user. Extracts deep modules, extensive user stories, and implementation decisions. Use when user wants to create a PRD from the current context.

141 other projects use a version of this, 65 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use decision-mapping, obsidian-vault and 2 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

  • simo97Skill

    obsidian-vault

    Also in 23 projects that use this

  • MicrosoftSkill

    diagnose

    Use to systematically diagnose why scenarios fail — identifies root causes by analyzing agent traces, codebase, and behavioral patterns

    Also in 63 projects that use this

  • simo97Skill

    migrate-to-shoehorn

    Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.

    Also in 27 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 136 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    NOT: when the feature is still being explored — use grill-me first

    line 19
  2. Distinctive:

    Check with the user that modules match expectations and which need tests.

    line 32
  3. Distinctive:

    DO NOT: write vague user stories ("As a user, I want it to work")

    line 98

“Common” is measured: kept by at least 6 in 10 of the 136 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

Synthesize the current conversation context and codebase understanding into a Product Requirements Document, then file it as a GitHub issue. This skill does NOT interview the user — it works from what's already been discussed.

When to Use

  • A conversation has established enough context about a feature to document it
  • User says "create a PRD", "write this up", or "file this as an issue"
  • User wants to hand off implementation to someone else
  • NOT when the feature is still being explored — use grill-me first
  • NOT for refactors — use request-refactor-plan

Process

1. Explore the repo

Understand the current state of the codebase, if you haven't already.

2. Identify deep modules

Sketch the major modules needed. Look for opportunities to extract deep modules — significant functionality behind a simple, testable interface.

Check with the user that modules match expectations and which need tests.

3. Write and file the PRD

Submit via gh issue create using this template:

## Problem Statement
[User's problem, from user's perspective]

## Solution
[Solution from user's perspective]

## User Stories
1. As an <actor>, I want a <feature>, so that <benefit>
[Extensive list covering all aspects]

## Implementation Decisions
- Modules built/modified
- Interface changes
- Architectural decisions
- Schema changes, API contracts
[No file paths or code snippets — they go stale]

## Testing Decisions
- What makes a good test (external behavior only)
- Which modules will be tested
- Prior art in the codebase

## Out of Scope
[Explicit exclusions]

## Further Notes
[Optional additional context]

Common Rationalizations

ShortcutWhy It Fails
"The conversation has all the context, I don't need a PRD"Conversations are linear and full of tangents. A PRD forces you to organize decisions into a structure someone else can act on.
"I'll file a short issue and fill in details later"You won't. The context is freshest now. A vague issue becomes a blocking question in implementation.
"User stories are busywork"User stories expose gaps. If you can't write "As X, I want Y, so that Z" for a behavior, you haven't thought through who needs it and why.
"Implementation decisions belong in code"Code shows WHAT was built. A PRD captures WHY decisions were made and WHAT was deliberately excluded.

Red Flags

  • PRD has fewer than 8 user stories — being too high-level
  • Implementation decisions include file paths — these go stale immediately
  • Out of Scope section is empty — scope will creep
  • Problem statement describes the solution, not the problem

Verification Checklist

  • Problem statement describes user pain, not technical debt
  • User stories are extensive (8+ minimum)
  • Implementation decisions capture WHY, not just WHAT
  • Out of scope is explicit
  • No file paths or code snippets in issue body
  • Deep modules identified
  • GitHub issue created successfully

Anti-patterns

  • DO NOT interview the user — this skill synthesizes existing context
  • DO NOT include file paths or code snippets — they go stale
  • DO NOT write vague user stories ("As a user, I want it to work")
  • DO NOT skip module identification — it's where architectural quality comes from

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.