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

create-specs创建规格

Agent Skill

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

总安装

461

周安装

19

GitHub Stars

1

下载量

150
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/jschulte/claude-plugins --skill create-specs

简介

create-specs 用于基于 GitHub Spec Kit 结构生成详细功能规格文档,支持不同详略级别。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 等宿主环境,适合需要系统化需求拆解的项目。
  • 输出 .specify/specs/NNN-feature-name/spec.md 文件,集成到团队协作流程中。
  • 安装前请确认权限范围、维护状态及是否会触发文档生成或本地文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Create Specifications (GitHub Spec Kit Integration)

Gear 3 of 6 in the Reverse Engineering to Spec-Driven Development process.

Estimated Time: 30 minutes (specs only) to 90 minutes (specs + plans + tasks) Prerequisites: Gear 2 completed (docs/reverse-engineering/ exists with 11 files) Output: .specify/ directory with GitHub Spec Kit structure


Thoroughness Options

Gear 3 generates different levels of detail based on configuration set in Gear 1:

Option 1: Specs Only (30 min)

  • .specify/specs/NNN-feature-name/spec.md for all features
  • Constitution and folder structure
  • Ready for manual planning with /speckit.plan

Option 2: Specs + Plans (45-60 min)

  • Everything from Option 1
  • Auto-generated plan.md for PARTIAL/MISSING features
  • Ready for manual task breakdown with /speckit.tasks

Option 3: Specs + Plans + Tasks (90-120 min)

  • Everything from Option 2
  • Auto-generated tasks.md (300-500 lines each)
  • Complete roadmap ready for immediate implementation

Configuration is set during Gear 1 (Analyze) via initial questionnaire, stored in .stackshift-state.json.


Step 1: Load Configuration

Verify the state file exists and load execution parameters.

# Guard: state file must exist
if [ ! -f .stackshift-state.json ]; then
  echo "ERROR: .stackshift-state.json not found. Run Gear 1 (Analyze) first."
  exit 1
fi

# Load configuration
THOROUGHNESS=$(cat .stackshift-state.json | jq -r '.config.gear3_thoroughness // "specs"')
ROUTE=$(cat .stackshift-state.json | jq -r '.route // .path')
SPEC_OUTPUT=$(cat .stackshift-state.json | jq -r '.config.spec_output_location // "."')

echo "Route: $ROUTE"
echo "Spec output: $SPEC_OUTPUT"
echo "Thoroughness: $THOROUGHNESS"

# Determine execution flags
case "$THOROUGHNESS" in
  "specs")
    echo "Will generate: Specs only"
    GENERATE_PLANS=false
    GENERATE_TASKS=false
    ;;
  "specs+plans")
    echo "Will generate: Specs + Plans"
    GENERATE_PLANS=true
    GENERATE_TASKS=false
    ;;
  "specs+plans+tasks")
    echo "Will generate: Specs + Plans + Tasks (complete roadmap)"
    GENERATE_PLANS=true
    GENERATE_TASKS=true
    ;;
  *)
    echo "Unknown thoroughness: $THOROUGHNESS, defaulting to specs only"
    GENERATE_PLANS=false
    GENERATE_TASKS=false
    ;;
esac

# If custom output location, create .specify directory there
if [ "$SPEC_OUTPUT" != "." ]; then
  echo "Creating .specify/ structure at custom location: $SPEC_OUTPUT"
  mkdir -p "$SPEC_OUTPUT/.specify/specs"
  mkdir -p "$SPEC_OUTPUT/.specify/memory"
  mkdir -p "$SPEC_OUTPUT/.specify/templates"
  mkdir -p "$SPEC_OUTPUT/.specify/scripts"
fi

Where specs are written:

RouteConfigSpecs Written To
Greenfieldspec_output_location set{spec_output_location}/.specify/specs/
GreenfieldNot set (default)./.specify/specs/ (current repo)
BrownfieldAlways current./.specify/specs/ (current repo)

Log: "PROGRESS: Configuration loaded. Route=$ROUTE, Thoroughness=$THOROUGHNESS."


Step 2: Install GitHub Spec Kit Scripts

Install prerequisite scripts needed by /speckit.* commands downstream.

if [ -f ~/git/stackshift/scripts/install-speckit-scripts.sh ]; then
  ~/git/stackshift/scripts/install-speckit-scripts.sh .
elif [ -f ~/stackshift/scripts/install-speckit-scripts.sh ]; then
  ~/stackshift/scripts/install-speckit-scripts.sh .
else
  mkdir -p .specify/scripts/bash
  BASE_URL="https://raw.githubusercontent.com/github/spec-kit/main/scripts"
  curl -sSLf "$BASE_URL/bash/check-prerequisites.sh" -o .specify/scripts/bash/check-prerequisites.sh
  curl -sSLf "$BASE_URL/bash/setup-plan.sh" -o .specify/scripts/bash/setup-plan.sh
  curl -sSLf "$BASE_URL/bash/create-new-feature.sh" -o .specify/scripts/bash/create-new-feature.sh
  curl -sSLf "$BASE_URL/bash/update-agent-context.sh" -o .specify/scripts/bash/update-agent-context.sh
  curl -sSLf "$BASE_URL/bash/common.sh" -o .specify/scripts/bash/common.sh
  chmod +x .specify/scripts/bash/*.sh
fi

Verify: confirm .specify/scripts/bash/check-prerequisites.sh exists. Without these scripts, Gear 4 (Gap Analysis) will fail when running /speckit.analyze.

Log: "PROGRESS: Spec Kit scripts installed."


Step 3: Generate Specifications (Automated Path)

Execute the automated reconciliation prompt to generate all specs with 100% feature coverage.

cat web/reconcile-specs.md

Use the output of this prompt to:

  1. Parse docs/reverse-engineering/functional-specification.md
  2. Extract EVERY feature (complete, partial, missing)
  3. Generate .specify/memory/constitution.md
  4. Create .specify/specs/NNN-feature-name/spec.md for ALL features
  5. Create plan.md for PARTIAL/MISSING features

Checkpoint: Verify Automated Path Succeeded

After running the reconciliation prompt, verify ALL of these:

# Check 1: Constitution exists
test -f .specify/memory/constitution.md && echo "OK: constitution.md exists" || echo "FAIL: constitution.md missing"

# Check 2: At least one spec exists
SPEC_COUNT=$(find .specify/specs -name "spec.md" -type f 2>/dev/null | wc -l)
echo "Spec count: $SPEC_COUNT"
if [ "$SPEC_COUNT" -eq 0 ]; then
  echo "FAIL: No specs generated"
fi

IF both checks pass: Log "PROGRESS: Automated spec generation succeeded. $SPEC_COUNT specs created." Continue to Step 4.

IF either check fails: Execute the manual fallback in operations/manual-spec-generation.md. Read that file and follow its Fallback Steps 1-5. Then continue to Step 4.


Step 4: Generate Plans (Thoroughness Level 2+)

IF GENERATE_PLANS is false: Skip this step. Log "PROGRESS: Plan generation skipped (thoroughness=specs)."

IF GENERATE_PLANS is true: Read and execute operations/plan-generation.md. This dispatches parallel subagents to generate plan.md for every PARTIAL/MISSING feature.

Checkpoint: Verify Plan Coverage

INCOMPLETE=$(grep -rl "PARTIAL\|MISSING" .specify/specs/*/spec.md 2>/dev/null | wc -l)
PLANS=$(find .specify/specs -name "plan.md" -type f 2>/dev/null | wc -l)
echo "Incomplete features: $INCOMPLETE, Plans generated: $PLANS"

Confirm plan count matches incomplete feature count. Report any gaps.

Log: "PROGRESS: Plan generation complete. $PLANS plans for $INCOMPLETE incomplete features."


Step 5: Generate Tasks (Thoroughness Level 3 Only)

IF GENERATE_TASKS is false: Skip this step. Log "PROGRESS: Task generation skipped (thoroughness does not include tasks)."

IF GENERATE_TASKS is true: Read and execute operations/task-generation.md. This dispatches parallel subagents to generate comprehensive tasks.md for every planned feature.

Checkpoint: Verify Task Quality

TASK_COUNT=$(find .specify/specs -name "tasks.md" -type f 2>/dev/null | wc -l)
echo "Task files generated: $TASK_COUNT"

Confirm task count matches plan count. Flag any tasks.md under 200 lines.

Log: "PROGRESS: Task generation complete. $TASK_COUNT task files generated."


Step 6: Copy to Output Location (Greenfield Only)

IF spec_output_location is "." (default): Skip this step.

IF spec_output_location is a different path: Copy the generated .specify/ directory to the target location.

if [ "$SPEC_OUTPUT" != "." ]; then
  cp -r .specify/* "$SPEC_OUTPUT/.specify/"
  echo "Copied .specify/ to $SPEC_OUTPUT/.specify/"
fi

Verify: confirm $SPEC_OUTPUT/.specify/memory/constitution.md exists at the target.

Log: "PROGRESS: Specs copied to $SPEC_OUTPUT."


Step 7: Final Verification

Run all success criteria checks for the configured thoroughness level.

All Levels:

  • .specify/ directory exists
  • .specify/memory/constitution.md exists and is non-empty
  • .specify/specs/NNN-feature-name/ directories exist for ALL features
  • Each feature has spec.md with status markers (COMPLETE/PARTIAL/MISSING)
  • .specify/scripts/bash/check-prerequisites.sh exists

Thoroughness Level 2+ (Specs + Plans):

  • Every PARTIAL/MISSING feature has plan.md
  • 100% plan coverage for incomplete features

Thoroughness Level 3 (Specs + Plans + Tasks):

  • Every planned feature has tasks.md
  • Each tasks.md is 200+ lines

Report a summary:

COMPLETE: Gear 3 finished.
- Constitution: created
- Specs: [N] generated (100% coverage)
- Plans: [N] generated (or "skipped")
- Tasks: [N] generated (or "skipped")
- Output location: [path]

Output Structure

After this skill completes:

.specify/
├── memory/
│   └── constitution.md                    # Project principles
├── templates/
├── scripts/
│   └── bash/                              # Spec Kit automation scripts
└── specs/
    ├── 001-feature-name/
    │   ├── spec.md                        # Feature specification
    │   ├── plan.md                        # Implementation plan (level 2+)
    │   └── tasks.md                       # Task breakdown (level 3)
    └── 002-another-feature/
        └── ...

docs/reverse-engineering/                  # Kept as reference
├── functional-specification.md
├── data-architecture.md
└── ...

Error Recovery

ErrorRecovery
.stackshift-state.json missingStop. Instruct user to run Gear 1 first.
web/reconcile-specs.md not foundUse manual fallback in operations/manual-spec-generation.md.
Automated spec generation produces no outputUse manual fallback in operations/manual-spec-generation.md.
Subagent task fails during plan/task generationRe-run the failed subagent. If it fails again, generate that plan/task inline.
spec_output_location directory does not existCreate it with mkdir -p.
Spec Kit scripts download fails (curl errors)Warn user. Gear 4 will need scripts installed manually.

Configuration Reference

In.stackshift-state.json:

{
  "route": "brownfield",
  "config": {
    "gear3_thoroughness": "specs+plans+tasks",
    "spec_output_location": ".",
    "plan_parallel_limit": 5,
    "task_parallel_limit": 3
  }
}

Next Step

Proceed to Gear 4: Gap Analysis -- use /speckit.analyze to identify inconsistencies and the gap-analysis skill to create a prioritized implementation plan.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

29.34%
按下载量换算44

OpenCode

22.86%
按下载量换算34

Codex

19.03%
按下载量换算29

github-copilot

11.73%
按下载量换算18

Antigravity

7.39%
按下载量换算11

Gemini CLI

3.16%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills