Agent skill

Write Prd

by digoal in digoal/blog

Write a practical Product Requirements Document (PRD) from a product idea, feature concept, customer request, business problem, or rough product opportunity.

GPL-2.0Auto-check passedProduct & Project Management

Install Write Prd

skills CLI
$ npx skills add digoal/blog --skill write-prd -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install digoal/blog write-prd --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/digoal/blog.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/write-prd .claude/skills/write-prd && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
write-prd
GitHub stars
8.6k
Token cost
~1.4k tokens
SKILL.md length
710 words
Files
3 (incl. references)
Skills in repo
98
Repo updated
First seen
Licence
GPL-2.0

At a glance

Write a practical Product Requirements Document (PRD) from a product idea, feature concept, customer request, business problem, or rough product opportunity.

  • Works in 7 steps: Normalize the idea → Build the product argument → Design the PRD structure → …
  • The user asks to write
  • SKILL.md covers Core Rule, Inputs, Workflow and Output Requirements, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Write Prd is an agent skill from digoal/blog. Write a practical Product Requirements Document (PRD) from a product idea, feature concept, customer request, business problem, or rough product opportunity. Use when the user asks to write, draft, create, generate, or save a PRD, product requirements document, product spec, feature requirements, 产品需求文档, 产品方案, 需求说明, or PRD from an idea. Output a diagram-rich Markdown PRD under the current project's markdown/ directory.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `agents/openai.yaml` and `references/prd-template.md`).

It sits in Product & Project Management, covering PRD writing. The repository describes itself as: AI,Opensource,Database,Business,Finance,Minds. git clone --depth 1 https://github.com/digoal/blog. The licence is GPL-2.0.

When your agent uses it

  • The user asks to write
  • Product requirements document
  • Feature requirements
  • PRD from an idea

Example prompts

  • “/write-prd”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Normalize the idea
  2. Build the product argument
  3. Design the PRD structure
  4. Add diagrams
  5. Write feature requirements
  6. Define validation
  7. Save and verify

What it can do on your machine

Read from SKILL.md and the folder at commit 69fb793. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Write Prd loads about 1.4k tokens when it runs, and up to ~2.6k if it reads all its reference files. Until then it costs about 108 tokens; SKILL.md has 710 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~108
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from digoal/blog at commit 69fb793, republished under its GPL-2.0 licence (© digoal). 710 words, ~1,439 tokens.

Download SKILL.mdSave it as .claude/skills/write-prd/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
write-prd
description
Write a practical Product Requirements Document (PRD) from a product idea, feature concept, customer request, business problem, or rough product opportunity. Use when the user asks to write, draft, create, generate, or save a PRD, product requirements document, product spec, feature requirements, 产品需求文档, 产品方案, 需求说明, or PRD from an idea. Output a diagram-rich Markdown PRD under the current project's markdown/ directory.

Write PRD

Core Rule

Turn the user's idea into a PRD that helps a team decide, build, test, launch, and review the product work. A good PRD is not a feature list; it is a clear product bet:

problem -> user -> goal -> evidence -> scope -> behavior -> acceptance -> launch validation

Save the final PRD as Markdown under the current project's markdown/ directory. Create the directory if missing.

Inputs

Use the user's prompt as the source idea. If the prompt is vague, infer conservatively and write assumptions explicitly in the PRD. Ask a clarification question only when the missing information would materially change the product direction, such as target user, business domain, or platform.

If the user provides source notes, meeting records, screenshots, tickets, links, or existing docs, use them as evidence. If current market, competitor, pricing, regulation, or live product data is required and not provided, verify with reliable sources before using specific claims.

Workflow

  1. Normalize the idea

    • Identify the product/domain, target user, triggering scenario, problem, proposed solution, and expected business outcome.
    • Separate user problem from requested solution. For example, "export Excel" may mean reporting, sharing, audit, migration, or offline analysis.
    • Name the PRD topic in a short Chinese or English slug.
  2. Build the product argument

    • Write a one-sentence product bet: "For [user], in [scenario], solve [problem], by [solution], measured by [metric]."
    • State assumptions when evidence is absent.
    • Include existing alternatives or workarounds; a new product competes with the user's current behavior.
    • Define goals and non-goals before writing feature details.
  3. Design the PRD structure

    • Read references/prd-template.md when drafting the document.
    • Keep sections practical. Do not pad with generic market background.
    • Scale detail with risk: simple internal tools can be concise; payment, data, permission, compliance, AI, or customer-facing flows need stronger edge cases and acceptance criteria.
  4. Add diagrams

    • Include at least one useful diagram.
    • Prefer Mermaid for workflows, user journeys, state transitions, data flow, decision trees, and metric chains.
    • ASCII text is acceptable for simple state tables or wireframe sketches.
    • If using SVG, output the .svg file separately in markdown/ and reference it from the PRD with a relative Markdown image link, for example ![流程图](prd-topic-flow-20260609.svg).
    • Diagrams must support reasoning; do not add decorative graphics.
  5. Write feature requirements

    • For each major capability, cover: user story, main path, edge cases, permissions, data rules, system behavior, analytics/events, and acceptance criteria.
    • Do not prescribe technical architecture unless the user asks. Product should define behavior, constraints, and verification, not implementation internals.
    • For AI features, specify input, output, quality bar, editability, failure modes, human review, data retention, and safety boundaries.
  6. Define validation

    • Include result metrics, process metrics, and guardrail metrics.
    • Define launch plan, rollout scope, rollback conditions, and post-launch review timing.
    • Include stop conditions: what evidence means the team should stop, rollback, or change hypothesis.
  7. Save and verify

    • File name: markdown/<topic>-prd-<YYYYMMDD>.md.
    • If SVG diagrams are created, use markdown/<topic>-<diagram-name>-<YYYYMMDD>.svg.
    • After writing, verify the Markdown file exists and includes a diagram, goals/non-goals, requirements, acceptance criteria, metrics, launch plan, and open questions.
Show full SKILL.md (214 more words)Show less

Output Requirements

The PRD must be written in Chinese unless the user asks for another language.

The final Markdown should be complete enough for product, design, engineering, testing, and business stakeholders to review. Use tables where they improve scanning, but do not hide weak reasoning in tables. Use concrete defaults for missing details and mark them as assumptions.

Required sections:

  • Title and metadata
  • One-sentence product bet
  • Background and problem
  • Target users and scenarios
  • Evidence and assumptions
  • Goals and non-goals
  • Scope and release slicing
  • User journey or workflow diagram
  • Functional requirements
  • Edge cases and constraints
  • Data, permissions, analytics, and observability
  • Acceptance criteria
  • Launch, rollout, rollback, and review plan
  • Metrics: result, process, guardrail
  • Open questions and risks

Quality Bar

Before finishing, check:

  • Does the PRD say who has the problem, in what scenario, and why now?
  • Does it distinguish user problem, product solution, and business outcome?
  • Does it include current alternatives or workarounds?
  • Does it define what is out of scope?
  • Can engineering derive tasks without guessing core behavior?
  • Can testing derive normal, abnormal, permission, and data-boundary cases?
  • Can the team review success 2 to 8 weeks after launch?
  • Is there at least one useful diagram?
  • Is the file saved under the current project's markdown/ directory?

Reference

  • references/prd-template.md - PRD structure, section guidance, and reusable table patterns.

© digoal, GPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/write-prd of digoal/blog.

  • SKILL.md
  • agents/openai.yaml
  • references/prd-template.md

Open the folder on GitHubat commit 69fb793

Compare with similar skills

Write Prd next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Write Prd compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Write Prd this skilldigoal/blog8.6k—~1.4kAutomated safety check: PassGPL-2.0
CCPM Project Managementautomazeio/ccpm8.4k—~1.1kAutomated safety check: PassMIT
Ralph Tui Create Beadssubsy/ralph-tui2.5k1 repos~2.6kAutomated safety check: PassMIT
Trellis Brainstormanjiemo/SunnyBeach1787 repos~4kAutomated safety check: PassApache-2.0
Adversarial Speczscole/adversarial-spec5561 repos~8.3kAutomated safety check: NotesMIT
Ralph Tui Create Beads Rustsubsy/ralph-tui2.5k1 repos~2.8kAutomated safety check: PassMIT

Similar skills

  • Runs a spec-driven workflow from PRD to epic to GitHub issues to parallel agents, with status, standup and blocked-work reports from bundled scripts.

    8.4k GitHub stars~1.1k tokensUpdated 6 mo ago
    Product & Project ManagementAuto-check passed
  • Ralph Tui Create Beads

    subsy/ralph-tui

    Convert PRDs to beads for ralph-tui execution. An agent skill from subsy/ralph-tui.

    2.5k GitHub starsUsed in 1 repo~2.6k tokens
    Product & Project ManagementAuto-check passed
  • Trellis Brainstorm

    anjiemo/SunnyBeach

    Guides collaborative requirements discovery before implementation.

    178 GitHub starsUsed in 7 repos~4k tokens
    Product & Project ManagementAuto-check passed
  • Adversarial Spec

    zscole/adversarial-spec

    Iteratively refine a product spec by debating with multiple LLMs (GPT, Gemini, Grok, etc.) until all models agree.

    556 GitHub starsUsed in 1 repo~8.3k tokens
    Product & Project ManagementAuto-check: notes
  • Convert PRDs to beads for ralph-tui execution using beads-rust (br CLI).

    2.5k GitHub starsUsed in 1 repo~2.8k tokens
    Product & Project ManagementAuto-check passed
  • Runs a guided product-manager interview that classifies each question automatically and produces a Product Requirements Document.

    6.2k GitHub starsUsed in 1 repo~5.7k tokens
    Product & Project ManagementAuto-check passed

More from digoal/blog

All 98 skills in this repo
  • 三层审查模型,逐段逐句验证文章真伪、证据链与逻辑结构。Use when the user asks to fact-check, verify, audit, or evaluate the credibility of an article, essay, report, opinion piece, social-media post, or any written claim —…

    8.6k GitHub stars~939 tokensUpdated 10 days ago
    Auto-check passed
  • Find latent bugs in a local PostgreSQL source tree (RELxxSTABLE branch or HEAD) the way a core hacker does: build a heavily-poisoned debug instance (cassert + cache-discard + -O0/-ggdb3 + core…

    8.6k GitHub stars~4k tokensUpdated 10 days ago
    Auto-check passed
  • Digoal

    digoal/blog

    Portable digital employee distilled from digoal's personal blog for PostgreSQL, PolarDB, DuckDB, AI+database, vector/RAG, database operations, source-code reading, technical content creation…

    8.6k GitHub stars~2.2k tokensUpdated 10 days ago
    Auto-check passed
  • 从论文 PDF 文件或论文 PDF URL 生成通俗易懂、图文并茂、带批判性评估的中文 Markdown 解读,并保存到当前项目的 markdown 目录。Use when the user asks to interpret,精读,解读,summarize,explain,analyze, or write an article from an academic paper PDF…

    8.6k GitHub stars~1.5k tokensUpdated 10 days ago
    Auto-check passed
  • Analyze a product from documentation, websites, PDFs, articles, release notes, pricing pages, app listings, reviews, filings, or related links; save separate intermediate analyses from seven roles…

    8.6k GitHub stars~1.8k tokensUpdated 10 days ago
    Auto-check passed
  • Turn a blog post, article, notes, or any source material into a set of vertical poster images — one cover plus several coherent content slides that explain the core points.

    8.6k GitHub stars~1.4k tokensUpdated 10 days ago
    Auto-check passed

Questions about Write Prd

What does Write Prd do?

Write a practical Product Requirements Document (PRD) from a product idea, feature concept, customer request, business problem, or rough product opportunity. Write Prd is an agent skill from digoal/blog. Write a practical Product Requirements Document (PRD) from a product idea, feature concept, customer request, business problem, or rough product opportunity.

When should I use Write Prd?

Write Prd fits situations like: the user asks to write; product requirements document; feature requirements; PRD from an idea.

How do I install Write Prd in Claude Code?

Run `npx skills add digoal/blog --skill write-prd -a claude-code`. Or copy the skill folder (skills/write-prd in digoal/blog) into .claude/skills/write-prd in your project. Claude Code loads it when a task matches its description.

How do I install Write Prd in Codex?

Run `npx skills add digoal/blog --skill write-prd -a codex`. Or copy the skill folder (skills/write-prd in digoal/blog) into .agents/skills/write-prd in your project. Codex loads it when a task matches its description.

Can I use Write Prd in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add digoal/blog --skill write-prd -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/write-prd, .gemini/skills/write-prd, .github/skills/write-prd and .opencode/skills/write-prd in your project.

What does Write Prd need to run?

SKILL.md names no scripts, command-line tools or credentials: Write Prd is instructions for the agent only.

Does Write Prd access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Write Prd safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Write Prd use?

Write Prd is published under the GPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Write Prd use?

About 1.4k tokens (SKILL.md is roughly 5.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.2k tokens, read only when the agent opens those files.

What are the alternatives to Write Prd?

Skills that share tags, products or a category with Write Prd: CCPM Project Management (automazeio/ccpm, 8.4k stars), Ralph Tui Create Beads (subsy/ralph-tui, 2.5k stars), Trellis Brainstorm (anjiemo/SunnyBeach, 178 stars) and Adversarial Spec (zscole/adversarial-spec, 556 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Write Prd?

digoal (a GitHub user) maintains it in digoal/blog, which has 8,587 GitHub stars. The repository holds 98 skills in this directory. The repository was last updated on September 28, 2026.

Source: digoal/blog on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.