prd-tech-spec

A set of rules for turning a product requirements document (PRD) into a technical specification: a document describing the system design and implementation details.

In plain words
What is it for?
It helps analyze requirements, identify architecture questions, ask for technical clarification, and save an implementation-focused specification for a feature.
Why use it?
It separates technical decisions from product requirements and keeps specifications consistent by using a shared template and review process.

Cursor rule for Cursor

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 rules/compozy/gograph/prd-tech-spec
Clone the repo
git clone --depth 1 https://github.com/compozy/gograph

Made for: Cursor.

Per session 25 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,618 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.00025 $0.01618
Opus 5 $0.00013 $0.00809
Sonnet 5 $0.00005 $0.00324
Haiku 4.5 $0.00003 $0.00162

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

Security

Grade A, and why

prd-tech-spec 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 2d 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.

.cursor/rules/prd-tech-spec.mdc · 134 lines

How it starts

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

Rule: Generating Technical Specification Documents

Template Reference

<template_reference> ALWAYS use the standardized Tech Spec template: tasks/docs/_techspec-template.md This template provides a comprehensive structure for technical specifications, ensuring consistency across all technical documentation in the project. </template_reference>

Prerequisites

Process

<process_workflow>

  1. Analyze PRD: Review the existing PRD to understand requirements and scope, noting any misplaced technical details that should be migrated to the Tech Spec.
  2. Pre-Analysis with Zen MCP: Use Zen MCP with Gemini 2.5 and O3 to analyze the PRD and identify technical complexity areas, potential architecture patterns, and system design considerations
  3. Ask Technical Questions: Gather technical clarifications focusing on system design, performance, and architecture decisions
  4. Generate Tech Spec: Create focused technical specification appropriate for MVP/alpha phase
  5. Post-Review with Zen MCP: Use Zen MCP with Gemini 2.5 and O3 to review the generated tech spec for completeness, architectural soundness, and adherence to best practices
  6. Save Tech Spec: Save as _techspec.md in tasks/prd-[feature-slug]/ </process_workflow>

Read the full file on GitHub · 134 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. 2d ago First seen · 134 lines · 25 tokens per session scan A 23d052f30695

Subscribe to this mod's changes

prd-tech-spec is a cursor rule published in the GitHub repository compozy/gograph (9 stars, last pushed 1y ago), licensed MIT. It adds 25 tokens to every session and 1,618 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.