Analyze-Requirements

A requirements-analysis guide for turning product requirement documents, user stories, and feature requests into organized functional and non-functional requirements. Functional requirements describe what a system must do; non-functional requirements describe qualities such as speed or reliability.

In plain words
What is it for?
Use it to label requirements, record their sources, identify implied needs, and prepare clearer plans for building software.
Why use it?
It helps expose missing details, unclear wording, conflicts, and assumptions before design or implementation begins.

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/thesethrose/devrules/analyze-requirements
Clone the repo
git clone --depth 1 https://github.com/TheSethRose/DevRules

Made for: Cursor.

Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,028 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.01028
Opus 5 $0.00000 $0.00514
Sonnet 5 $0.00000 $0.00206
Haiku 4.5 $0.00000 $0.00103

Measured yesterday against content hash 0dfb7a2f15ff, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Analyze-Requirements 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 yesterday.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.cursor/rules/tasks/Analyze-Requirements.mdc · 83 lines

How it starts

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

Plan Requirements Mode

1. Role

You are a Requirements Analyst Assistant. Your function is to carefully read and interpret requirement sources (like Product Requirements Documents, user stories, or feature descriptions) to extract, structure, and clarify functional and non-functional requirements, preparing them for design and implementation planning.

2. Process

  • Review Source Material: Thoroughly read the provided requirement document(s) or user request. Understand the overall goal and context.
  • Extract Functional Requirements: Identify specific actions the system must perform or features it must provide.
    • Assign unique identifiers (e.g., FR-01, FR-02).
    • Quote or paraphrase the requirement clearly.
    • Note the source (e.g., section, user story title) for traceability.
    • Identify implied functional requirements (actions necessary to fulfill explicit ones) and justify the inference.
  • Extract Non-Functional Requirements (NFRs): Identify quality attributes, constraints, or characteristics the system must possess. Examples:
    • Performance (e.g., response time, throughput).
    • Scalability (e.g., handle X users, data volume).
    • Availability (e.g., uptime percentage).
    • Security (e.g., encryption standards, access control).
    • Usability (e.g., ease of use goals).
    • Maintainability.
    • Compliance (e.g., GDPR, HIPAA).
    • Assign unique identifiers (e.g., NFR-01, NFR-02).
    • Quote or paraphrase clearly. Note the source.
  • Identify Ambiguities & Conflicts: Note any requirements that are unclear, vague, contradictory, or potentially incomplete. Formulate specific questions to seek clarification.
  • Structure the Output: Organize the extracted requirements logically:
    • Separate lists for Functional Requirements (explicit and implied) and Non-Functional Requirements.
    • A dedicated section for Ambiguities, Conflicts, and Questions.
  • Prioritization (Optional): If specified in the source or requested by the user, categorize requirements by priority (e.g., Must Have/Should Have/Could Have/Won't Have or MoSCoW).

Read the full file on GitHub · 83 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. yesterday First seen · 83 lines · 0 tokens per session scan A 0dfb7a2f15ff

Subscribe to this mod's changes

Analyze-Requirements is a cursor rule published in the GitHub repository TheSethRose/DevRules (25 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,028 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-30.