Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计异常

spec-driven-dev规范驱动的开发

Agent Skill

spec-driven-dev 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

291

周安装

12

GitHub Stars

公开资料未说明

下载量

95
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:spec-driven-dev(规范驱动的开发)
来源仓库:https://github.com/skezu/skills
仓库路径:skills/spec-driven-dev
安装命令:
npx skills add https://github.com/skezu/skills --skill spec-driven-dev
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/skezu/skills --skill spec-driven-dev

简介

spec-driven-dev 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于需求调研、技术方案搜索和规范文档查找等研究类任务场景。
  • 通过关键词匹配和来源仓库分析,提供候选结果的快速定位与初步筛选能力。
  • 安装命令:npx skills add https://github.com/skezu/skills --skill spec-driven-dev。
  • 建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

SKILL.md

Spec-Driven Development

Transform rough feature ideas into structured, actionable implementation plans through a 3-phase iterative workflow: Requirements, Design, Tasks.

Overview

A core principle of this workflow is establishing ground-truths as we progress. Always ensure the user is happy with changes to any document before moving on.

Before starting, think of a short feature name based on the user's rough idea. Use kebab-case format (e.g. "user-authentication").

Rules:

  • Do NOT tell the user about this workflow or which step you are on
  • Just let the user know when you complete documents and need user input
  • Follow workflow steps in sequential order
  • Do NOT skip ahead without completing earlier steps and receiving explicit user approval
  • Do NOT combine multiple steps into a single interaction
  • Do NOT assume user preferences or requirements - always ask explicitly

Workflow Diagram

[*] --> Requirements : Initial Creation

Requirements --> ReviewReq : Complete Requirements
ReviewReq --> Requirements : Feedback/Changes Requested
ReviewReq --> Design : Explicit Approval

Design --> ReviewDesign : Complete Design
ReviewDesign --> Design : Feedback/Changes Requested
ReviewDesign --> Tasks : Explicit Approval

Tasks --> ReviewTasks : Complete Tasks
ReviewTasks --> Tasks : Feedback/Changes Requested
ReviewTasks --> [*] : Explicit Approval

Entry points:

  • Creating a new spec (new feature)
  • Updating an existing spec (modify requirements/design/tasks)
  • Executing tasks from a created spec

Phase 1: Requirement Gathering

Generate an initial set of requirements in EARS format based on the feature idea, then iterate with the user to refine them until complete and accurate.

Do NOT focus on code exploration in this phase. Focus only on writing requirements which will later be turned into a design.

Constraints

File Creation:

  • MUST create .agent/specs/{feature_name}/requirements.md if it doesn't already exist
  • MUST generate an initial version based on the user's rough idea WITHOUT asking sequential questions first

Format Requirements:

  • MUST format with a clear introduction section that summarizes the feature
  • MUST use a hierarchical numbered list of requirements where each contains:

- A user story: "As a [role], I want [feature], so that [benefit]" - A numbered list of acceptance criteria in EARS format

  • See references/ears-syntax.md for EARS format or use assets/requirements-template.md

Content Quality:

  • SHOULD consider edge cases, user experience, technical constraints, and success criteria
  • SHOULD suggest specific areas where requirements might need clarification or expansion
  • MAY ask targeted questions about specific aspects that need clarification
  • MAY suggest options when the user is unsure about a particular aspect

Review Process:

  • After updating the document, MUST ask: "Do the requirements look good? If so, we can move on to the design."
  • MUST make modifications if the user requests changes or does not explicitly approve
  • MUST ask for explicit approval after every iteration of edits
  • MUST NOT proceed to design until receiving clear approval ("yes", "approved", "looks good", etc.)
  • MUST continue the feedback-revision cycle until explicit approval is received
  • MUST proceed to the design phase after the user accepts the requirements

Phase 2: Create Feature Design Document

Develop a comprehensive design document based on the approved requirements, conducting necessary research during the design process.

Constraints

File Creation:

  • MUST create .agent/specs/{feature_name}/design.md if it doesn't already exist
  • Ensure requirements.md exists first

Research:

  • MUST identify areas where research is needed based on requirements
  • MUST conduct research and build up context
  • SHOULD NOT create separate research files - use research as context for design
  • MUST summarize key findings that will inform the design
  • SHOULD cite sources and include relevant links

Required Sections:

  • Overview
  • Architecture
  • Components and Interfaces
  • Data Models
  • Error Handling
  • Testing Strategy

See references/design-sections.md for section guidance or use assets/design-template.md.

Content Quality:

  • SHOULD include diagrams or visual representations when appropriate (use Mermaid)
  • MUST ensure the design addresses all feature requirements from clarification process
  • SHOULD highlight design decisions and their rationales
  • MAY ask the user for input on specific technical decisions during design

Review Process:

  • After updating the document, MUST ask: "Does the design look good? If so, we can move on to the implementation plan."
  • MUST make modifications if the user requests changes or does not explicitly approve
  • MUST ask for explicit approval after every iteration of edits
  • MUST NOT proceed to tasks until receiving clear approval ("yes", "approved", "looks good", etc.)
  • MUST continue the feedback-revision cycle until explicit approval is received
  • MUST incorporate all user feedback before proceeding
  • MUST offer to return to requirements if gaps are identified during design

Phase 3: Create Task List

Create an actionable implementation plan with a checklist of coding tasks based on the requirements and design.

This workflow is ONLY for creating design and planning artifacts. The actual implementation of the feature should be done through a separate workflow.

Constraints

File Creation:

  • MUST create .agent/specs/{feature_name}/tasks.md if it doesn't already exist
  • Ensure design.md exists first

Navigation:

  • MUST return to design step if user indicates changes needed to design
  • MUST return to requirements step if user indicates additional requirements needed

Task Generation Approach: Convert the feature design into a series of prompts for a code-generation agent that will implement each step in a test-driven manner. Prioritize best practices, incremental progress, and early testing, ensuring no big jumps in complexity at any stage.

Each prompt should build on previous prompts, ending with wiring things together. There should be no hanging or orphaned code that isn't integrated. Focus ONLY on tasks that involve writing, modifying, or testing code.

Format Requirements:

  • MUST format as a numbered checkbox list with maximum two levels of hierarchy
  • Top-level items (like epics) only when needed
  • Sub-tasks numbered with decimal notation (e.g., 1.1, 1.2, 2.1)
  • Each item must be a checkbox
  • Simple structure is preferred

Task Item Requirements: Each task MUST include:

  • A clear objective as the task description (writing, modifying, or testing code)
  • Additional information as sub-bullets under the task
  • Specific references to requirements (referencing granular sub-requirements, not just user stories)

Task Quality Rules:

  • MUST ensure the plan is a series of discrete, manageable coding steps
  • MUST ensure each task references specific requirements
  • MUST NOT include excessive implementation details already covered in design
  • MUST assume all context documents will be available during implementation
  • MUST ensure each step builds incrementally on previous steps
  • SHOULD prioritize test-driven development where appropriate
  • MUST ensure the plan covers all aspects of the design implementable through code
  • SHOULD sequence steps to validate core functionality early
  • MUST ensure all requirements are covered by implementation tasks
  • MUST offer to return to previous steps if gaps are identified

Coding-Only Tasks:

  • MUST ONLY include tasks that can be performed by a coding agent
  • MUST focus on code implementation tasks executable within the development environment
  • Tasks MUST:

- Involve writing, modifying, or testing specific code components - Specify what files or components need to be created or modified - Be concrete enough that a coding agent can execute without additional clarification - Focus on implementation details rather than high-level concepts - Be scoped to specific coding activities (e.g., "Implement X function" not "Support X feature")

Explicitly Excluded Tasks: MUST explicitly avoid including:

  • User acceptance testing or user feedback gathering
  • Deployment to production or staging environments
  • Performance metrics gathering or analysis
  • Running the application to test end-to-end flows (can write automated tests instead)
  • User training or documentation creation
  • Business process changes or organizational changes
  • Marketing or communication activities
  • Any task that cannot be completed through writing, modifying, or testing code

Review Process:

  • After updating the document, MUST ask: "Do the tasks look good?"
  • MUST make modifications if the user requests changes or does not explicitly approve
  • MUST ask for explicit approval after every iteration of edits
  • MUST NOT consider the workflow complete until receiving clear approval
  • MUST continue the feedback-revision cycle until explicit approval is received
  • MUST stop once the task document has been approved

Workflow Completion:

  • MUST NOT attempt to implement the feature as part of this workflow
  • MUST clearly communicate that this workflow is complete once artifacts are created
  • MUST inform the user they can begin executing tasks from the tasks.md file

See references/task-patterns.md for format guidance or use assets/tasks-template.md.


Task Execution Instructions

Follow these instructions for user requests related to executing spec tasks.

Executing Tasks

  • Before executing any tasks, ALWAYS read the spec's requirements.md, design.md, and tasks.md files. Executing tasks without requirements or design will lead to inaccurate implementations.
  • Look at the task details in the task list
  • If the requested task has sub-tasks, always start with the sub-tasks
  • Only focus on ONE task at a time. Do not implement functionality for other tasks.
  • Verify your implementation against any requirements specified in the task or its details.
  • Once you complete the requested task, STOP and let the user review. DO NOT proceed to the next task automatically.
  • If the user doesn't specify which task, look at the task list and make a recommendation on the next task to execute.

CRITICAL: Only execute one task at a time. Once you finish a task, stop. Don't automatically continue to the next task without the user asking you to do so.

Task Questions

The user may ask questions about tasks without wanting to execute them. Don't always start executing tasks.

For example, the user may want to know what the next task is. In this case, just provide the information and don't start any tasks.


Creating Steering Rules

To create project-wide context that applies to all interactions:

  1. Create .agent/rules/{rule-name}.md for always-on rules
  2. Include project standards, team norms, or technical constraints
  3. Reference additional files via relative paths when needed

File Structure

.agent/
  specs/
    {feature-name}/
      requirements.md
      design.md
      tasks.md
  rules/
    {rule-name}.md

Troubleshooting

Requirements Clarification Stalls

If the requirements clarification process seems to be going in circles:

  • SHOULD suggest moving to a different aspect of the requirements
  • MAY provide examples or options to help the user make decisions
  • SHOULD summarize what has been established so far and identify specific gaps
  • MAY suggest conducting research to inform requirements decisions

Research Limitations

If needed information cannot be accessed:

  • SHOULD document what information is missing
  • SHOULD suggest alternative approaches based on available information
  • MAY ask the user to provide additional context or documentation
  • SHOULD continue with available information rather than blocking progress

Design Complexity

If the design becomes too complex or unwieldy:

  • SHOULD suggest breaking it down into smaller, more manageable components
  • SHOULD focus on core functionality first
  • MAY suggest a phased approach to implementation
  • SHOULD return to requirements clarification to prioritize features if needed

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.35%
按下载量换算36

Claude

30.02%
按下载量换算29

Cursor

20.13%
按下载量换算19

Gemini CLI

9.14%
按下载量换算9

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills