write-data-prd

write-data-prd is a command for coding agents from hollandkevint/data-product-operator. It costs 11 tokens per session (1,104 once invoked), scanned A, original, MIT.

A command that creates a requirements document for a data product, such as a dataset, data service, or data-driven API. It covers data lineage, quality targets, user agreements, and ethical concerns that ordinary software plans may miss.

In plain words
What is it for?
Use it to gather product context and write a named Markdown PRD covering the problem, consumers, data sources, quality requirements, and related planning details.
Why use it?
It helps teams define what the data product must provide, who depends on it, and how its quality will be measured before development begins.

Command

Part of the data-product-operator plugin — 17 skills, 7 commands, 1 MCP server 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 commands/hollandkevint/data-product-operator/write-data-prd
Clone the repo
git clone --depth 1 https://github.com/hollandkevint/data-product-operator

Or install data-product-operator, the plugin that ships this one along with the rest of its 17 skills, 7 commands, 1 MCP server.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/hollandkevint/data-product-operator/write-data-prd.svg)](https://agentmods.dev/commands/hollandkevint/data-product-operator/write-data-prd)
Your own site
<a href="https://agentmods.dev/commands/hollandkevint/data-product-operator/write-data-prd"><img src="https://agentmods.dev/badge/commands/hollandkevint/data-product-operator/write-data-prd.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,104 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00011 $0.01104
Opus 5 $0.00005 $0.00552
Sonnet 5 $0.00002 $0.00221
Haiku 4.5 $0.00001 $0.00110

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

Security

Grade A, and why

write-data-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 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.

Strips warnings and disclaimerslowAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

If none of these apply, state "No ethical considerations identified" with a brief justification.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

commands/write-data-prd.md · 123 lines

How it starts

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

Write a Data Product PRD

Generate a requirements document for a data product. This is not a standard software PRD. Data products require sections for data lineage, quality SLAs, consumer contracts, and ethical considerations that typical PRDs skip.

Gather Context

If $ARGUMENTS provides a product name or description, use it. Otherwise, ask:

Question 1: What data product are you building? Describe the problem it solves.

Question 2: Who consumes the output? Options: analysts, clinicians, executives, data scientists, external API consumers, end users.

Question 3: What data sources are involved? List the databases, APIs, files, or systems this product depends on.

Question 4: What are the quality requirements? Consider: maximum acceptable latency, accuracy threshold, data freshness SLA, uptime requirement.

Write the PRD

Write the document to data-prd-<name>.md where <name> is a kebab-case version of the product name.

Use this structure:

1. Problem Statement

State the problem in one paragraph. Include:

  • Who has this problem (specific role, not "users")
  • What they currently do (the workaround)
  • Evidence the problem is real (customer quotes, usage data, support tickets)
  • What success looks like (measurable outcome)

NEVER write a problem statement without evidence. "We think users want X" is not a problem statement.

2. Data Sources and Lineage

For each data source:

  • Source system name and type (database, API, file, stream)
  • Refresh frequency (real-time, hourly, daily, batch)
  • Volume estimate (rows/day, GB)
  • Known quality issues
  • Access method and credentials needed

Include a lineage diagram showing source -> transformation -> output flow.

3. Consumer Contracts

For each consumer of this data product:

  • Who they are (role or system name)
  • What format they need (API, file, dashboard, embedded)
  • What SLA they expect (latency, freshness, uptime)
  • What schema/fields they require
  • How they access it (pull vs push, auth method)

Read the full file on GitHub · 123 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 · 123 lines · 11 tokens per session scan A 02de93e61f30

Subscribe to this mod's changes

write-data-prd is a command published in the GitHub repository hollandkevint/data-product-operator (3 stars, last pushed 4mo ago), licensed MIT. It adds 11 tokens to every session and 1,104 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.