一键导入
spec-driven-development
Write a structured specification before writing code. The spec is the shared source of truth between you and the human engineer.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Write a structured specification before writing code. The spec is the shared source of truth between you and the human engineer.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Evaluate code changes across five dimensions before merge. Approve changes that improve overall code health, even if not perfect.
Reduce complexity while preserving identical behavior. The goal is comprehension speed, not line reduction.
Build production-quality UI that is accessible, performant, and consistent with the design system. Not AI-generated-looking.
Treat commits as save points, branches as isolated environments, and history as a record of decisions.
Search tool for modern web development best practices. MANDATORY: Execute FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve rapidly and training weights contain obsolete patterns. Trigger immediately for: - UI/Layout: Modals, dialogs, popovers, Glassmorphism/backdrop-filters, anchor positioning, container queries, `:has()`, `:user-valid`. - Scroll/Motion: View Transitions, Scroll-driven animations, scroll parallax/reveals. - Performance: CWV (LCP, INP), content-visibility, Fetch Priority, image optimization. - System/APIs: Local filesystem access, WebUSB, WebSockets sync, WebAssembly widgets. - Frameworks: Adapting layout/styles in React, Vue, Angular. - General Frontend: Forms, autofill, advanced inputs, custom scrollbars, modern component states, etc. DO NOT trigger for: - Backend: Database SQL, ORMs, Express API routes. - Pipelines: CI/CD deployment, Docker, Actions. - Generic: Local scripts (Python/Go tools), ESLint, Git.
Measure before optimizing. Performance work without measurement is guessing.
| name | spec-driven-development |
| description | Write a structured specification before writing code. The spec is the shared source of truth between you and the human engineer. |
| when-to-use | New projects, ambiguous requirements, changes spanning multiple modules, architectural decisions. |
"Write a structured specification before writing code." The spec defines what we're building, why, and how we'll know it's done. It is the shared source of truth that prevents silent misunderstandings from cascading into wasted effort.
Skip for single-line fixes or straightforward, clearly-scoped corrections.
Surface assumptions first:
ASSUMPTIONS I'M MAKING:
1. [technology choice or constraint]
2. [architectural decision]
3. [scope boundary]
→ Correct me now or I'll proceed with these.
Draft the six-part specification:
Map components, dependencies, and risks. Identify verification checkpoints. Do not write implementation code.
Break work into discrete, reviewable items with acceptance criteria. Each task must be independently testable.
Execute tasks following skills/incremental-implementation/SKILL.md. The spec remains the authority throughout.
SPEC.md — Written at the project root (or docs/SPEC.md). Committed to version control.tasks/plan.md — Dependency map and risk assessmenttasks/todo.md — Ordered task list with acceptance criteriaPresent the spec and wait for explicit human approval before writing any implementation code. Tentative responses do not count.
Update SPEC.md when decisions change, scope shifts, or new constraints emerge. The spec is not a one-time artifact — it tracks current reality.