next-role: Skill for Claude Code

.agents/skills/write-prd/SKILL.md

write-prd is a skill for Claude Code, Codex from tam159/next-role. It costs 84 tokens per session (2,295 once invoked), scanned A, original, MIT.

A product requirements document (PRD) for the feature built in the current coding session, saved as a Markdown file in docs/prd/. It records the feature's purpose and important decisions for future developers or AI agents.

In plain words
What is it for?
Use it after building a feature when you need a concise, durable specification. It helps future readers understand what was built and why.
Why use it?
It preserves the reasons and decisions that may be hard to recover from code changes alone. It also keeps the repository's linked documentation structure up to date.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; installed under .agents/ (shared by several agents).

This is tam159/next-role's own configuration. It tells Claude Code and Codex how to work on next-role itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything next-role configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tam159/next-role. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tam159/next-role/main/.agents/skills/write-prd/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/tam159/next-role

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 write-prd

README.md
[![agentmods](https://agentmods.dev/badge/skills/tam159/next-role/write-prd/github.svg)](https://agentmods.dev/skills/tam159/next-role/write-prd)
Your own site
<a href="https://agentmods.dev/skills/tam159/next-role/write-prd"><img src="https://agentmods.dev/badge/skills/tam159/next-role/write-prd/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for write-prd

Your own site · 80×15
<a href="https://agentmods.dev/skills/tam159/next-role/write-prd"><img src="https://agentmods.dev/badge/skills/tam159/next-role/write-prd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,295 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00084 $0.02295
Opus 5.5 $0.00034 $0.00918
Sonnet 5.5 $0.00017 $0.00459
Haiku 4.5 $0.00008 $0.00230

Measured 2mo ago against content hash 2a3716ad30d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

write-prd scanned grade A with 1 finding 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 2mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Verification steps you ran (curl, browser checks, tests) — these become *How to verify end-to-end*.
.agents/skills/write-prd/SKILL.md · 115 lines

How it starts

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

Write a PRD that captures the feature implemented in the current session, in the house style of docs/prd/. That folder is an OKF (Open Knowledge Format) knowledge bundle — see docs/prd/README.md — so every PRD is a markdown concept document with YAML frontmatter, and the relative links between PRDs draw the edges of the bundle's knowledge graph.

The audience is a future developer or AI agent reading the file cold — months later, after the code has drifted. The point is not to restate what the diff shows; it is to capture the why and the non-obvious decisions that the code alone can't explain. The frontmatter description doubles as the PRD's one line in docs/prd/index.md — it is what an AI agent reads to decide whether to open the file at all, so make it carry the feature's essence.

Workflow

  1. Anchor on the existing style. Read at least one existing PRD in docs/prd/ (e.g. 10_print_file_as_pdf.md or 03_jd_url_extraction.md) before writing. Match its tone, density, and section order. Do not invent new sections.

  2. Mine the session for content. The conversation history is your source material — pull from:

    • The user's original requirement (becomes the Why).
    • Approach choices made during planning, especially ones where you considered alternatives and picked one. These are the Decisions worth remembering.
    • The actual files touched (use git diff / git status if needed to be precise) — these populate Files of interest.
    • User corrections and "no, do it this way" moments — these are usually the most valuable decisions to record.
    • Verification steps you ran (curl, browser checks, tests) — these become How to verify end-to-end.
  3. Propose a filename and version, then confirm. Filename is NN_snake_case.md — NN is the zero-padded next number in sequence (ls docs/prd/ for the current highest; e.g. 28_feature_name.md). Version is v1 for a new feature, v2 etc. if extending one — check whether a related PRD already exists. Briefly tell the user the proposed path and version in one line, then write it. Don't block on a long confirmation cycle; the user can rename if needed.

  4. Write the PRD using the template below. Save to docs/prd/NN_<name>.md.

  5. Update the bundle indexes. Add the PRD's line to docs/prd/index.md under # PRD — title-alphabetical order, format * [Title](NN_name.md) - <description from frontmatter> — then regenerate docs/prd/viz.html (commands live in docs/prd/README.md → "Adding or updating a PRD"; expect the reported concept count to go up by one).

  6. Show the user the path and a one-line summary of what was written. Don't dump the PRD back into chat — they can open the file.

Read the full file on GitHub · 115 lines

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. 2mo ago First seen · 115 lines · 84 tokens per session scan A 2a3716ad30d9

Subscribe to this mod's changes

write-prd is a skill published in the GitHub repository tam159/next-role (65 stars, last pushed 2d ago), licensed MIT. It adds 84 tokens to every session and 2,295 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

write-prd compared with skills from other repositories

write-prd next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
write-prdtam159/next-roleSkill652d agoMITA84Claude Code, Codex
ai-dev-jobs-mcp-v2diegosouzapw/awesome-omni-skillsSkill1704mo agoMITA78Claude Code, Codex
ai-dev-jobs-mcpdiegosouzapw/awesome-omni-skillsSkill1704mo agoMITA76Claude Code, Codex
openspec-verify-changeFission-AI/OpenSpecSkill74kyesterdayMITA51Claude Code
schema-explorationlangchain-ai/deepagentsSkill31kyesterdayMITA57Claude Code, Codex
cli-resiliencediegosouzapw/OmniRouteSkill83k5d agoMITA35Claude Code, Codex
merge-batchdiegosouzapw/OmniRouteSkill83k5d agoMITA46Claude Code