to-prd

to-prd is a skill for Claude Code from yugasun/aiops. It costs 29 tokens per session (484 once invoked), scanned A, original, Apache-2.0.

A tool that turns the current chat and codebase into a product requirements document (PRD), then publishes it to an issue tracker. A PRD describes the problem, proposed solution, user needs, design decisions, testing, and limits.

In plain words
What is it for?
Use it to prepare detailed feature requirements, user stories, technical and testing decisions, and follow-up notes for coding work.
Why use it?
It removes the need to repeat project context in an interview and gives implementation work a shared written plan. It can also describe only the changes when updating an existing system.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the aiops plugin — 23 skills shipped together

Good fit Use it to prepare detailed feature requirements, user stories, technical and testing decisions, and follow-up notes for coding work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yugasun/aiops/to-prd
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.

Any agent
npx skills add yugasun/aiops --skill to-prd
Clone the repo
git clone --depth 1 https://github.com/yugasun/aiops

Made for: Claude Code.

Or install aiops, the plugin that ships this one along with the rest of its 23 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/yugasun/aiops/to-prd.svg)](https://agentmods.dev/skills/yugasun/aiops/to-prd)
Your own site
<a href="https://agentmods.dev/skills/yugasun/aiops/to-prd"><img src="https://agentmods.dev/badge/skills/yugasun/aiops/to-prd.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 484 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00029 $0.00484
Opus 5 $0.00015 $0.00242
Sonnet 5 $0.00006 $0.00097
Haiku 4.5 $0.00003 $0.00048

Measured 8d ago against content hash 54af7b64a84b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

to-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 8d 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/to-prd/SKILL.md · 69 lines

What it actually says

Synthesize context into a PRD. Do not interview — use the conversation and codebase.

Run /aiops-setup if docs/agents/issue-tracker.md or triage labels are missing.

Process

  1. Explore repo if needed. Use CONTEXT.md vocabulary and local ADRs.
  2. Sketch test seams — prefer existing, highest seam, fewest seams. Confirm with user.
  3. Write PRD (template below) and publish to issue tracker with ready-for-agent label.

PRD template

Problem Statement — user-facing problem.

Solution — user-facing solution.

User Stories — numbered As a <actor>, I want <feature>, so that <benefit> (extensive list).

Implementation Decisions — modules, interfaces, architecture, schema, API (no file paths; prototype snippets OK if they encode a decision).

Testing Decisions — what good tests look like, modules to test, prior art.

Out of Scope

Further Notes

Delta mode (brownfield changes)

When the PRD describes changes to an existing system (not a greenfield feature), use delta format instead of the full template above. Focus only on what changes:

# PRD: <slug> (delta)

## Context
One paragraph on what already exists and why it's changing.

## Changes

### ADDED
- New behavior or interface being introduced
- New modules, endpoints, or data structures

### MODIFIED
- [existing behavior] → [new behavior]
- [existing interface] → [updated interface]

### REMOVED
- Deprecated behavior being removed
- Modules or interfaces being deleted

## Impact
- Which existing modules are affected
- Migration path for breaking changes

## Testing
- What existing tests need updating
- New tests for added/modified behavior

## Out of Scope

When to use delta: if tech-spec.md references modifications to existing modules (not purely new code), prefer delta format. The conductor or planner should suggest delta when the architecture scan or design reveals significant existing code involvement.

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. 8d ago First seen · 69 lines · 29 tokens per session scan A 54af7b64a84b

Subscribe to this mod's changes

to-prd is a skill published in the GitHub repository yugasun/aiops (4 stars, last pushed 19d ago), licensed Apache-2.0. It adds 29 tokens to every session and 484 once invoked, about $0.0001 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-31.