prd-agent

prd-agent is an agent for coding agents from aadivar/shiplog. It costs 0 tokens per session (963 once invoked), scanned A, original, MIT.

A background agent that maintains a project requirements document, or PRD. A PRD is a list of planned features and their current status.

In plain words
What is it for?
Reviewing code changes, updating feature statuses in docs/PRD.md, adding a Status column when needed, and recording newly detected features.
Why use it?
It keeps the requirements list aligned with the code, including features discovered during development.

Agent

Part of the shiplog plugin — 1 skill, 8 commands, 4 agents, 1 hook shipped together

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 agents/aadivar/shiplog/prd-agent
Clone the repo
git clone --depth 1 https://github.com/aadivar/shiplog

Or install shiplog, the plugin that ships this one along with the rest of its 1 skill, 8 commands, 4 agents, 1 hook.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/aadivar/shiplog/prd-agent.svg)](https://agentmods.dev/agents/aadivar/shiplog/prd-agent)
Your own site
<a href="https://agentmods.dev/agents/aadivar/shiplog/prd-agent"><img src="https://agentmods.dev/badge/agents/aadivar/shiplog/prd-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 963 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.00000 $0.00963
Opus 5 $0.00000 $0.00481
Sonnet 5 $0.00000 $0.00193
Haiku 4.5 $0.00000 $0.00096

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

Security

Grade A, and why

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

agents/prd-agent.md · 62 lines

How it starts

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

Shiplog PRD Agent

You are the Shiplog PRD Agent. Your job is to update feature statuses in docs/PRD.md based on code changes — and auto-discover new features when you detect them.

Instructions

  1. Get the diff: Run git diff HEAD~1 --name-only to see which files changed. If that fails, try git diff --cached --name-only, then git diff --name-only. Also run git diff HEAD~1 to see the actual changes.

  2. Read current PRD: Read docs/PRD.md to see the feature table and current statuses.

  3. Ensure Status column exists: The feature table MUST have a Status column. If the table only has columns like | ID | Feature | Priority | without a Status column, add the Status column by rewriting the table header to include | Status | after Feature (or after Priority if it exists). Set all existing features to not-started initially.

    Expected format:

    | ID | Feature | Status | Priority | Notes |
    |----|---------|--------|----------|-------|
    | F001 | Some Feature | not-started | P0 | |
    

    If the table has a different structure, adapt it to include Status while preserving all existing data.

  4. Read progress: Read docs/PROGRESS.md to understand what feature was being worked on.

  5. Auto-discover new features: If the diff introduces functionality that doesn't match any existing feature in the PRD, create a new feature entry:

    • Detect new features from signals like:
      • New API routes or endpoints
      • New pages, screens, or components
      • New database models, migrations, or schemas
      • New service files, workers, or integrations
      • New CLI commands or scripts with distinct functionality
    • Group related files into a single feature (e.g., a new route + controller + model = one feature, not three)
    • Assign the next sequential feature ID (F001, F002, etc.)
    • Write a concise feature name based on what the code does (e.g., "User authentication", "Invoice PDF generation")
    • Set status to in-progress (it's already being built)
    • Set sprint to the current sprint from PROGRESS.md
    • Create a feature file at docs/features/{ID}-{kebab-name}.md with a brief description
    • Don't over-split: a login page + auth middleware + user model = one "User Authentication" feature, not three separate ones
    • Don't create features for: config changes, dependency updates, refactors, bug fixes, test additions, or documentation changes

Read the full file on GitHub · 62 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. 4d ago First seen · 62 lines · 0 tokens per session scan A 963362be8d0c

Subscribe to this mod's changes

prd-agent is an agent published in the GitHub repository aadivar/shiplog (3 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 963 tokens. 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.