Write Prd logo

Write Prd

Community
dianyike
write-prd

Write a structured PRD from design decisions, rough ideas, or conversation context. Use when user wants to write a PRD, create requirements, document a feature spec, or bridge design decisions into a product requirements document. Bridges the gap between design exploration (grill-me) and implementation planning (prd-to-plan).

Overview

Publisherdianyike
Repositoryclaude-code-insights
Skill namewrite-prd
Stars
69
Forks
13
Bundled files
4
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 4 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by dianyike on GitHub. Read the source before you install it.

Installation

Install the Write Prd AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dianyike/claude-code-insights/tree/main/examples/write-prd
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dianyike/claude-code-insights.git /tmp/claude-code-insights
mkdir -p .claude/skills
cp -r /tmp/claude-code-insights/examples/write-prd .claude/skills/write-prd
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Write Prd in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Write Prd on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Write Prd is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Write PRD

Turn design decisions, rough ideas, or conversation context into a structured PRD that prd-to-plan can consume directly.

Workflow

1. Gather context

Check what's already available before asking the user to repeat themselves:

  • Look for decision records in docs/decisions/ — these are grill-me outputs
  • Check if the user pasted or referenced any existing design notes
  • Scan conversation history for requirements already discussed

If context is thin, interview the user (see Interview Guide).

2. Interview Guide

Fill gaps the existing context doesn't cover. Ask exactly one blocking question per turn — do not batch multiple questions into a single response. This matters because batching overwhelms the user and produces shallow answers; one focused question gets a thoughtful response.

Must answer before drafting (block on these, ask in order):

  1. Who is the target user and what's their pain?
  2. What does "done" look like? (the success state, not the feature list)
  3. What is explicitly out of scope? (non-goals prevent scope creep)

Ask if not inferrable from context (one per turn):

  • What are the priority tiers — what's P0 vs P1 vs nice-to-have?
  • Are there hard technical constraints (existing APIs, schema contracts, third-party limits)?
  • What are the non-functional requirements (performance, security, compliance)?
  • How will success be measured?

Stop interviewing once you have enough to draft. Don't exhaust the user — you can mark gaps as Open Questions in the PRD.

3. Draft the PRD

Use the template at templates/prd.md. Key principles:

  • User stories are the spine — prd-to-plan maps phases to user stories, so every requirement must trace back to at least one story. If a requirement has no user story, either write one or question whether it belongs.
  • Non-goals are as important as goals — they prevent scope creep during prd-to-plan and tdd phases. Be specific: "not building admin dashboard" is better than "keeping it simple."
  • Prioritize ruthlessly — P0/P1/P2 tiers. If everything is P0, nothing is. Push the user to make hard choices.
  • Link decision records — if grill-me decision records exist, reference them in the References section so context isn't lost.
  • Stay at product and system-contract level — PRDs describe what the system promises, not how it's built. Do not include implementation mechanisms such as cookie types (httpOnly), SDK pinning strategies, function names, or file paths. Those belong in the implementation plan, not the PRD.
  • Traceability — every functional requirement must trace back to a user story or a decision in the decision record. If you can't trace it, either write a user story for it or remove the requirement.

4. Review with user

Present the draft and explicitly ask:

  • Are the non-goals correct? (most common source of later scope disputes)
  • Do the P0 user stories capture the minimum viable feature?
  • Any missing technical constraints?

Iterate until the user approves.

5. Write the PRD file

Create docs/prds/ if it doesn't exist. Write to docs/prds/YYYY-MM-DD-<feature-name>.md.

  • Ask the user to confirm the filename before writing
  • If decision records from grill-me exist, add them to the References section

6. Delegated / Eval Mode

If this skill is being executed by a subagent, eval harness, or any caller that provides an explicit output path or workspace, distinguish between draft artifacts and the canonical PRD file:

  • Draft artifacts: Write the PRD draft and any handoff notes to the caller-provided output location
  • Canonical PRD file: Only write docs/prds/YYYY-MM-DD-<feature-name>.md after explicit user confirmation of the filename in the current conversation
  • No silent promotion: Do not treat a draft written to an eval workspace as the canonical PRD
  • Handoff clarity: If canonical write is blocked on confirmation, say so explicitly and include the proposed filename/path

When operating in delegated/eval mode:

  • Prefer saving prd-draft.md plus a short process-log.md or handoff note
  • Preserve unresolved questions so the parent agent can continue the user conversation
  • If the caller gives both an output directory and a confirmed canonical path, write both: the draft artifact for evaluation and the canonical PRD for the repo

Completion Criteria

  • Problem statement clearly articulates user pain (not solution)
  • Every functional requirement traces to a user story
  • Non-goals section is non-empty and specific
  • User stories have priority tiers (P0/P1/P2)
  • User approved the final PRD
  • PRD file written to docs/prds/ with confirmed filename
  • In delegated/eval mode, draft artifacts were written to the caller-provided output path and canonical write was deferred unless explicitly confirmed

Gotchas

  • Do not batch questions: The interview step says "one question per turn" for a reason. Batching 3 questions into one message produces shallow answers — the user skims and gives one-line replies. One focused question gets a thoughtful response. This was confirmed in eval iteration 1 where the skill sent 3 questions at once despite the instruction.
  • Do not leak implementation details into PRDs: Technical constraints like "httpOnly cookies", "SDK versions pinned", or specific API endpoint paths are implementation-level concerns. A PRD should say "session tokens must not be accessible to client-side scripts" (system contract), not "use httpOnly cookies" (implementation). This regression was caught in eval iteration 1 — the with-skill output was more implementation-heavy than the without-skill baseline.
  • Iterate this section: After each PRD session, append new gotchas here

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Write Prd AI skill do?

Write a structured PRD from design decisions, rough ideas, or conversation context. Use when user wants to write a PRD, create requirements, document a feature spec, or bridge design decisions into a product requirements document. Bridges the gap between design exploration (grill-me) and implementation planning (prd-to-plan).

Why use Write Prd on TypingMind?

Because you install it once and use it with any model. Write Prd is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Write Prd in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dianyike/claude-code-insights/tree/main/examples/write-prd. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Write Prd?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Write Prd?

As many as you like. As long as a model supports skills, you can use Write Prd with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Write Prd AI skill free?

Yes. It is published on GitHub by dianyike under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇