explicit-requirement-extraction

explicit-requirement-extraction is a cursor rule for Cursor from SeanLF/weather-mcp. It costs 591 tokens per session, scanned A, original, MIT.

A rule for turning a software request into a written requirements analysis before coding begins.

In plain words
What is it for?
Listing explicit and inferred requirements, identifying ambiguities, and describing the proposed solution before building a feature.
Why use it?
It exposes missing details, assumptions, constraints, and questions that could otherwise lead to the wrong implementation.

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/seanlf/weather-mcp/explicit-requirement-extraction
Clone the repo
git clone --depth 1 https://github.com/SeanLF/weather-mcp

Made for: Cursor.

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 explicit-requirement-extraction

README.md
[![agentmods](https://agentmods.dev/badge/rules/seanlf/weather-mcp/explicit-requirement-extraction.svg)](https://agentmods.dev/rules/seanlf/weather-mcp/explicit-requirement-extraction)
Your own site
<a href="https://agentmods.dev/rules/seanlf/weather-mcp/explicit-requirement-extraction"><img src="https://agentmods.dev/badge/rules/seanlf/weather-mcp/explicit-requirement-extraction.svg" alt="Measured on agentmods" height="20"></a>
Per session 591 This file is loaded in full into every session.
When invoked 591 The same file — it is already loaded in full.
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.1 $0.00591 $0.00591
Opus 5 $0.00296 $0.00296
Sonnet 5 $0.00118 $0.00118
Haiku 4.5 $0.00059 $0.00059

Measured 5d ago against content hash 8535d9671ce0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

explicit-requirement-extraction 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 5d 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/explicit-requirement-extraction.mdc · 94 lines

What it actually says

filters:

  • type: event pattern: "requirements_analysis"
  • type: content pattern: "(?i)(implement|create|build|develop|add)"

actions:

  • type: transform pattern: "^.*$" replacement: |

    Requirements Analysis

    Explicit Requirements

    {explicit_requirements_list}

    Implicit Requirements

    {inferred_requirements_list}

    Clarification Needed

    {questions_about_ambiguous_requirements}

    Assumptions

    {list_of_assumptions_being_made}

    Constraints

    {technical_business_constraints}

    Proposed Solution

    {original_content}

  • type: suggest message: | Before implementation, always:

    1. Explicitly list stated requirements
    2. Identify unstated but necessary requirements
    3. List assumptions you're making
    4. Identify constraints that affect the solution
    5. Ask clarifying questions for ambiguities

examples:

  • input: | Add a feature to export reports to PDF. output: |

    Requirements Analysis

    Explicit Requirements

    1. Export reports to PDF format

    Implicit Requirements

    1. Maintain report formatting and styling in PDF
    2. Support all existing report types
    3. Handle various data volumes (small to large reports)
    4. Provide progress indication for large exports
    5. Error handling for failed exports

    Clarification Needed

    1. Should PDF exports include interactive elements?
    2. Are there specific compliance requirements (accessibility, etc.)?
    3. Should exports be synchronous or asynchronous for large reports?
    4. Are there specific naming conventions for exported files?
    5. Should we include company branding/watermarks?

    Assumptions

    1. Users have permissions to view all data they can export
    2. PDF generation will be server-side
    3. Existing authentication will be used for export authorization
    4. Standard paper sizes (A4, Letter) will be supported

    Constraints

    1. Must work within existing UI design patterns
    2. Server memory limitations for large report generation
    3. Must maintain application responsiveness during export

    Proposed Solution

    Based on these requirements and assumptions, I recommend implementing a PDF export feature using a server-side PDF generation library...

metadata: priority: critical version: 1.0

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. 5d ago First seen · 94 lines · 591 tokens per session scan A 8535d9671ce0

Subscribe to this mod's changes

explicit-requirement-extraction is a cursor rule published in the GitHub repository SeanLF/weather-mcp (2 stars, last pushed 1y ago), licensed MIT. It adds 591 tokens to every session, about $0.0030 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.