Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

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

Agent Skill

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

总安装

288

周安装

12

GitHub Stars

公开资料未说明

下载量

96
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

spec-driven-dev 用于查找、检索和筛选相关信息,适合根据关键词快速定位候选结果。

  • 适用场景包括技术调研、资料搜集、需求匹配和知识库查询等需要信息聚合的任务。
  • 核心能力涵盖关键词扩展、来源筛选和结果排序,支持多维度条件组合和优先级判断。
  • 可通过 npx skills add 命令从指定 GitHub 仓库安装,需确认搜索范围和权限边界后再使用。
  • 使用前应检查是否会触发联网请求或外部 API 调用,避免高频访问导致服务限制或数据泄露。

SKILL.md

Spec-Driven Development

This skill powers the windloop framework. Specs live in a spec directory — prefer .kiro/specs/<name>/, then fall back to .windloop/specs/<name>/. The format is the same regardless of location.

When to Use

  • Complex features with multiple components or integrations
  • Multi-step work where rework costs are significant
  • AI-assisted development where structured planning improves output quality
  • Team collaboration requiring shared understanding and traceability
  • Resuming implementation across sessions
  • Analytic or data-science workflows that need spec-level structure before implementation or promotion
  • Projects that already contain requirements/design/tasks files or spec-like docs that need to be normalized into .kiro/specs/<name>/ or .windloop/specs/<name>/
  • Requests that mention spec-help, spec-plan, or ask where analytic workflow specs should live

When NOT to Use

  • Simple bug fixes with obvious one-file solutions
  • Time-critical hotfixes requiring immediate action
  • Experimental prototypes for rapid throwaway iteration
  • Trivial changes with no ambiguity
  • Pure exploratory analysis with no need for requirements/design/tasks yet

Quick Start

New feature:

/spec-plan my-feature create

Creates requirements.md, design.md, tasks.md, progress.txt in a new spec directory. Walk through requirements → design → tasks with approval gates between each phase.

New analytic workflow spec:

/spec-plan incident-analysis-pipeline create

Use the same spec flow, but read references/analytic-work.md and make the design explicit about notebook workflow, experiment comparison, review gates, and reproducibility promotion.

Refine existing spec:

/spec-plan my-feature refine

Merges redundant requirements, fixes stale paths, cascades renumbering, validates traceability.

Resume implementation:

/spec-go my-feature

Reads the spec, finds the next uncompleted task, implements it test-first, commits, and repeats.

Check progress:

/spec-status

Phase Gate Protocol

Each phase requires explicit user approval before advancing:

Requirements ──[approve]──> Design ──[approve]──> Tasks ──[approve]──> Implement
  • After generating requirements.md: ask *"Do the requirements look good? Ready for design?"*
  • After generating design.md: ask *"Does the design look good? Ready for task breakdown?"*
  • After generating tasks.md: ask *"Do the tasks look good? Ready to implement?"*
  • Never skip a phase or combine phases. If running /spec-go (autonomous mode), the user has pre-approved all phases by invoking the command.
stateDiagram-v2
  [*] --> Requirements

  Requirements --> ReviewReq : Complete
  ReviewReq --> Requirements : Changes requested
  ReviewReq --> Design : Approved

  Design --> ReviewDesign : Complete
  ReviewDesign --> Design : Changes requested
  ReviewDesign --> Tasks : Approved

  Tasks --> ReviewTasks : Complete
  ReviewTasks --> Tasks : Changes requested
  ReviewTasks --> Implement : Approved

  Implement --> TaskDone : Task complete
  TaskDone --> Implement : Next task
  TaskDone --> [*] : All tasks done

  state Implement {
    [*] --> PickTask
    PickTask --> Code
    Code --> Test
    Test --> Commit
    Commit --> UpdateProgress
  }

Resume / Detection Protocol

Determine current phase by checking which files exist in SPEC_DIR:

Files presentPhaseNext action
NoneNew/spec-plan <name> create — start with requirements
requirements.md onlyDesign neededGenerate design.md, then ask for approval
requirements.md + design.mdTasks neededGenerate tasks.md, then ask for approval
All 3 + unchecked tasksImplementation/spec-go or /spec-task — pick next unchecked task
All tasks checkedDone/spec-merge — merge branch, clean up

When resuming, always re-read requirements.md, design.md, and tasks.md before acting.

Quality Checklists

Requirements checklist (validate before advancing to design):

  • All user roles identified
  • Normal, edge, and error cases covered
  • Every criterion uses WHEN/SHALL (EARS) format
  • Requirements are testable and measurable
  • No conflicting requirements

Design checklist (validate before advancing to tasks):

  • All requirements addressed in design
  • Component responsibilities and interfaces specified
  • Correctness properties defined with test approaches
  • Error handling covers expected failures
  • Diagrams match system complexity

Tasks checklist (validate before implementing):

  • Every requirement traced to ≥1 task
  • Tasks ordered to respect dependencies
  • Tests are separate tasks (not embedded)
  • Each task is independently completable
  • Scope is appropriate (30 min – 2 hours each)

Spec Lifecycle

idea → requirements.md (why) → design.md (what + how) → tasks.md (steps) → [implement loop] → done

The traceability chain:

  • requirements.md — requirements as user stories with WHEN/SHALL acceptance criteria — the *why*
  • design.md — architecture, tech stack, constraints, testing strategy, correctness properties — the *what + how*
  • tasks.md — implementation tasks referencing requirements and properties — the *steps*
  • progress.txt — auto-updated log
  • steering/ *(optional)* — project-level context: product vision, repo structure, tech decisions. Read-only priors that inform all spec work.

Workflow References

Detailed instructions for each command live in references/ alongside this file. When a command is invoked, read the corresponding reference document.

If the spec is for analytics, experimentation, or reproducible data work, also read references/analytic-work.md.

Commands

CommandReferencePurpose
/spec-helpspec-help.mdOnboarding guide
`/spec-plan <name> [create\refine]`spec-plan.mdCreate or refine a spec
/spec-audit <name>spec-audit.mdValidate spec consistency
/spec-go <name>spec-go.mdAutonomous implement loop
/spec-task <name> <task>spec-task.mdImplement single task
/spec-merge <name>spec-merge.mdMerge parallel branches, resolve conflicts, verify
/spec-statusspec-status.mdProgress dashboard
/spec-reset <name>spec-reset.mdClear progress for re-run

Spec Resolution

When a command receives a spec name SPEC, resolve its directory:

  1. .kiro/specs/SPEC/ — if exists, use it
  2. .windloop/specs/SPEC/ — if exists, use it
  3. Neither → error

When no name is given, list directories in .kiro/specs/ and .windloop/specs/. If exactly one spec exists, use it automatically.

Let SPEC_DIR be the resolved directory.

Rules

  1. One session per working tree: use worktrees or branches to isolate parallel work.
  2. Resolve the spec using the Spec Resolution rules above.
  3. Read requirements.md AND design.md before implementing. If steering/ exists, read it too.
  4. When in doubt, stop and re-anchor to the spec: if there is any chance the next action could deviate from spec-driven development (unclear scope, missing task, ambiguous acceptance criteria, tempting “quick fix”, undocumented refactor), STOP and re-read requirements.md, design.md, tasks.md, and the relevant workflow in references/ (typically references/spec-go.md or references/spec-task.md) before proceeding. If it still isn’t clearly supported by the spec, ask the user to refine the spec (via /spec-plan... refine) instead of guessing.
  5. Check task dependencies — never skip ahead.
  6. Tests are separate tasks: property tests and E2E tests each get their own task. Don't embed test work inside implementation tasks.
  7. Run tests after implementation; fix up to 3 times before BLOCKED.
  8. Commit per task: feat(<spec>/<task>): [description]
  9. Update tasks.md (checkbox) and progress.txt (log line) after each task.
  10. Keep changes minimal and focused.

Analytic Workflow Pairing

When the project is analytic, notebook-heavy, or experiment-oriented:

  • Use this skill for the spec lifecycle itself.
  • Use analytic-workbench for the execution model, review loops, and tooling choices.
  • Requirements should make approval gates, artifact outputs, and promotion criteria explicit.
  • Design should spell out the boundary between exploratory work and reproducible/promoted stages.
  • Tasks should separate experimentation, review/comparison, and promotion/hardening work.

If the user is already asking for best-practice analytic workflow structure and there are existing spec files on disk, invoke this skill early rather than waiting until after implementation has begun.

Common Pitfalls

Vague requirements:

  • Bad: "System should be fast"
  • Good: "WHEN user submits search THEN system SHALL return results within 2 seconds"

Implementation details in requirements:

  • Bad: "System shall use Redis for caching"
  • Good: "WHEN user requests frequently accessed data THEN system SHALL return cached results"

Skipping phases:

  • Bad: Jump straight to tasks.md without requirements or design
  • Good: Complete each phase, get approval, then advance

Monolithic tasks:

  • Bad: "Implement the entire authentication system" (one task)
  • Good: Break into 30-min–2-hour tasks with clear boundaries and test coverage

Missing error cases:

  • Bad: Only documenting the happy path
  • Good: Include WHEN/IF statements for all error conditions and edge cases

Embedding tests in implementation tasks:

  • Bad: "Implement user model and write all tests" (one task)
  • Good: Separate tasks: "Implement user model" → "Write property test for user validation"

Scaffolding

When /spec-plan creates a new spec, it must create a per-spec subdirectory — never put spec files directly in .windloop/specs/ or .kiro/specs/.

If .kiro/ exists:

  1. Create .kiro/specs/ if it doesn't exist
  2. Create .kiro/specs/<name>/ — this is the spec directory
  3. Create all spec files inside .kiro/specs/<name>/

Otherwise:

  1. Create .windloop/specs/ if it doesn't exist
  2. Create .windloop/specs/<name>/ — this is the spec directory
  3. Create all spec files inside .windloop/specs/<name>/

The spec directory must contain:

.windloop/specs/<name>/    # or .kiro/specs/<name>/
  requirements.md
  design.md
  tasks.md
  progress.txt

Common mistake: placing spec files directly in .windloop/specs/ or .kiro/specs/ without the <name>/ subdirectory. Each spec MUST have its own subdirectory.

Steering Docs (optional)

Steering docs provide project-level context that applies across all specs. They live at the root of the spec area:

  • .windloop/steering/ or .kiro/steering/

Note: steering docs live at the root (.windloop/steering/, not .windloop/specs/steering/).

FilePurpose
product.mdProduct vision, target users, key goals
structure.mdRepo layout, module boundaries, naming conventions
tech.mdTech stack decisions, version constraints, deployment targets

Rules:

  • Steering docs are read-only context — never modify them during task execution.
  • When they exist, always read them during planning (spec-plan) and before implementing (spec-go, spec-task).
  • They are not scaffolded automatically — the user creates them when ready.
  • They inform requirements, design decisions, and coding conventions but are not part of the traceability chain.

If the host project has an AGENTS.md, append the windloop snippet (see below). If not, create it.

AGENTS.md Snippet

## Windloop

This project uses spec-driven development. Specs live in `.windloop/specs/` or `.kiro/specs/`.
For spec implementation, always use a dedicated git branch or worktree per spec.
Read the `spec-driven-dev` skill before modifying any spec files.
Run `/spec-help` for the full command list.

Spec Refinement Principles

When running /spec-plan <name> refine:

  1. Merge redundant requirements: combine duplicates into the earlier/more natural location.
  2. Separate what from how: move implementation details from Requirements to Constraints.
  3. Collapse over-specified sub-requirements: individual assertions become acceptance criteria on tasks, not separate requirements.
  4. Demote aspirational items: untestable patterns become Notes, not requirements.
  5. Merge overlapping properties: if one is a subset of another, merge and renumber.
  6. Cascade renumbering: update ALL references in design.md and tasks.md after merging/removing.
  7. Validate traceability: every requirement → ≥1 property → ≥1 task. Flag orphans.
  8. Present tense for done work: completed requirements describe the system as-is.
  9. Sync derived documents: update README, architecture docs, etc. if affected.
  10. Align spec with disk: fix stale paths, add missing entries, remove deleted files.

Embedded Templates

requirements.md template

# Requirements Document

## Introduction
<!-- Brief description of what this spec covers and why -->

## Glossary

- **Term_1**: Definition
- **Term_2**: Definition

## Requirements

### Requirement 1: [Feature area]

**User Story:** As a [role], I want [action], so that [benefit].

#### Acceptance Criteria

1. WHEN [trigger], THE [Component] SHALL [expected behavior]
2. WHEN [trigger], THE [Component] SHALL [expected behavior]

### Requirement 2: [Feature area]

**User Story:** As a [role], I want [action], so that [benefit].

#### Acceptance Criteria

1. WHEN [trigger], THE [Component] SHALL [expected behavior]

### Non-Functional

**NF 1**: [Performance / reliability / security requirement]

## Out of Scope
<!-- What this spec explicitly does NOT cover -->

design.md template

# Design: [SPEC NAME]

## Tech Stack
- **Language**:
- **Framework**:
- **Testing**:
- **Linter**:

## Directory Structure
\```
src/
tests/
\```

## Architecture Overview

\```mermaid
graph TD
    A[Module A] --> B[Module B]
    A --> C[Module C]
    B --> D[Shared Service]
    C --> D
\```

## Module Design

### [Module 1]
- **Purpose**: [what it does]
- **Interface**:
  \```
  [function signatures, class interfaces, API endpoints]
  \```
- **Dependencies**: [what it depends on]

## Data Flow

\```mermaid
sequenceDiagram
    participant User
    participant CLI
    participant Service
    participant Store
    User->>CLI: command
    CLI->>Service: process(args)
    Service->>Store: read/write
    Store-->>Service: result
    Service-->>CLI: output
    CLI-->>User: display
\```

## State Management
<!-- Omit if stateless -->

## Data Models
<!-- Omit if simple -->

## Error Handling Strategy
<!-- How errors are propagated and handled -->

## Testing Strategy

- **Property tests**: Verify design invariants, inline with implementation tasks (required)
- **E2E tests**: Validate user stories end-to-end, as separate tasks (required)
- **Unit tests**: For complex internal logic only (optional, add when warranted)
- **Test command**: `[command]`
- **Lint command**: `[command]`
- **Coverage target**: [percentage]

## Constraints
<!-- Important decisions and constraints -->

## Correctness Properties

Properties that must hold true. Each validates one or more requirements.

### Property 1: [Property name]
- **Statement**: *For any* [condition], when [action], then [expected outcome]
- **Validates**: Requirement 1.1, 1.2
- **Example**: [concrete example]
- **Test approach**: [how to verify]

### Property 2: [Property name]
- **Statement**: *For any* [condition], when [action], then [expected outcome]
- **Validates**: Requirement 2.1
- **Example**: [example]
- **Test approach**: [approach]

## Edge Cases
<!-- Known edge cases and how they should be handled -->

## Decisions

### Decision: [Title]
**Context:** [Situation requiring a decision]
**Options Considered:**
1. [Option 1] — Pros: [benefits] / Cons: [drawbacks]
2. [Option 2] — Pros: [benefits] / Cons: [drawbacks]
**Decision:** [Chosen option]
**Rationale:** [Why this was selected]

## Security Considerations
<!-- If applicable -->

Diagram guidance: Include diagrams that match complexity:

  • Always: Component diagram (architecture overview)
  • Multi-actor systems: Sequence diagram
  • Stateful systems: State diagram
  • Data-heavy systems: ER diagram

Omit sections that don't apply. Use Mermaid syntax.

tasks.md template

# Tasks: [SPEC NAME]

## Overview
<!-- Brief description of implementation approach -->

## Tasks

- [ ] 1. [Phase title — REQUIRED, never leave blank]
  - [ ] 1.1 [Task title]
    - [What to implement]
    - **Depends**: —
    - **Requirements**: 1.1, 1.2
    - **Properties**: 1

  - [ ] 1.2 [Task title]
    - [What to implement]
    - **Depends**: 1.1
    - **Requirements**: 2.1
    - **Properties**: 2

  - [ ] 1.3 Write property test for [property name]
    - Property 1 (validates 1.1, 1.2)
    - **Depends**: 1.1
    - **Properties**: 1

  - [ ]* 1.4 [Optional task title]
    - [What to implement]
    - **Depends**: 1.1

- [ ] 2. [Phase or group title]
  - [ ] 2.1 [Task title]
    - [What to implement]
    - **Depends**: 1.1, 1.2
    - **Requirements**: 1.3, 2.2
    - **Properties**: 1, 2

- [ ] 3. E2E Tests
  - [ ] 3.1 E2E — [User story scenario]
    - End-to-end test validating [user story]
    - **Depends**: 1.1, 1.2
    - **Requirements**: 1.1, 1.2, 2.1

## Notes
<!-- Implementation notes, known issues, etc. -->

Task conventions:

  • IDs use hierarchical numbering: 1.1, 1.2, 2.1, etc.
  • Parent items (1., 2.) are phase/group headers — their checkbox tracks phase completion. Always include a descriptive title (e.g. - [] 1. Set up project infrastructure).
  • []* marks optional tasks.
  • [~] = partial/skipped, [!] = blocked.
  • Depends is the only required metadata field. Requirements and Properties for traceability.
  • When a task needs testing, create a separate sub-task for writing the test (e.g. 1.3 Write property test for X). Don't embed test specs inside implementation tasks.

progress.txt template

# Progress Log: [SPEC NAME]
# Auto-updated by spec-go workflow
# Format: [TIMESTAMP] [STATUS] [TASK_ID] - [DESCRIPTION]
# STATUS: DONE | BLOCKED | SKIPPED | IN_PROGRESS
# SUMMARY: 0/N done | next: 1.1

The # SUMMARY: line is machine-readable. Format: # SUMMARY: <done>/<total> done | next: <NEXT_TASK_ID or DONE>

Parallel Execution

For independent tasks, use worktree mode:

  1. Open a new Cascade in Worktree mode
  2. Run /spec-task <name> <task>
  3. Merge back when done

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.9%
按下载量换算35

Claude

29.35%
按下载量换算28

Cursor

20.46%
按下载量换算20

Gemini CLI

10.73%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills