ai-agent-prd

ai-agent-prd is a skill for Claude Code, Codex from okwinds/miscellany. It costs 173 tokens per session (3,904 once invoked), scanned A, original, MIT.

A guide for writing product requirements documents for AI agents, software that can interpret goals, make decisions, use tools, and act.

In plain words
What is it for?
Use it when designing chatbots, autonomous agents, copilots, or other software built around language models. It covers both what the agent does and how it should decide and respond.
Why use it?
It helps teams describe an agent’s identity, abilities, memory, data retrieval, workflows, safety rules, and evaluation needs clearly enough to build and test.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash scripts/generate_agent_prd_skeleton.sh ./docs/agent-prd "Customer Support Agent".

Good fit Use it when designing chatbots, autonomous agents, copilots, or other software built around language models. It covers both what the agent does and how it should decide and respond.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/okwinds/miscellany
agentmods
npx agentmods add skills/okwinds/miscellany/ai-agent-prd

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 ai-agent-prd

README.md
[![agentmods](https://agentmods.dev/badge/skills/okwinds/miscellany/ai-agent-prd/github.svg)](https://agentmods.dev/skills/okwinds/miscellany/ai-agent-prd)
Your own site
<a href="https://agentmods.dev/skills/okwinds/miscellany/ai-agent-prd"><img src="https://agentmods.dev/badge/skills/okwinds/miscellany/ai-agent-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 ai-agent-prd

Your own site · 80×15
<a href="https://agentmods.dev/skills/okwinds/miscellany/ai-agent-prd"><img src="https://agentmods.dev/badge/skills/okwinds/miscellany/ai-agent-prd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 173 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,904 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.00173 $0.03904
Opus 5.5 $0.00069 $0.01562
Sonnet 5.5 $0.00035 $0.00781
Haiku 4.5 $0.00017 $0.00390

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

Security

Grade A, and why

ai-agent-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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/generate_agent_prd_skeleton.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

agent/skills/ai-agent-prd/SKILL.md · 478 lines

How it starts

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

AI Agent PRD Guide

Overview

Write PRDs for AI Agent products that define not just what the agent does, but how it thinks, decides, and acts.

Relationship with Other Skills

This skill extends prd-writing-guide for AI Agent products specifically. You should:

  • Apply prd-writing-guide's Seven Lenses to each agent capability
  • Follow prd-writing-guide's Writing Style Guide for requirement clarity
  • Use prd-writing-guide's Developer Test as your quality bar

Handoff: The Agent PRD this skill produces feeds into prd-to-engineering-spec for technical design. That skill includes an Agent-specific validation branch for converting agent capabilities into engineering specs.

Traditional PRD:  Input → Deterministic Logic → Output
Agent PRD:        Goal → Perceive → Think → Decide → Act → Learn
                          ↑                           │
                          └───────── Feedback ────────┘

You're not defining a function. You're defining a cognitive architecture.

Quality Test

Can your engineering team answer these without asking you?

  • What is the agent's purpose and identity?
  • What capabilities (skills/tools) does it have?
  • How does it decide what to do?
  • What can it NOT do? (boundaries)
  • When should humans intervene?
  • How do we know if it's working well?

Quick Start

  1. Generate a document skeleton:

    bash scripts/generate_agent_prd_skeleton.sh ./docs/agent-prd "Customer Support Agent"
    
  2. Fill in using templates from references

  3. Validate completeness with checklist

Note: The skeleton generator writes a set of .md files into your output directory. Use a new/empty folder to avoid accidental overwrites.


Workflow

Phase 1: Agent Identity ──────► Who is the agent? What's its purpose?
         ↓
Phase 2: Capability Architecture ──► Skills, Tools, Memory, RAG, Workflows
         ↓
Phase 3: Behavior & System Prompt ─► How does it think? What's its DNA?
         ↓
Phase 4: Conversation Design ────► Golden conversations, example behaviors
         ↓
Phase 5: Safety & Guardrails ────► What can't it do? Human oversight?
         ↓
Phase 6: Evaluation Framework ───► How do we measure success?
         ↓
Phase 7: Operational Model ──────► Cost, scaling, iteration

Read the full file on GitHub · 478 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 · 478 lines · 173 tokens per session scan A 1e09ee0d6660

Subscribe to this mod's changes

ai-agent-prd is a skill published in the GitHub repository okwinds/miscellany (50 stars, last pushed 5mo ago), licensed MIT. It adds 173 tokens to every session and 3,904 once invoked, about $0.0007 per session on Opus 5.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.

Related

ai-agent-prd compared with skills from other repositories

ai-agent-prd next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-agent-prdokwinds/miscellanySkill505mo agoMITA173Claude Code, Codex
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code