generic-dev-sop

generic-dev-sop is a cursor rule for Cursor from vien-meng/vien-skills. It costs 977 tokens per session, scanned A, original, Apache-2.0.

A project-development process that treats each feature as a complete, trackable cycle from requirements and design to implementation, testing, and proof of completion. It also defines release checks for the whole project.

In plain words
What is it for?
Use it for new projects and ongoing feature work, especially when you need task planning, UI states, data models, tests, review, and release-readiness checks.
Why use it?
It prevents teams from declaring work finished when only part of a feature works, such as a page without a real data path. It makes progress, quality checks, and delivery requirements explicit.

Cursor rule for Cursor

Written for Cursor: installed under .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/vien-meng/vien-skills/generic-dev-sop
Clone the repo
git clone --depth 1 https://github.com/vien-meng/vien-skills

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 generic-dev-sop

README.md
[![agentmods](https://agentmods.dev/badge/rules/vien-meng/vien-skills/generic-dev-sop.svg)](https://agentmods.dev/rules/vien-meng/vien-skills/generic-dev-sop)
Your own site
<a href="https://agentmods.dev/rules/vien-meng/vien-skills/generic-dev-sop"><img src="https://agentmods.dev/badge/rules/vien-meng/vien-skills/generic-dev-sop.svg" alt="Measured on agentmods" height="20"></a>
Per session 977 This file is loaded in full into every session.
When invoked 977 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.00977 $0.00977
Opus 5 $0.00489 $0.00489
Sonnet 5 $0.00195 $0.00195
Haiku 4.5 $0.00098 $0.00098

Measured 6d ago against content hash 24023a2ddd03, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

generic-dev-sop 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 6d 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/generic-dev-sop.mdc · 39 lines

What it actually says

通用项目开发 SOP(generic-dev-sop)

把项目从零到交付作为可追踪闭环:搭建底座 → 规划任务 → 单功能闭环 × N → 完整交付。每项功能把「计划、契约、UI、实现、测试、证据」同步交付,禁止只做底层逻辑、接口或 UI Mock 后宣称完成。纯文案/无行为变化的单行修改可跳过步骤;无 UI 的后端功能可跳过设计稿,但必须说明原因。

适用:从零搭建新项目,或对已有项目继续迭代(复用架构与质量底座,每个新需求仍按「需求分析 → UI 设计稿 → 任务计划 → 开发 → 验收」闭环)。纯文案/单行修改、一次性脚本或原型不走完整流程;小型项目可跳过灰度/合规等交付门禁。

状态仅使用:未开始分析中设计确认开发中审查测试中已完成阻塞

生命周期

  1. 项目搭建:确认工程边界 → 确认技术栈 → 输出架构决策 → 输出任务计划 → 搭质量底座 → 建开发记录机制。
  2. 详细任务计划:执行原则、交付定义(真实闭环,不是「页面都能点」)、范围/估算/关键路径、阶段总览、详细任务(每条含验收条件)、功能矩阵(P0/P1/P2)、质量门禁、团队边界、第一批执行顺序。
  3. 单功能开发闭环(每个功能循环):确认计划进度 → 需求分析 → 最小方案 → 写开发记录 → 设计稿(有 UI 先出默认/加载/空/错误/禁用/无权限/离线状态)→ 数据结构(先定模型/校验/迁移)→ 开发(复用现有模式)→ 审查测试(按审查清单 + 留最小可运行检查)→ 回写进度(证据一致才标记完成)。
  4. 完整交付:发布候选门禁 → 灰度与回滚 → 文档同步 → 项目交付检查(P0 功能矩阵全绿,无「页面有数据假」「接口有客户端不可达」)。

技术栈确认

启动前先与用户确认技术栈:用户指定则以用户为准;未指定或直接回车 = 同意使用默认。默认组合(已验证):Web/桌面 = Electron + React + Vite + MobX + Ant Design + i18next(单构建同时出 Web 与桌面);跨端移动 = Flutter + Riverpod + GoRouter + Dio + just_audio;服务端 = NestJS + PostgreSQL/PostGIS + TypeORM + Redis + Swagger + JWT/RBAC + Winston。

核心规则

  • 单一业务真相:主库是唯一事实来源,缓存/实时事件可丢失且可恢复。
  • 有 UI 先出覆盖各状态的静态稿再写代码;无 UI 要说明依据。
  • 非平凡逻辑留一个最小可运行检查;日常跑变更测试 + 直接调用链 + typecheck + 受影响 lint,全量门禁在阶段出口、重构、发布前执行。
  • 跨模块用路径别名,禁止 ../../../;所有声明模块正上方写多行中文注释。
  • 密钥只存环境变量/安全存储,日志脱敏;写接口做归属校验;外部输入先校验再进业务代码。
  • 平台差异用运行时适配器判断,禁止构建分叉。
  • 交付 = 计划、契约、设计稿、实现、测试、文档一致。

模板与清单

完整模板在本仓库 skills/generic-dev-sop/references/:architecture-template.md、task-plan-template.md、development-record-template.md、coding-standards.md、review-checklist.md、default-stack.md。单功能记录复制 development-record-template.md 到 references/features/<功能短名>.md 并全程回写。

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. 6d ago First seen · 39 lines · 977 tokens per session scan A 24023a2ddd03

Subscribe to this mod's changes

generic-dev-sop is a cursor rule published in the GitHub repository vien-meng/vien-skills (10 stars, last pushed 23d ago), licensed Apache-2.0. It adds 977 tokens to every session, about $0.0049 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.