prd

prd is a skill for Claude Code, Codex from smallnest/autoresearch. It costs 86 tokens per session (3,585 once invoked), scanned A, original, MIT.

A planning skill that turns a feature idea into a Product Requirements Document, or PRD, and then breaks the approved plan into implementation issues. It asks essential clarifying questions and does not implement the feature itself.

In plain words
What is it for?
Planning features, defining scope and success criteria, saving a PRD, and creating independent issues in a selected task system.
Why use it?
It helps turn an ambiguous feature request into agreed requirements and smaller pieces of work before development begins.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/smallnest/autoresearch/prd
Any agent
npx skills add smallnest/autoresearch --skill prd
Clone the repo
git clone --depth 1 https://github.com/smallnest/autoresearch

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prd

README.md
[![agentmods](https://agentmods.dev/badge/skills/smallnest/autoresearch/prd.svg)](https://agentmods.dev/skills/smallnest/autoresearch/prd)
Your own site
<a href="https://agentmods.dev/skills/smallnest/autoresearch/prd"><img src="https://agentmods.dev/badge/skills/smallnest/autoresearch/prd.svg" alt="Measured on agentmods" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,585 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00086 $0.03585
Opus 5 $0.00043 $0.01792
Sonnet 5 $0.00017 $0.00717
Haiku 4.5 $0.00009 $0.00359

Measured 4d ago against content hash 7429ed12027d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

prd scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/prd/SKILL.md · 425 lines

How it starts

The opening of the file, as written. The whole thing — 425 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PRD Generator + Issue Decomposer

Create detailed Product Requirements Documents that are clear, actionable, and suitable for implementation. After PRD is confirmed, decompose it into small, independent Issues and create them in the user's chosen platform.


The Job

  1. Receive a feature description from the user
  2. Ask 3-5 essential clarifying questions (with lettered options)
  3. Generate a structured PRD based on answers
  4. Present PRD to user for review — ask "Please review the PRD. Let me know if any adjustments are needed, or reply OK to confirm."
  5. Apply any adjustments, then save to tasks/prd-[feature-name].md
  6. Decompose PRD into Issues — break each User Story into one or more independent, implementable Issues
  7. Ask user to choose Issue creation mode — GitHub / Local / Baidu iCafe
  8. Create Issues in the chosen platform

Important: Do NOT start implementing. Just create the PRD and Issues.


Step 1: Clarifying Questions

Ask only critical questions where the initial prompt is ambiguous. Focus on:

  • Problem/Goal: What problem does this solve?
  • Core Functionality: What are the key actions?
  • Scope/Boundaries: What should it NOT do?
  • Success Criteria: How do we know it's done?

Format Questions Like This:

1. What is the primary goal of this feature?
   A. Improve user onboarding experience
   B. Increase user retention
   C. Reduce support burden
   D. Other: [please specify]

2. Who is the target user?
   A. New users only
   B. Existing users only
   C. All users
   D. Admin users only

3. What is the scope?
   A. Minimal viable version
   B. Full-featured implementation
   C. Just the backend/API
   D. Just the UI

This lets users respond with "1A, 2C, 3B" for quick iteration. Remember to indent the options.


Edge Cases & Fallback

Scenario Handling
User skips clarifying questions (e.g., replies "whatever", "just write it") Fill with reasonable defaults, mark with [Assumption] in PRD, prompt user to confirm during review
User input is too vague (e.g., "add a feature") Ask once for specifics; if still vague, infer from project context and mark assumptions
tasks/ directory does not exist Auto-create tasks/ directory
feature-name is hard to extract from input Ask the user directly: "Suggested PRD filename is prd-XXX.md, please confirm or modify"
User requests PRD changes after review Apply changes and re-save without re-running the clarification flow
PRD content exceeds 500 lines Suggest the user consider splitting into multiple sub-feature PRDs
User declines Issue creation Just save the PRD, skip Step 3
gh CLI not authenticated for GitHub mode Show error, suggest gh auth login, offer to switch to Local mode
icafe-cli / icode-cli not installed for baidu mode Show error, suggest installation, offer to switch to Local mode
Issue folder does not exist for Local mode Auto-create the folder

Read the full file on GitHub · 425 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 425 lines · 86 tokens per session scan A 7429ed12027d

Subscribe to this mod's changes

prd is a skill published in the GitHub repository smallnest/autoresearch (570 stars, last pushed 1mo ago), licensed MIT. It adds 86 tokens to every session and 3,585 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.