Token导航 LogoToken导航

Agent Skill · 研究检索

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

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

spec-driven-dev 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为执行命令;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 58,406。

总安装 416周安装 17GitHub Stars 3下载 135核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/sipki-tech/spec-driven-developer-skill --skill spec-driven-dev

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

用于查找、检索和筛选相关信息,支持规范驱动开发流程。适合根据关键词或任务场景快速定位候选结果。适用于 Codex、Claude、Cursor、Gemini CLI 等 AI 工具。

安装命令:npx skills add https://github.com/sipki-tech/spec-driven-developer-skill --skill spec-driven-dev。建议结合原始 README 核验具体用法,注意权限和操作边界。

来源仓库内路径:skills/spec-driven-dev

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/sipki-tech/spec-driven-developer-skill --skill…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要执行命令,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

spec-driven-dev 怎么安装?

在终端执行 npx skills add https://github.com/sipki-tech/spec-driven-developer-skill --skill spec-driv…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

spec-driven-dev 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

spec-driven-dev 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 npx skills add https://github.com/sipki-tech/spec-driven-developer-skill --skill spec-driven-dev 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

spec-driven-dev 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

spec-driven-dev 用的人多吗?

公开数据是累计安装 416 次,近一周安装 17 次,下载 135 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

spec-driven-dev 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
spec-driven-dev

规范驱动的开发 · 本页

4163执行命令未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Spec-Driven Development

You are operating in spec-driven development mode. This project uses a 6-phase pipeline with human approval gates between each phase.

Pipeline

Explore → [APPROVE] → Requirements → [APPROVE] → Design → [APPROVE] → Task Plan → [APPROVE] → Implementation → [APPROVE] → Review → [APPROVE] → Done

Each phase has a dedicated prompt template. Read the template for the current phase before generating any output.

Quick Reference

ActionCommand
Check statesh./scripts/pipeline.sh status
Start feature`sh./scripts/pipeline.sh init [--branch\--worktree] <name>`
Register outputsh./scripts/pipeline.sh artifact [path]
Advance phasesh./scripts/pipeline.sh approve (only after user says "approve")
Mark task donesh./scripts/pipeline.sh task T-N (implementation phase only)
Abandon featuresh./scripts/pipeline.sh abandon [feature]
Finish branch`sh./scripts/pipeline.sh finish <merge\pr\keep\discard>`
Validate configsh./scripts/pipeline.sh config-check
Inject artifactsh./scripts/pipeline.sh inject <phase> <path>
Check docssh./scripts/pipeline.sh docs-check
Multi-featureAdd --feature <name> before any command

Hard rules: check status first · never skip phases · never auto-approve · save artifacts to .spec/features/<feature>/ · max 3 revisions then ask user

Config: .spec/config.yaml → context (all phases), rules.<phase> (per phase), test_skill, test_reference, docs_dir, auto_branch, branch_prefix

Phase flow: read template → generate artifact → save → artifact → present → wait for "approve" → approve

Phases

#PhaseTemplateProduces
1Explore./templates/explore.mdExploration & research document
2Requirements./templates/requirements.mdFormal requirements document
3Design./templates/design.mdArchitecture & design document
4Task Plan./templates/task-plan.mdTDD implementation plan
5Implementation./templates/implementation.mdImplementation report
6Review./templates/review.mdCode review document

State Machine

The pipeline state is managed via a shell script. Use these commands:

# Check current phase and progress
sh ./scripts/pipeline.sh status

# Start a new feature pipeline
sh ./scripts/pipeline.sh init <feature-name>

# Start with auto-branch (creates git branch <prefix><name>)
sh ./scripts/pipeline.sh init --branch <feature-name>

# Start with worktree (creates isolated worktree in <worktree_dir>/<name>)
sh ./scripts/pipeline.sh init --worktree <feature-name>

# Register the artifact you generated for the current phase
sh ./scripts/pipeline.sh artifact [path]

# Advance to the next phase (only after user says "approve")
sh ./scripts/pipeline.sh approve

# View revision history for current or specified phase
sh ./scripts/pipeline.sh revisions [phase]

# View all features and their status
sh ./scripts/pipeline.sh history

# Check project documentation status
sh ./scripts/pipeline.sh docs-check

# Mark an implementation task as completed (enables resume)
sh ./scripts/pipeline.sh task <T-N>

# Validate config file keys and types
sh ./scripts/pipeline.sh config-check

# Inject a pre-written artifact and skip to that phase
sh ./scripts/pipeline.sh inject <phase> <path>

# Finalize branch after pipeline completes (merge, push PR, keep, or discard)
sh ./scripts/pipeline.sh finish <merge|pr|keep|discard>

Parallel Pipelines

When multiple features are active simultaneously, add --feature <name> before the command:

sh ./scripts/pipeline.sh --feature auth-flow status
sh ./scripts/pipeline.sh --feature payment approve

Without the flag, the pipeline auto-detects the active feature. If more than one is active, it will error and prompt you to use --feature.

Project Configuration

If the file .spec/config.yaml exists in the project root, read it before starting any phase. See .spec/config.yaml.example for a template with all supported keys.

Format limitation: the pipeline parser reads flat key: value pairs only. Nested YAML structures, multi-line values, and quoted strings are not supported.
KeyTypeDefaultDescription
contextstring—Project-wide background for ALL phases
rules.<phase>string—Phase-specific rules (supplement template)
rules.docsstring—Rules for documentation generation
test_skillstring—Skill name for delegated test generation
test_referencestring—Glob/paths to representative test files
docs_dirstring.specDirectory for project documentation
doc_freshness_daysinteger30Days before a generated doc is stale
auto_branchbooleanfalseAuto-create git branch on init
branch_prefixstringfeature/Prefix for auto-created branches
auto_worktreebooleanfalseAuto-create git worktree on init (mutually exclusive with auto_branch)
worktree_dirstring.worktreesDirectory for worktrees (add to .gitignore)

Phase-specific rule keys: rules.explore, rules.requirements, rules.design, rules.task-plan, rules.implementation, rules.review, rules.docs.

Injection order: context → phase rules → template instructions.

If the file does not exist, skip this step.

Pre-flight Checklist

Before starting any pipeline work, follow these steps in order:

  1. Check pipeline state: run pipeline.sh status.

- If exactly one active pipeline exists → resume from the current phase. Do NOT run init again. - If no active pipeline → proceed to step 2. - If multiple active pipelines → ask the user which feature to work on, then use --feature <name> with all subsequent commands.

  1. Read project config: check if .spec/config.yaml exists.

- If yes → read it, apply context to all phases, note rules.* for each phase. - If no → proceed without config (defaults apply).

  1. Check documentation (MUST — do not skip this step): run pipeline.sh docs-check.

- Docs directory missing → suggest: *"Project documentation (<docs_dir>/) not found. I can generate it to better understand your codebase. Say 'generate docs' or 'skip'."* Wait for the user's response before proceeding. This is a soft gate — the pipeline works without documentation, but the user must explicitly acknowledge (say 'generate docs' or 'skip'). - Docs exist, stale files found → suggest: *"Some docs are outdated (: days old). Regenerate before starting? Say 'update docs' or 'skip'."* Wait for the user's response. If user agrees, read ./templates/docs-maintenance.md for the Stale doc regeneration workflow. - Docs exist, all fresh → use as supplementary context for ALL phases. Read <docs_dir>/README.md for the documentation map. - If user says "generate docs" or "update docs": read ./templates/docs-maintenance.md, follow the workflow. Generated documentation files go to <docs_dir>/ (default: .spec/), NOT to .spec/features/<feature>/. - Do NOT proceed to step 4 until the user responds to the documentation suggestion.

  1. Start pipeline: run pipeline.sh init <feature-name>.

For documentation generation, staleness checks, and regeneration workflows, read ./templates/docs-maintenance.md.

When to Use This Pipeline

Use the pipeline for:

  • New features ("add user authentication", "implement search")
  • Significant changes to existing features (new behavior, API changes, schema migrations)
  • Bug fixes that require investigation and design (root cause unknown, multiple components affected)

Do NOT use the pipeline for:

  • Trivial changes: typo fixes, config tweaks, single-field additions, comment updates
  • Dependency updates with no code changes
  • Pure refactors with no behavioral change (unless they are large and risky)

For trivial changes, just make the change directly — no pipeline needed. The skill is designed for work that benefits from structured thinking before coding.

Fast-track mode

For bug fixes with a known reproduction or other small, well-understood changes:

  • All 6 phases still apply — do not skip phases.
  • Each phase produces a minimal artifact: 1-paragraph exploration, 1–2 requirements, focused design (CPs only for the bug scenario), 4–5 tasks (RED→GREEN→CODE→VERIFY→GATE), brief implementation report, short review.
  • Each template contains a "Fast-track mode" section with phase-specific minimums. Follow those rules when fast-track applies.

When to activate: The agent activates fast-track when the user describes a bug with a known reproduction step, or a small, scoped change where investigation is unnecessary. At the start, announce: *"Using fast-track mode — all 6 phases, minimal artifacts."* If the user says "full pipeline", switch to the standard (non-abbreviated) flow.

Scope: This pipeline is designed for a single project or monorepo. It is not intended for features that span multiple independent repositories. Within a monorepo, use one .spec/ directory at the repository root.

Rules

  1. MUST check status first. Run pipeline.sh status before doing anything. Never generate phase output without checking status. If multiple active pipelines exist, use --feature <name> with all commands.
  2. Never skip phases. Follow the order: explore → requirements → design → task-plan → implementation → review.
  3. Never auto-approve. Wait for the user to explicitly say "approve" or equivalent.
  4. Read the template. Before generating output for a phase, read the corresponding template file.
  5. Save artifacts. Save phase artifacts (explore, requirements, design, task-plan, implementation, review) to .spec/features/<feature>/ and register them with pipeline.sh artifact. Project documentation (README.md, ARCHITECTURE.md, DOMAIN.md, etc.) goes to <docs_dir>/ (default: .spec/), NOT to .spec/features/<feature>/ — these are separate directories with separate purposes.
  6. Each phase produces one artifact that becomes input for the next phase.
  7. Artifacts are cumulative. Each phase reads all prior artifacts.
  8. Revision limit. If the user rejects the same artifact 3 times in a row, stop generating and ask: "We've gone through 3 revisions — could you clarify what's missing or what direction you'd prefer?" Do not continue revising without explicit guidance. The review phase's internal fix cycle has a separate limit: maximum 3 fix cycles (see templates/review.md Iteration Workflow). After 3 fix cycles without PASS, escalate to user.
  9. Surface uncertainty. If you are unsure about intent, scope, or technical approach — say so explicitly. State the assumption you would make and ask the user to confirm or correct it. Never silently assume.
  10. Write in the user's language. Detect the user's language from their first message and use it for ALL pipeline artifacts and conversational replies. What stays in English: Everything else — prose, section headers, descriptions, interview questions, explanations — is written in the user's language.

- Formal grammar keywords: WHEN, SHALL, the system - Requirement IDs: REQ-X.Y - Task IDs: T-N - Instruction keywords: CRITICAL, IMPORTANT, NOTE, DO NOT, GOAL - Correctness Property format: Property N, Category, For all, Validates - Code identifiers, file paths, shell commands, Mermaid node labels - Documentation in <docs_dir>/ (.spec/) — always English (see templates/docs/README.md)

Error Recovery

  • Revising an artifact: Overwrite the file, re-register with pipeline.sh artifact, and present the updated version to the user. The previous version is automatically saved as a revision in the feature’s revisions/ directory. Use pipeline.sh revisions to view past revisions.

Documentation Maintenance

After the pipeline reaches phase=done, read ./templates/docs-maintenance.md § Documentation Maintenance to check if project documentation needs updating.

Branch Finishing

After documentation maintenance is complete (or skipped), finalize the feature branch.

  1. Auto-detect git state: run git branch --show-current and compare with the default branch (main/master).
  2. If on a feature branch (non-default branch):

- Present 4 options to the user (in the user's language): 1. Merge locally — merge the feature branch into the base branch 2. Create PR — push branch to origin for pull request 3. Keep branch — leave as-is for manual handling 4. Discard — delete the branch and all unmerged commits - Wait for the user's choice. - Run pipeline.sh finish <merge|pr|keep|discard>.

  1. If on the default branch (main/master) or git is unavailable:

- Run pipeline.sh finish keep and skip this step.

  1. This is a soft suggestion, not a blocker. If the user ignores it, the pipeline is still complete.

Quick Start (for the agent)

When the user says something like "I want to add feature X":

  1. Follow the Pre-flight Checklist (status → config → docs-check → init)
  2. Read ./templates/explore.md — investigate the problem space (use .spec/ docs as context if available)
  3. Generate the exploration document → save to .spec/features/<feature>/explore.md
  4. Run pipeline.sh artifact
  5. Present to user → wait for "approve"
  6. Run pipeline.sh approve → phase advances to requirements
  7. Read ./templates/requirements.md → follow its interview process
  8. Generate the requirements document → save, register artifact, present, wait for approve
  9. Repeat for design phase
  10. Read ./templates/task-plan.md → generate TDD implementation plan (no code yet)
  11. Save, register artifact, present, wait for approve
  12. Read ./templates/implementation.md → execute the task plan (write tests, write code, mark tasks done)
  13. Save implementation report, register artifact, present, wait for approve
  14. Read ./templates/review.md → review the written code against all prior artifacts
  15. If findings exist → agent fixes code using TDD fix plan (exploration test → fix → re-test) → re-reviews → repeats until verdict is PASS (max 3 fix cycles; escalates to user if not resolved)
  16. Present final review document (verdict PASS) → wait for approve
  17. After review is approved → pipeline.sh approve → pipeline complete
  18. Check if documentation needs updating (see Documentation Maintenance)
  19. Check if the feature branch needs finalizing (see Branch Finishing) → present options → pipeline.sh finish

平台分布

Codex

35.87%
按下载量换算48

Claude

31.55%
按下载量换算43

Cursor

20.28%
按下载量换算27

Gemini CLI

9.68%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/sipki-tech/spec-driven-developer-skill --skill spec-driven-dev 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills