feature-specification-guidelines

feature-specification-guidelines is a cursor rule for Cursor from mywand/cusrsor-do-it. It costs 0 tokens per session (8,483 once invoked), scanned A, original, Apache-2.0.

A set of rules for writing feature specification documents: detailed records of what a software feature should do, how it connects to other parts, and how it will be accepted. It is aimed at medium-to-large projects with multiple teams or complex dependencies.

In plain words
What is it for?
Use it to analyze requirements, design features, define interfaces, write acceptance standards, and organize feature documents for large or long-running projects.
Why use it?
It reduces misunderstandings between product, design, engineering, and testing teams by recording requirements and interfaces in one consistent format. It also provides evidence of decisions and acceptance criteria when documentation or compliance matters.

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/mywand/cusrsor-do-it/feature-specification-guidelines
Clone the repo
git clone --depth 1 https://github.com/mywand/cusrsor-do-it

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 feature-specification-guidelines

README.md
[![agentmods](https://agentmods.dev/badge/rules/mywand/cusrsor-do-it/feature-specification-guidelines.svg)](https://agentmods.dev/rules/mywand/cusrsor-do-it/feature-specification-guidelines)
Your own site
<a href="https://agentmods.dev/rules/mywand/cusrsor-do-it/feature-specification-guidelines"><img src="https://agentmods.dev/badge/rules/mywand/cusrsor-do-it/feature-specification-guidelines.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 8,483 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.08483
Opus 5 $0.00000 $0.04241
Sonnet 5 $0.00000 $0.01697
Haiku 4.5 $0.00000 $0.00848

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

Security

Grade A, and why

feature-specification-guidelines 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 3d 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/docs/feature-specification-guidelines.mdc · 934 lines

How it starts

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

最近更新: 2025-10-11

功能规格说明文档规约

适用于中大型项目的功能需求规格说明,确保需求清晰、设计完整、验收标准明确。

1. 适用场景

1.1 项目规模

维度 适用范围 说明
团队规模 > 10人 多团队协作
项目周期 > 6个月 中长期项目
功能复杂度 中高 跨模块、多依赖
需求变更频率 中低 需要严格的需求管理

1.2 何时使用

✅ 适合使用

  • 大型功能开发(影响多个模块)
  • 跨团队协作(需要明确接口定义)
  • 外部对接(需要详细的接口文档)
  • 高质量要求(需要完整的验收标准)
  • 合规性要求(需要完整的文档记录)

❌ 不适合使用

  • 简单功能调整(使用用户故事即可)
  • 紧急Bug修复(直接修复,事后补文档)
  • 原型验证(使用轻量级需求描述)
  • 小团队快速迭代(过于重量级)

1.3 与其他文档的关系

graph TB
    A[产品需求文档<br/>PRD] --> B[功能规格说明<br/>本文档]
    B --> C[技术设计文档]
    B --> D[接口设计文档]
    B --> E[测试用例]
    C --> F[代码实现]
    D --> F
    E --> G[验收测试]
    F --> G
    
    style B fill:#0ea5e9,stroke:#0369a1,color:#fff

2. 文档管理

2.1 文件命名

feature-<功能模块>-<功能名称>-spec.md

示例:
feature-user-registration-spec.md         # 用户注册功能
feature-payment-refund-spec.md            # 支付退款功能
feature-order-batch-export-spec.md        # 订单批量导出

2.2 文件存放

项目根目录/
├── docs/
│   ├── features/                  # 功能规格目录
│   │   ├── README.md             # 功能索引
│   │   ├── user/                 # 用户相关功能
│   │   │   ├── feature-user-registration-spec.md
│   │   │   └── feature-user-profile-spec.md
│   │   ├── payment/              # 支付相关功能
│   │   │   ├── feature-payment-integration-spec.md
│   │   │   └── feature-payment-refund-spec.md
│   │   └── order/                # 订单相关功能
│   │       └── feature-order-export-spec.md
│   └── requirements/              # 需求文档(PRD等)

2.3 状态管理

状态 说明 操作
草稿(Draft) 初稿,待补充 需求收集中
评审中(In Review) 待评审 相关方评审
已批准(Approved) 评审通过 开始设计开发
开发中(In Development) 开发实施中 跟踪实施进度
已实现(Implemented) 开发完成 验收测试
已验收(Accepted) 验收通过 上线发布
已废弃(Deprecated) 功能废弃 说明废弃原因

3. 文档模板

3.1 文档头部

# 功能规格说明:<功能名称>

**文档信息**:
| 项目 | 内容 |
|------|------|
| **文档版本** | v1.0 |
| **文档状态** | 草稿 / 评审中 / 已批准 / 开发中 / 已实现 / 已验收 |
| **功能编号** | FEAT-001 |
| **创建日期** | YYYY-MM-DD |
| **最后更新** | YYYY-MM-DD |
| **作者** | 姓名 / 团队 |
| **评审人** | 姓名1, 姓名2, 姓名3 |
| **相关需求** | [PRD-001](link) |

## 变更记录
| 版本 | 日期 | 变更内容 | 变更人 | 评审状态 |
|------|------|----------|--------|----------|
| v1.0 | YYYY-MM-DD | 初始版本 | 张三 | 已批准 |
| v1.1 | YYYY-MM-DD | 增加异常处理逻辑 | 李四 | 评审中 |

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

Subscribe to this mod's changes

feature-specification-guidelines is a cursor rule published in the GitHub repository mywand/cusrsor-do-it (2 stars, last pushed 7mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 8,483 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.