Token导航 LogoToken导航

Agent Skill · 效率

spec-kit(规格套件)

spec-kit 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 OpenClaw 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

spec-kit 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为执行命令;许可证为 MIT-0,第三方扫描有提醒项,按安装量在效率类的 21,003 个 Skill 里排第 3,489。

总安装 17,155周安装 722GitHub Stars 1下载 6,007核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:spec-kit(规格套件)
来源仓库:https://github.com/aungmyokyaw/spec-kit
安装命令:
openclaw skills install spec-kit
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

ClawHubOpenClaw
openclaw skills install spec-kit

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

基于 GitHub Spec Kit 实现规范驱动开发流程自动化。通过 /speckit.* 斜杠命令初始化项目并生成标准化文档。支持 Issue 跟踪、PR 审查与 CI/CD 流水线集成。需配置 GitHub App 权限以读取仓库结构与协作历史。规范定义变更需同步更新所有关联模块避免版本冲突。

spec-kit 属于效率类 Skill,可作为该场景下的辅助能力补充。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install spec-kit;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

spec-kit 怎么安装?

在终端执行 openclaw skills install spec-kit。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

spec-kit 支持哪些 AI 工具?

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

spec-kit 需要什么权限?

权限级别是执行命令。安装流程涉及命令执行,可能通过 openclaw skills install spec-kit 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

spec-kit 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

spec-kit 用的人多吗?

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

spec-kit 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要执行命令,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 不能接受 Skill 在你机器上执行命令的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

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

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
spec-kit

规格套件 · 本页

17,1551执行命令MIT-0有提醒

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

SKILL.md 原文

name
spec-kit
description
Use GitHub Spec Kit for Spec-Driven Development. Initialize projects, create specifications, and build software using the /speckit.* slash commands. Supports Claude Code, GitHub Copilot, Gemini CLI, and Codebuddy.
metadata

Spec Kit — Spec-Driven Development

Build high-quality software faster using Spec-Driven Development (SDD). Specifications become executable artifacts that generate working implementations, not just documentation.

Homepage: https://github.github.com/spec-kit/ GitHub: https://github.com/github/spec-kit


What is Spec-Driven Development?

SDD flips traditional software development:

TraditionalSpec-Driven
Specs are scaffolding → discardedSpecs are executable → generate code
Code is kingIntent is king
One-shot promptsMulti-step refinement
Focus on "how"Focus on "what" and "why"

Core Philosophy:

  • Intent-driven development
  • Rich specifications with guardrails
  • Heavy reliance on AI model capabilities
  • Technology-independent process

Prerequisites

  • OS: Linux, macOS, Windows (PowerShell supported)
  • AI Agent: Claude Code, GitHub Copilot, Gemini CLI, or Codebuddy CLI
  • Package Manager: uv
  • Python: 3.11+
  • Git: Any recent version

Installation & Setup

Initialize a New Project

# Create new project directory
uvx --from git+https://github.com/github/spec-kit.git specify init <PROJECT_NAME>

# Initialize in current directory
uvx --from git+https://github.com/github/spec-kit.git specify init .
uvx --from git+https://github.com/github/spec-kit.git specify init --here

Specify AI Agent

# Proactively set AI agent during init
uvx --from git+https://github.com/github/spec-kit.git specify init <project> --ai claude
uvx --from git+https://github.com/github/spec-kit.git specify init <project> --ai gemini
uvx --from git+https://github.com/github/spec-kit.git specify init <project> --ai copilot
uvx --from git+https://github.com/github/spec-kit.git specify init <project> --ai codebuddy

Script Type (Shell vs PowerShell)

Auto-selected by OS, or force explicitly:

# Force PowerShell (Windows)
uvx --from git+https://github.com/github/spec-kit.git specify init <project> --script ps

# Force POSIX shell (Linux/macOS)
uvx --from git+https://github.com/github/spec-kit.git specify init <project> --script sh

Skip Tool Checks

uvx --from git+https://github.com/github/spec-kit.git specify init <project> --ai claude --ignore-agent-tools

The 6-Step Spec-Driven Process

Step 1: Initialize

Run specify init to create project structure with templates.

uvx --from git+https://github.com/github/spec-kit.git specify init my-app --ai claude

Creates:

  • .speckit/ directory with configuration
  • Agent-specific templates
  • Git repository structure

Step 2: Define Constitution

Establish core rules and principles for your project.

Slash Command:

/speckit.constitution This project follows a "Library-First" approach. 
All features must be implemented as standalone libraries first. 
We use TDD strictly. We prefer functional programming patterns.

Purpose: Sets guardrails and organizational principles that all specs must follow.


Step 3: Create Specification

Describe what you want to build, not how.

Slash Command:

/speckit.specify Build an application that can help me organize my photos 
in separate photo albums. Albums are grouped by date and can be re-organized 
by dragging and dropping on the main page. Albums are never in other nested 
albums. Within each album, photos are previewed in a tile-like interface.

Best Practices:

  • Focus on user scenarios and behaviors
  • Avoid tech stack details (AI picks appropriate tech)
  • Describe UI/UX in plain language
  • Include constraints and business rules

Step 4: Refine (Clarify)

Identify and resolve ambiguities in your specification.

Slash Command:

/speckit.clarify Focus on security implications and edge cases

What it does:

  • Detects vague or ambiguous requirements
  • Asks clarifying questions
  • Suggests concrete implementations
  • Updates spec with resolved details

Step 5: Plan

Generate detailed implementation plan from specification.

Slash Command:

/speckit.plan

Output:

  • Architecture decisions
  • File structure
  • Implementation steps
  • Testing strategy
  • Dependencies to install

Step 6: Build

Execute the implementation plan.

Slash Command:

/speckit.build

Features:

  • Generates code based on spec + plan
  • Creates files incrementally
  • Runs tests as specified
  • Commits progress to Git

Context Awareness: Git Branch-Based

Spec Kit automatically detects the active feature based on your current Git branch.

Naming Convention:

001-feature-name
002-user-authentication
003-photo-album-grid

To switch between specifications:

git checkout 001-feature-name    # Work on feature 1
git checkout 002-user-auth       # Work on feature 2

Context is automatically loaded when you run Spec Kit commands.


Development Phases

Phase 1: 0-to-1 (Greenfield)

Focus: Generate from scratch

  • Start with high-level requirements
  • Generate specifications
  • Plan implementation steps
  • Build production-ready applications

Phase 2: Creative Exploration

Focus: Parallel implementations

  • Explore diverse solutions
  • Support multiple technology stacks
  • Experiment with UX patterns
  • Compare approaches

Phase 3: Iterative Enhancement (Brownfield)

Focus: Modernization

  • Add features iteratively
  • Modernize legacy systems
  • Adapt existing processes
  • Refactor with specs

All Slash Commands Reference

CommandPurposeWhen to Use
/speckit.constitutionDefine project principlesAt project start
/speckit.specifyCreate specificationFor each new feature
/speckit.clarifyResolve ambiguitiesWhen spec is vague
/speckit.planGenerate implementation planBefore coding
/speckit.buildExecute implementationAfter planning

Enterprise Features

Organizational Constraints

  • Cloud Providers: Target specific platforms (AWS, Azure, GCP)
  • Tech Stacks: Enforce approved technologies
  • Design Systems: Integrate enterprise UI libraries
  • Compliance: Meet security/regulatory requirements

Technology Independence

Spec Kit works with:

  • Any programming language
  • Any framework
  • Any architecture pattern
  • Any deployment target

Local Development (Contributing)

Clone and Setup

git clone https://github.com/github/spec-kit.git
cd spec-kit

Run CLI Directly

# Fastest feedback - no install needed
python -m src.specify_cli --help
python -m src.specify_cli init demo-project --ai claude --script sh

Editable Install

uv venv
source .venv/bin/activate  # Windows: .venv\Scripts\Activate.ps1
uv pip install -e .
specify --help

Test From Branch

# Push branch first
git push origin your-feature-branch

# Test via uvx
uvx --from git+https://github.com/github/spec-kit.git@your-feature-branch \
  specify init demo-branch-test --script ps

Best Practices

Specification Writing

✅ DO:

  • Describe user scenarios
  • Include business rules
  • Mention constraints
  • Use plain language
  • Focus on behavior, not implementation

❌ DON'T:

  • Specify tech stack (let AI choose)
  • Write implementation details
  • Use jargon without context
  • Make assumptions unstated

Example Good Spec

/speckit.specify Build a task management app where:
- Users can create projects with color-coded labels
- Tasks have priorities (High/Medium/Low) with visual indicators
- Drag-and-drop to reorder tasks within a project
- Tasks can be assigned to multiple users
- Due dates trigger notifications 24h before
- Completed tasks archive automatically after 7 days
- Mobile-responsive with touch-friendly interactions

Example Bad Spec

/speckit.specify Build a React app with Redux for state management.
Use Material-UI for components. Store data in PostgreSQL.

Troubleshooting

Command Not Found

Problem: AI agent doesn't recognize /speckit.* commands Solution: Re-run specify init in the project directory

Wrong Context Loaded

Problem: Working on wrong specification Solution: Check current branch with git branch and switch: git checkout <branch>

Script Type Issues

Problem: PowerShell scripts on macOS or vice versa Solution: Force script type: --script sh or --script ps

Agent Tool Missing

Problem: Spec Kit complains about missing AI agent tools Solution: Use --ignore-agent-tools flag during init


Workflow Examples

New Feature Workflow

# 1. Create feature branch
git checkout -b 004-dark-mode

# 2. In AI agent chat:
/speckit.specify Add dark mode toggle to the application. 
System should detect OS preference but allow manual override. 
Store preference in localStorage.

# 3. Clarify ambiguities:
/speckit.clarify Focus on accessibility (WCAG contrast)

# 4. Generate plan:
/speckit.plan

# 5. Build:
/speckit.build

# 6. Commit and PR
git add .
git commit -m "feat: add dark mode toggle"

Brownfield Enhancement

# 1. Switch to existing feature
git checkout 002-user-auth

# 2. Enhance spec:
/speckit.specify Add OAuth2 login with Google and GitHub providers

# 3. Plan the enhancement:
/speckit.plan

# 4. Build iteratively:
/speckit.build

Resources

  • Documentation: https://github.github.com/spec-kit/
  • GitHub Repo: https://github.com/github/spec-kit
  • Contributing: https://github.com/github/spec-kit/blob/main/CONTRIBUTING.md
  • Support: https://github.com/github/spec-kit/blob/main/SUPPORT.md

Key Principles Summary

  1. Intent over Implementation — Describe what, not how
  2. Specifications are Assets — Treat them as primary deliverables
  3. Multi-step Refinement — Iterate: Constitute → Specify → Clarify → Plan → Build
  4. Context-Aware — Git branches maintain feature context
  5. Technology Agnostic — Process works with any stack

_Last updated: 2026-02-28_

平台分布

OpenClaw

91.61%
按下载量换算5,503

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

未展示

权限和风险

执行命令

安装流程涉及命令执行,可能通过 openclaw skills install spec-kit 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

继续浏览同类 Skills