Loading...
Loading...
Development workflow generator — Generate issue-to-pr-workflow.md for your project. Creates a project-specific development workflow through interactive dialogue, covering branch strategy, quality gates, development style, and optional sub-agent definitions. English triggers: "Generate workflow", "Create development workflow", "Setup issue-to-PR flow" 日本語トリガー: 「ワークフローを生成」「開発フローを作成」「Issue-to-PRフローを設定」
npx skill4agent add anyoneanderson/agent-skills spec-workflow-initissue-to-pr-workflow.mdreferences/workflow-template.ja.mdreferences/workflow-template.mdreferences/agents/claude/workflow-*.mdreferences/agents/claude/workflow-*.ja.mdreferences/agents/codex/workflow-*.tomlreferences/agents/codex/workflow-*.ja.tomlgit rev-parse --is-inside-work-tree 2>/dev/nullpwd
ls -lafind . -name "issue-to-pr-workflow.md" -maxdepth 3 2>/dev/null--forcels pnpm-lock.yaml yarn.lock package-lock.json bun.lockb 2>/dev/nullls docker-compose.yml docker-compose.yaml Dockerfile 2>/dev/nullls -d .github/workflows .gitlab-ci.yml .circleci 2>/dev/nullgit branch -r 2>/dev/null | head -10cat 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/nullls prisma/schema.prisma 2>/dev/null
grep -l "postgres\|mysql\|mongo" docker-compose.yml 2>/dev/nullls .eslintrc* biome.json 2>/dev/nullfind . -name "coding-rules.md" -maxdepth 3 2>/dev/nullDetected 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"}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 配下"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"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" / "カバレッジ基準"question: "Select your development style" / "開発スタイルを選択してください"
header: "Style"
options:
- "Implementation First (Recommended)" / "実装 → レビュー → テスト → テストレビュー → 品質ゲート → PR"
- "TDD" / "テスト(RED) → 実装(GREEN) → リファクタ → レビュー → 品質ゲート → PR"
- "BDD" / "E2Eシナリオ → テスト(RED) → 実装(GREEN) → レビュー → 品質ゲート → PR"question: "E2E test scope?" / "E2Eテストの範囲は?"
header: "E2E"
options:
- "API level only (Recommended)" / "supertest等でリクエスト→レスポンスを検証"
- "API + Browser E2E" / "上記 + Playwrightでクリティカルパスを検証"question: "Use parallel execution for implementation and tests?" / "実装とテストの並列実行を使いますか?"
header: "Parallel"
options:
- "Sequential (Recommended)" / "メインエージェントが全工程を順番に実行(安全・シンプル)"
- "Parallel" / "実装とテストコード生成を並行して実行(高速・要エージェント分離)".claude/.codex/question: "Which agent definitions should be generated?" / "どのエージェント定義を生成しますか?"
header: "Agents"
options:
- "Both Claude + Codex (Recommended)" / "Claude と Codex の両方を生成"
- "Claude only" / "Claude のみ生成"
- "Codex only" / "Codex のみ生成"
- "Skip generation" / "生成しない"references/workflow-template.mdreferences/workflow-template.ja.md{package_manager}{container_tool}{database}{test_framework}{pr_target}{branch_naming}{dev_style}{test_command}{lint_command}{typecheck_command}{build_command}{e2e_test_command}{browser_e2e_command}{coverage_command}{timestamp}{if_implementation_first}...{end_implementation_first}{if_tdd}...{end_tdd}{if_bdd}...{end_bdd}{if_browser_e2e}...{end_browser_e2e}{if_parallel}...{end_parallel}{if_claude_agents}...{end_claude_agents}{if_codex_agents}...{end_codex_agents}{if_no_agent_files}...{end_no_agent_files}{if_typecheck}...{end_typecheck}{if_build}...{end_build}mkdir -p {output_directory}--forcequestion: "Existing workflow found at {path}. Overwrite?" / "既存のワークフローが {path} に見つかりました。上書きしますか?"
header: "Overwrite"
options:
- "Yes, overwrite" / "はい、上書きする"
- "No, cancel" / "いいえ、キャンセル"--forcereferences/agents/claude/workflow-*.mdreferences/agents/claude/workflow-*.ja.md{coding_rules_path}docs/coding-rules.md{workflow_path}docs/issue-to-pr-workflow.md{test_command}{lint_command}{typecheck_command}{build_command}{e2e_test_command}{browser_e2e_command}{coverage_command}{dev_style}{branch_naming}mkdir -p .claude/agents.claude/agents/workflow-implementer.md.claude/agents/workflow-reviewer.md.claude/agents/workflow-tester.mdreferences/agents/codex/workflow-*.tomlreferences/agents/codex/workflow-*.ja.tomldeveloper_instructionsmkdir -p .codex/agents.codex/agents/workflow-implementer.toml.codex/agents/workflow-reviewer.toml.codex/agents/workflow-tester.toml.codex/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"[features] multi_agent = truels AGENTS.md CLAUDE.md 2>/dev/nullreadlink CLAUDE.md 2>/dev/nullquestion: "Add workflow reference to AGENTS.md / CLAUDE.md?" / "AGENTS.md / CLAUDE.md にワークフローの参照を追記しますか?"
header: "Update"
options:
- "Yes, add reference (Recommended)" / "はい、参照を追記する(推奨)"
- "No, skip" / "いいえ、スキップ"## Development Workflow
Follow the development workflow for Issue → Implementation → PR:
- [{workflow_path}]({workflow_path}) — Development workflow generated by spec-workflow-init## Development Workflow
開発フロー(Issue → 実装 → PR)は以下のファイルに従ってください:
- [{workflow_path}]({workflow_path}) — spec-workflow-init で生成された開発ワークフロー"Warning: Neither AGENTS.md nor CLAUDE.md found. Skipping reference update."
/ "警告: AGENTS.md も CLAUDE.md も見つかりません。参照追記をスキップします。"| Option | Description |
|---|---|
| Overwrite existing files without confirmation |
| Error | Detection | Response |
|---|---|---|
| Not a Git repository | | Warn and skip branch detection. Continue with other checks |
| No package.json | | Skip package manager / test / lint detection. Gather via dialogue |
| Write permission error | | Show error and re-ask output path via AskUserQuestion |
| Network error (git branch -r) | Command timeout or non-zero exit | Skip remote branches. Use local branches only. Gather via dialogue |
| Existing file conflict | File found at output path | Without |
# Generate workflow with dialogue
"Generate development workflow"
「開発ワークフローを生成」
# Generate with force overwrite
"Create workflow --force"
「ワークフロー生成 --force」
# After spec-rules-init
"Now create the development 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" / "追加アクションなしで完了"