Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

spec-workflow-init规范工作流程初始化

Agent Skill

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

总安装

509

周安装

21

GitHub Stars

1

下载量

166
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/anyoneanderson/agent-skills --skill spec-workflow-init

简介

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

  • 它可辅助 Agent 从文档、代码库或知识库中提取匹配内容,并按相关性排序返回。
  • 通过 npx skills add 命令从指定仓库安装,具体用法需结合原始 README 进一步确认。
  • 安装前建议核实权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

spec-workflow-init — Development Workflow Generator

Generate a project-specific issue-to-pr-workflow.md through interactive dialogue. The workflow serves as a playbook for spec-implement and development agents.

Language Rules

  1. Auto-detect input language → output in the same language
  2. Japanese input → Japanese output, use references/workflow-template.ja.md
  3. English input → English output, use references/workflow-template.md
  4. Explicit override takes priority (e.g., "in English", "日本語で")

Sub-agent template selection (when generating agent definitions):

  • English → references/agents/claude/workflow-*.md
  • Japanese → references/agents/claude/workflow-*.ja.md
  • Codex templates: English → references/agents/codex/workflow-*.toml, Japanese → references/agents/codex/workflow-*.ja.toml

Execution Flow

Step 1: Initial Checks

  1. Verify Git repository: git rev-parse --is-inside-work-tree 2>/dev/null If not a Git repo, warn and skip branch detection. Continue with other checks.
  2. Check current directory: pwd ls -la
  3. Detect existing workflow file: find. -name "issue-to-pr-workflow.md" -maxdepth 3 2>/dev/null If found and --force is not set, show the existing file path and proceed to Step 7 (idempotency handling).

Step 2: Environment Detection

Run the following checks to auto-detect the project environment:

Package manager:

ls pnpm-lock.yaml yarn.lock package-lock.json bun.lockb 2>/dev/null

Container usage:

ls docker-compose.yml docker-compose.yaml Dockerfile 2>/dev/null

CI/CD service:

ls -d .github/workflows .gitlab-ci.yml .circleci 2>/dev/null

Branch information:

git branch -r 2>/dev/null | head -10

Language, framework, and scripts:

cat package.json 2>/dev/null | grep -A 50 '"scripts"'
cat package.json 2>/dev/null | grep -A 30 '"dependencies"'
ls go.mod requirements.txt pyproject.toml 2>/dev/null

Database:

ls prisma/schema.prisma 2>/dev/null
grep -l "postgres\|mysql\|mongo" docker-compose.yml 2>/dev/null

Lint tools:

ls .eslintrc* biome.json 2>/dev/null

Coding rules file:

find . -name "coding-rules.md" -maxdepth 3 2>/dev/null

Review rules file:

find . -name "review_rules.md" -maxdepth 3 2>/dev/null

cmux environment:

echo $CMUX_SOCKET_PATH

Present the detection results to the user in a summary table:

Detected project environment:
  Language/FW:       {detected}
  Package Manager:   {detected}
  Container:         {detected}
  Test:              {detected}
  CI/CD:             {detected}
  Branch:            {detected}
  Database:          {detected}
  Lint:              {detected}
  Coding Rules:      {detected or "Not found"}
  Review Rules:      {detected or "Not found"}
  cmux:              {detected or "Not available"}

Ask the user to confirm or correct the detection results before proceeding.

Step 3: Interactive Dialogue

Gather workflow configuration through AskUserQuestion rounds.

Round 1: Output Path

question: "Where to save issue-to-pr-workflow.md?" / "issue-to-pr-workflow.md の出力先は?"
header: "Output"
options:
  - "docs/issue-to-pr-workflow.md (Recommended)" / "docs ディレクトリ直下(推奨)"
  - "docs/development/issue-to-pr-workflow.md" / "docs/development 配下"

Round 2: Branch Strategy

Q1:
question: "Base branch (PR target)?" / "ベースブランチ(PRターゲット)は?"
header: "Branch"
options:
  - "develop (Recommended)" / "feature → develop → main(Git Flow)"
  - "main" / "feature → main(GitHub Flow)"
  - "trunk" / "Short-lived branches → main(Trunk-based)"

Q2:
question: "Feature branch naming convention?" / "featureブランチの命名規則は?"
header: "Naming"
options:
  - "feature/{issue}-{slug} (Recommended)" / "e.g. feature/42-add-auth"
  - "{issue}-{slug}" / "e.g. 42-add-auth"
  - "{type}/{issue}-{slug}" / "e.g. fix/42-login-bug, feat/43-dashboard"

Round 3: Quality Gates

question: "Quality gates before PR creation?" / "PR作成前の品質ゲートは?"
header: "Gates"
multiSelect: true
options:
  - "All tests must pass (Recommended)" / "テスト全パス(推奨)"
  - "Lint and type check must pass" / "Lint / Typecheckパス"
  - "Coverage threshold" / "カバレッジ基準"

Round 4: Development Style

question: "Select your development style" / "開発スタイルを選択してください"
header: "Style"
options:
  - "Implementation First (Recommended)" / "実装 → レビュー → テスト → テストレビュー → 品質ゲート → PR"
  - "TDD" / "テスト(RED) → 実装(GREEN) → リファクタ → レビュー → 品質ゲート → PR"
  - "BDD" / "E2Eシナリオ → テスト(RED) → 実装(GREEN) → レビュー → 品質ゲート → PR"

Round 5: E2E Test Level

question: "E2E test scope?" / "E2Eテストの範囲は?"
header: "E2E"
options:
  - "API level only (Recommended)" / "supertest等でリクエスト→レスポンスを検証"
  - "API + Browser E2E" / "上記 + Playwrightでクリティカルパスを検証"

Round 6: Execution Strategy

Show options based on cmux detection from Step 2.

If cmux detected (CMUX_SOCKET_PATH is set):

question: "Select your execution strategy" / "実行戦略を選択してください"
header: "Strategy"
options:
  - "Single agent" / "単独実行 — メインエージェントが全工程を順番に実行(シンプル・安全)"
  - "Multi-agent" / "マルチエージェント — 組み込みサブエージェントで役割分担"
  - "Multi-agent (cmux) (Recommended)" / "マルチエージェント(cmux)(推奨) — cmux で別ペインに各ロールを起動(進捗がリアルタイムで見える)"

If cmux NOT detected:

question: "Select your execution strategy" / "実行戦略を選択してください"
header: "Strategy"
options:
  - "Single agent (Recommended)" / "単独実行(推奨) — メインエージェントが全工程を順番に実行(シンプル・安全)"
  - "Multi-agent" / "マルチエージェント — 組み込みサブエージェントで役割分担"

Round 7: Agent Targets (only if Multi-agent or Multi-agent (cmux) selected)

Ask which agent definitions to generate. Do NOT decide targets based on .claude/ / .codex/ directory detection.

question: "Which agent definitions should be generated?" / "どのエージェント定義を生成しますか?"
header: "Agents"
options:
  - "Both Claude + Codex (Recommended)" / "Claude と Codex の両方を生成"
  - "Claude only" / "Claude のみ生成"
  - "Codex only" / "Codex のみ生成"
  - "Skip generation" / "生成しない"

Round 8: Agent AI Assignment (only if Multi-agent (cmux) selected in Round 6)

question: "Which AI to assign to each role?" / "各ロールにどのAIを割り当てますか?"
header: "AI Assignment"
options:
  - "Implement=Codex, Test=Codex, Review=Claude (Recommended)"
  - "All Claude Code" / "全て Claude Code"
  - "All Codex" / "全て Codex"

Use the selection to fill {implementer_ai}, {tester_ai}, {reviewer_ai} in the role table.

Round 8.5: Second Opinion (only if Multi-agent (cmux) selected in Round 6)

question: "Run second opinion at review gates?" / "レビューゲートでセカンドオピニオンを実施しますか?"
header: "Opinion"
options:
  - "Always (Recommended)" / "毎回実施(推奨)"
  - "On user request only" / "ユーザーが要求した場合のみ"
  - "Never" / "実施しない"

Additional Questions (project-type specific):

  • Docker project: "Run all commands inside Docker?" / "Docker内で全コマンドを実行しますか?"
  • Next.js project: "Include build check in workflow?" / "ビルド確認をワークフローに含めますか?"

Step 4: Workflow Generation

  1. Select template based on Language Rules:

- English → references/workflow-template.md - Japanese → references/workflow-template.ja.md

  1. Read the template and replace placeholders with collected values:

- {package_manager}, {container_tool}, {database}, {test_framework}, etc. - {pr_target}, {branch_naming}, {dev_style} - {test_command}, {lint_command}, {typecheck_command}, {build_command} - {e2e_test_command}, {browser_e2e_command}, {coverage_command} - {timestamp} → current date/time

  1. Select development style sections:

- Implementation First → keep {if_implementation_first}...{end_implementation_first}, remove TDD/BDD blocks - TDD → keep {if_tdd}...{end_tdd}, remove others - BDD → keep {if_bdd}...{end_bdd}, remove others

  1. Handle conditional sections:

- Browser E2E not selected → remove {if_browser_e2e}...{end_browser_e2e} blocks - Multi-agent not selected (Single agent chosen) → remove {if_multi_agent}...{end_multi_agent} blocks - If agent targets include Claude → keep {if_claude_agents}...{end_claude_agents}, otherwise remove - If agent targets include Codex → keep {if_codex_agents}...{end_codex_agents}, otherwise remove - If agent generation is skipped → keep {if_no_agent_files}...{end_no_agent_files}, otherwise remove - No typecheck command → remove {if_typecheck}...{end_typecheck} - No build command → remove {if_build}...{end_build} - review_rules.md detected → keep {if_review_rules}...{end_review_rules}, remove {if_no_review_rules}...{end_no_review_rules} - review_rules.md not detected → keep {if_no_review_rules}...{end_no_review_rules}, remove {if_review_rules}...{end_review_rules} - Multi-agent (cmux) selected → keep {if_cmux_dispatch}...{end_cmux_dispatch} and {if_second_opinion}...{end_second_opinion} - Multi-agent (cmux) not selected → remove both cmux/second-opinion blocks - Replace {review_rules_path} with detected path (or placeholder) - Replace {implementer_ai}, {tester_ai}, {reviewer_ai} with selected AI values (from Round 8). Default: claude - If AI column not applicable (no cmux dispatch), remove AI column from role table

  1. Clean up remaining placeholders and conditional markers
  2. Create output directory if needed: mkdir -p {output_directory}
  3. Write the file to the specified output path

Step 5: Idempotency Handling

If an existing workflow file is detected (from Step 1 or during generation):

  1. Without --force: Show a warning with the existing file path question: "Existing workflow found at {path}. Overwrite?" / "既存のワークフローが {path} に見つかりました。上書きしますか?" header: "Overwrite" options: - "Yes, overwrite" / "はい、上書きする" - "No, cancel" / "いいえ、キャンセル"
  2. With --force: Overwrite without confirmation

Step 6: Sub-Agent Generation

Skip this step if the user selected "Single agent" in Round 6 or selected "Skip generation" in Round 7.

Step 6a: Claude Code agents (when Round 7 selection includes Claude):

  1. Select template language based on Language Rules:

- English → references/agents/claude/workflow-*.md - Japanese → references/agents/claude/workflow-*.ja.md

  1. Read each template and replace placeholders:

- {coding_rules_path} → detected path (e.g., docs/coding-rules.md) - {workflow_path} → output path from Step 3 (e.g., docs/issue-to-pr-workflow.md) - {test_command}, {lint_command}, {typecheck_command}, {build_command} - {e2e_test_command}, {browser_e2e_command}, {coverage_command} - {dev_style} → selected development style - {branch_naming} → selected naming convention

  1. Create directory and write files: mkdir -p.claude/agents

- .claude/agents/workflow-implementer.md - .claude/agents/workflow-reviewer.md - .claude/agents/workflow-tester.md

  1. If files already exist, ask for overwrite confirmation (same as Step 5)

Step 6b: Codex agents (when Round 7 selection includes Codex):

  1. Select template language based on Language Rules:

- English → references/agents/codex/workflow-*.toml - Japanese → references/agents/codex/workflow-*.ja.toml

  1. Read each TOML template and replace placeholders in developer_instructions:

- Same variables as Claude Code agents

  1. Create directory and write files: mkdir -p.codex/agents

- .codex/agents/workflow-implementer.toml - .codex/agents/workflow-reviewer.toml - .codex/agents/workflow-tester.toml

  1. Update .codex/config.toml:

- Create file if it doesn't exist - Add or update agent sections in config.toml: [agents.workflow-implementer] config_file = "agents/workflow-implementer.toml" [agents.workflow-reviewer] config_file = "agents/workflow-reviewer.toml" [agents.workflow-tester] config_file = "agents/workflow-tester.toml" - Add [features] multi_agent = true if not present

  1. If files already exist, ask for overwrite confirmation

Step 7: AGENTS.md / CLAUDE.md Reference Update

  1. Check for convention files: ls AGENTS.md CLAUDE.md 2>/dev/null
  2. If CLAUDE.md is a symlink to AGENTS.md, update only AGENTS.md: readlink CLAUDE.md 2>/dev/null
  3. If at least one file exists, ask for confirmation: question: "Add workflow reference to AGENTS.md / CLAUDE.md?" / "AGENTS.md / CLAUDE.md にワークフローの参照を追記しますか?" header: "Update" options: - "Yes, add reference (Recommended)" / "はい、参照を追記する(推奨)" - "No, skip" / "いいえ、スキップ"
  4. If approved, append the following section (adapt language to match output): English: ## Development Workflow Follow the development workflow for Issue → Implementation → PR: - [{workflow_path}]({workflow_path}) — Development workflow generated by spec-workflow-init Japanese: ## Development Workflow 開発フロー(Issue → 実装 → PR)は以下のファイルに従ってください: - [{workflow_path}]({workflow_path}) — spec-workflow-init で生成された開発ワークフロー
  5. If neither file exists, output a warning: "Warning: Neither AGENTS.md nor CLAUDE.md found. Skipping reference update." / "警告: AGENTS.md も CLAUDE.md も見つかりません。参照追記をスキップします。"

Options

OptionDescription
--forceOverwrite existing files without confirmation

Error Handling

ErrorDetectionResponse
Not a Git repositorygit rev-parse failsWarn and skip branch detection. Continue with other checks
No package.jsonls package.json failsSkip package manager / test / lint detection. Gather via dialogue
Write permission errormkdir -p or file write failsShow error and re-ask output path via AskUserQuestion
Network error (git branch -r)Command timeout or non-zero exitSkip remote branches. Use local branches only. Gather via dialogue
Existing file conflictFile found at output pathWithout --force: show warning and ask to overwrite. With --force: overwrite

Usage Examples

# Generate workflow with dialogue
"Generate development workflow"
「開発ワークフローを生成」

# Generate with force overwrite
"Create workflow --force"
「ワークフロー生成 --force」

# After spec-rules-init
"Now create the development workflow"
「次に開発フローを作って」

Post-Completion Actions

After generating the workflow:

question: "Workflow generated. What's next?" / "ワークフローを生成しました。次のアクションは?"
options:
  - "Run spec-implement" / "spec-implement を実行する"
    description: "Start implementing with the generated workflow" / "生成したワークフローで実装を開始"
  - "Review and customize" / "レビューしてカスタマイズ"
    description: "Open the generated file and make adjustments" / "生成されたファイルを開いて調整"
  - "Done for now" / "完了"
    description: "Finish without further action" / "追加アクションなしで完了"

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.89%
按下载量换算63

Claude

27.11%
按下载量换算45

Cursor

17.94%
按下载量换算30

Gemini CLI

9.2%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills