workflow-gate
複雑な開発ワークフローにおいて、設計書や仕様書がない新規機能開発などの創造的な作業は、まずブレインストーミングに誘導し、単純な編集作業や安全なスキル利用時はゲートをスキップすることで、過剰なエスカレーションと過小なエスカレーションを防ぐSkill。
📜 元の英語説明(参考)
Use BEFORE loading heavier workflow skills (brainstorming, discuss-before-plan, writing-plans, subagent-driven-development, agentic-review-handoff, executing-plans, finishing-a-development-branch) when the route is not already obvious. A 60-90 second advisory classifier that prevents over-escalation and under-escalation. Outputs one Route, one single-token Runtime skill to load next, one optional Fallback alias for Claude/Codex compatibility, and one Execution path. Creative work (new feature / UI replicate / redesign / intentional behavior change) without a referenced design doc or spec MUST route to Brainstorm, even when the user names writing-plans or asks which workflow to use. Skip the gate ONLY for single-line read-only lookups, pure-formatting edits with no behavior change, or an explicitly named downstream skill that is already safe and non-destructive.
🇯🇵 日本人クリエイター向け解説
複雑な開発ワークフローにおいて、設計書や仕様書がない新規機能開発などの創造的な作業は、まずブレインストーミングに誘導し、単純な編集作業や安全なスキル利用時はゲートをスキップすることで、過剰なエスカレーションと過小なエスカレーションを防ぐSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o workflow-gate.zip https://jpskill.com/download/9723.zip && unzip -o workflow-gate.zip && rm workflow-gate.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/9723.zip -OutFile "$d\workflow-gate.zip"; Expand-Archive "$d\workflow-gate.zip" -DestinationPath $d -Force; ri "$d\workflow-gate.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
workflow-gate.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
workflow-gateフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
ワークフローゲート
反射的に高速なルーターです。過剰なエスカレーションは明白な作業に何分も費やし、過小なエスカレーションは手戻りや停止を引き起こします。
必須の事前ルーティングオーバーライド
高速スキップチェックリスト、チートシート、またはユーザー指定のスキルルールを確認する前に、以下のルール#1とルール#1.5を確認してください。いずれかが発動した場合、そこで停止します。完全な破壊的/創造的ゲートの定義は、ずれを防ぐために、優先順位ルールセクションにのみ存在します。
高速スキップチェックリスト
以下のすべてが当てはまる場合にのみ、ブロックの発行をスキップできます。
- リクエストが1つの狭いスキップケースに一致する場合:
- 単一行の読み取り専用ルックアップ
- 動作変更のない純粋なフォーマット編集
- ユーザーが正確なダウンストリームスキルを指定し、それが安価で安全、非破壊的であり、ミスマッチではない。
- 破壊的なオーバーライド(ルール#1、以下に標準を記載)が発動しない。破壊的な影響を安価に排除できない場合は、ゲートをスキップしないでください。
- 回答が一行の文章に収まる。
それ以外の場合は、ブロックを発行します。ユーザーがリクエストと明らかにミスマッチするスキルを指定した場合(例:「このタイプミス修正にbrainstormingを使用する」)、スキップパスを使用しないでください。ブロックを発行し、適切なRouteを設定し、Assumptionsでミスマッチをフラグします。
チートシート - 最初にスキャンし、早期に終了する
| Route | Trigger keyword | Default Runtime skill | Default Execution path |
|---|---|---|---|
| Direct | 読み取り専用ルックアップ、書き込みなし | none |
direct local work |
| Light | 小さな書き込み / デバッグ / ドキュメント / 出荷チェック | none (または以下のルールによる systematic-debugging / test-driven-development / verification-before-completion) |
direct local work |
| Brainstorm | 創造的な作業(新機能 / 新しい画面 / 新しいコンポーネント / 复刻 / リデザイン / UIの構成 / 意図的な動作変更)— scope=few-files かつ decisions=resolved の場合でも発動します。また、「options / tradeoffs / first principles」のフレーミング。既存のデザインドキュメント/仕様が参照されている場合にのみスキップします(ルール#1.5の例外を参照)。 | brainstorming |
n/a |
| Discuss | 「Stripe vs X / decide before plan」 | discuss-before-plan |
n/a |
| Plan | RFCの準備完了、≤ 2つの境界コンテキスト | writing-plans |
executing-plans |
| Full | ≥ 3つの境界コンテキスト AND 並列化可能 | writing-plans |
subagent-driven-development |
| Review-Handoff | 「fresh eyes / fix-then-re-review」 | agentic-review-handoff |
n/a |
1行が適合する場合 → ブロックを発行します。複数発動する場合 → 以下の優先順位を使用します。Routeの調整(Upgrade / Downgrade / Re-gate / LightのExecution-pathアップグレード)は references/route-adjustments.md にあります。チートシートが適合しない場合、またはデバッグ/出荷/動作回帰シグナルを持つLightルートを発行する前に参照してください。スーパーパワー、discuss-before-plan、および addyosmani/agent-skills の間のエコシステム/フェーズ境界が必要な場合は、references/workflow-systems.md を使用してください。
優先順位ルール - 前のものが後のものをオーバーライドする
destructive=yes(テーブルの削除、強制プッシュ、本番データの削除、スキーマの破壊、パブリックAPIの削除)→ 最小 Discuss。ユーザー指定のスキルや高速スキップを含む、以下のすべてのルールをオーバーライドします。 1.5. 創造的な作業のハードゲート — 新しい機能 / 画面 / コンポーネント、UIの複製 / 复刻、リデザイン、構成されたUI、または意図的な動作変更。- 明示的なデザインドキュメント/仕様の参照がない → 直ちに Brainstorm。ルール#2に進まず、Planクラスのスキル名を尊重せず、ディスカバリーファーストのPlanを作成しないでください。
- バグの修正 / 失敗するテスト / ビルドエラー / 既存の動作の回帰は創造的な作業ではありません。ルール#3に処理させてください。
- Brainstormをスキップする仕様/デザインの参照:
docs/superpowers/specs/*-design.md、docs/ideas/*.md、docs/rfcs/*.md、docs/forms/*-spec.md、designs/**/*.md、または明示的な仕様/デザイン名またはパス。Assumptionsに参照を記録してください。 - 仕様/デザインの参照後、要求された次のアクションによってルーティングします:タスクの分解には Plan、直接的な少数のファイルの実装には Light +
test-driven-development、3つ以上の並列な境界コンテキストには Full。
- ユーザーがダウンストリームスキルを指定した場合(およびルール#1 / #1.5が発動しなかった場合)→ それを尊重します。明確なミスマッチのみをフラグします。
- バグ / 失敗するテスト / ビルド / CIの失敗 / 予期しない動作 / パフォーマンスの兆候 → Light +
Runtime skill: systematic-debugging+Execution path: systematic-debugging。スコープがマルチモジュールの場合、またはrisk=high(支払い / 認証 / 本番データ)の場合は Discuss にアップグレードします。 - 「完了? / コミット / 出荷の準備はできましたか?」 → Light +
Runtime skill: verification-before-completion+Fallback alias: superpowers:verification-before-completion+Execution path: n/a(ブランチ統合の場合はfinishing-a-development-branch)。ユーザーが明示的にペルソナファンアウト / セキュリティ + テスト + レビューカバレッジを要求した場合でも、現時点ではこのルートを使用しますが、Assumptionsで不足しているファンアウトブリッジをフラグします(references/workflow-systems.mdを参照)。 - クロスエージェント / fix-then-re-review → Review-Handoff。#3/#4/#6/#7/#9と相互に排他的です。それらのいずれかを置き換えます。ルール#1(破壊的)は、タイブレーカーごとに引き続きオーバーライドします。
- 「Options / tradeoffs / first principles」 → Brainstorm。
- 決定が未解決(プロバイダー / アーキテクチャ / データモデル / API) → Discuss。
- 矛盾するシグナル(例:「quick fix」+「production payments」)→ よりリスクの高いルート。
Assumptionsに矛盾を記録します。 - それ以外の場合 → チートシートからスコープに基づいて選択します。
タイブレーカー - 明らかでないペアのみ
ルール#1(破壊的)は標準的なオーバーライドであり、競合する場合は他のすべてのルールに優先します。以下の行は、残りの明らかでないペアをカバーしています。
| 両方が発動した場合 | 選択 | 理由 |
|---|---|---|
| ルール#3(バグ)とルール#4(出荷) | 最初にルール#3。バグがクローズした後に出荷が再発動します。 | 既知の失敗する変更を出荷しないでください。 |
| ルール#6(Brainstorm)とルール#7(Discuss) | オプションが不明な場合はBrainstorm。オプションが存在し、ボトルネックが決定である場合はDiscuss。 | スペースを広げるか狭めるか。 |
ルール#2(ユーザーが writing-plans を指定)とルール#1.5(創造的な作業、仕様なし) |
Brainstorm。指定されたスキルをm |
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Workflow Gate
A reflex-fast router. Over-escalating burns minutes on obvious work; under-escalating creates rework or outages.
Mandatory pre-routing overrides
Before the fast-skip checklist, cheat card, or user-named-skill rule, check Rule #1 and Rule #1.5 below. If either fires, stop there. The full destructive / creative gate definitions live only in the Precedence rules section to avoid drift.
Fast-skip checklist
You may skip emitting the block only if all of these hold:
- The request matches one narrow skip case:
- single-line read-only lookup;
- pure-formatting edit with no behavior change;
- user named the exact downstream skill, and it is cheaply safe, non-destructive, and not mismatched.
- The destructive override (Rule #1, canonical below) does not fire. If you cannot cheaply rule out destructive impact, do not skip the gate.
- The answer fits in one line of prose.
For anything else, emit the block. If the user named a skill that clearly mismatches the request (e.g. "use brainstorming for this typo fix"), do NOT take the skip path — emit the block, set the appropriate Route, and flag the mismatch in Assumptions.
Cheat card — scan first, exit early
| Route | Trigger keyword | Default Runtime skill | Default Execution path |
|---|---|---|---|
| Direct | read-only lookup, no write | none |
direct local work |
| Light | small write / debug / docs / ship-check | none (or systematic-debugging / test-driven-development / verification-before-completion via the rules below) |
direct local work |
| Brainstorm | creative work (new feature / new screen / new component / 复刻 / redesign / compose UI / intentional behavior change) — fires even when scope=few-files and decisions=resolved. Also "options / tradeoffs / first principles" framing. Skip only when an existing design doc / spec is referenced (see Rule #1.5 exception). | brainstorming |
n/a |
| Discuss | "Stripe vs X / decide before plan" | discuss-before-plan |
n/a |
| Plan | RFC ready, ≤ 2 bounded contexts | writing-plans |
executing-plans |
| Full | ≥ 3 bounded contexts AND parallelizable | writing-plans |
subagent-driven-development |
| Review-Handoff | "fresh eyes / fix-then-re-review" | agentic-review-handoff |
n/a |
One row fits → emit the block. Multiple fire → use precedence below. Route adjustments (Upgrade / Downgrade / Re-gate / Light's Execution-path upgrades) live in references/route-adjustments.md — consult when the cheat card doesn't fit, or before emitting a Light route with debug / ship / behavior-regression signals. Use references/workflow-systems.md when you need the ecosystem / phase boundary between superpowers, discuss-before-plan, and addyosmani/agent-skills.
Precedence rules — earlier overrides later
destructive=yes(drop table, force push, delete prod data, schema break, public API removal) → minimum Discuss. Overrides every rule below, including a user-named skill and Fast-skip. 1.5. Creative-work HARD-GATE — new feature / screen / component, UI replication / 复刻, redesign, composed UI, or intentional behavior change.- No explicit design doc / spec reference → Brainstorm immediately. Do not continue to Rule #2, do not respect Plan-class skill names, and do not produce a discovery-first Plan.
- Bug repair / failing test / build error / regression on existing behavior is not creative work; let Rule #3 handle it.
- Spec/design references that skip Brainstorm:
docs/superpowers/specs/*-design.md,docs/ideas/*.md,docs/rfcs/*.md,docs/forms/*-spec.md,designs/**/*.md, or an explicit spec/design name or path. Note the reference inAssumptions. - After a spec/design reference, route by requested next action: Plan for task breakdown, Light +
test-driven-developmentfor direct few-file implementation, Full for 3+ parallel bounded contexts.
- User named a downstream skill (and Rules #1 / #1.5 didn't fire) → respect it; only flag a clear mismatch.
- Bug / failing test / build / CI failure / unexpected behavior / perf symptom → Light +
Runtime skill: systematic-debugging+Execution path: systematic-debugging. Upgrade to Discuss if scope is multi-module ORrisk=high(payments / auth / production data). - "Done? / ready to commit / ship this" → Light +
Runtime skill: verification-before-completion+Fallback alias: superpowers:verification-before-completion+Execution path: n/a(thenfinishing-a-development-branchif branch integration). If the user explicitly asks for persona fan-out / security + test + review coverage, still use this route for now but flag the missing fan-out bridge inAssumptions(seereferences/workflow-systems.md). - Cross-agent / fix-then-re-review → Review-Handoff. Mutually exclusive with #3/#4/#6/#7/#9 — replaces any of them. Rule #1 (destructive) still overrides per the tiebreaker.
- "Options / tradeoffs / first principles" → Brainstorm.
- Decisions unresolved (provider / architecture / data model / API) → Discuss.
- Contradictory signals (e.g. "quick fix" + "production payments") → higher-risk route; record contradiction in
Assumptions. - Otherwise → scope-based pick from the cheat card.
Tiebreakers — only the non-obvious pairs
Rule #1 (destructive) is the canonical override and wins against every other rule when in conflict; the rows below cover the remaining non-obvious pairs.
| When both fire | Pick | Why |
|---|---|---|
| Rule #3 (bug) and Rule #4 (ship) | Rule #3 first; ship re-fires after the bug closes. | Don't ship a known-failing change. |
| Rule #6 (Brainstorm) and Rule #7 (Discuss) | Brainstorm if options unknown; Discuss if options exist and decisions are the bottleneck. | Widening vs narrowing the space. |
Rule #2 (user named writing-plans) and Rule #1.5 (creative work, no spec) |
Brainstorm. Record the named skill as a mismatch in Assumptions. |
A Plan-class skill cannot substitute for the missing design gate. |
| Rule #1.5 exception (spec referenced) and Light's behavior-risk upgrade | Light + test-driven-development when the user says "directly implement" and the change is a few files. |
The spec only skips Brainstorm; it does not force a planning ceremony for a small implementation. |
| Rule #1 (destructive) and any of #2 / #5 (user-named, Review-Handoff) | Rule #1 always. Record the user's named skill or review intent in Assumptions; the review or named load happens after the destructive issue is resolved through Discuss. |
Outage / data loss can't be undone by reviewing or naming around it. |
Authority boundary: this gate is advisory, not a runtime permission override. Higher-priority system/user instructions and downstream skills with true MUST triggers still apply. If a downstream MUST skill is required by the selected Route or by runtime trigger rules, name it as the Runtime skill and load it next instead of treating the gate result as permission to bypass it.
Budget
- Reading this doc once should take ≤ 30 seconds; producing the block another ≤ 60. The gate must feel like a reflex.
- Decide from the prompt alone; glance at one cheap repo signal only if it would flip the Route.
- Do not load another skill while deciding the Route; after emitting the block, load the selected Runtime skill if it is not
none. - Output cap: ≤ 9 lines for Direct, ≤ 13 lines otherwise.
- Ask at most one blocking question. If the user said "don't ask", commit to the most likely Route and put the unverified premise in
Assumptions.
Output format
Workflow Gate
- Route: <Direct | Light | Brainstorm | Discuss | Plan | Full | Review-Handoff>
- Runtime skill: <none | bare-slug>
- Fallback alias: <none | superpowers:bare-slug>
- Execution path: <direct local work | systematic-debugging | test-driven-development | executing-plans | subagent-driven-development | n/a>
- Goal: <one sentence>
- Signals: scope=<single-file | few-files | multi-module>; risk=<low | medium | high>; destructive=<no | yes>; decisions=<resolved | unresolved>; user-intent=<ideate | decide | plan | implement | debug | review | ship>
- Assumptions: <none | explicit unverified premises>
- Next: <what you will do immediately after this block>
Route and Runtime skill lead because every downstream reader acts on them. Runtime skill is the single skill to load next and must stay one bare token (none or one slug); Fallback alias is metadata for runtimes that cannot resolve that bare token. Execution path is the implementation pattern once code is being written (n/a when no code yet). They may match for skills that are both the workflow and the implementation pattern, such as systematic-debugging and test-driven-development. risk and destructive are separate enums because they answer different questions: blast-radius vs reversibility.
Skill name resolution. Most skills resolve as bare slugs in both Codex (~/.agents/skills/) and Claude Code (~/.claude/skills/ + project mirror). Four skills are intentionally not mirrored to ~/.claude/skills/ because they live under the superpowers: plugin namespace. For those, keep Runtime skill as the bare slug and put the plugin name in Fallback alias. Codex should load Runtime skill; Claude Code should try Runtime skill first and, if it is unavailable, load Fallback alias.
Resolution-failure fallback. If neither Runtime skill nor Fallback alias resolves in the current runtime, do NOT proceed with the emitted Route. Surface the load error to the user with the attempted slug, then re-gate by downgrading to the smallest safe Route that doesn't require the missing skill (typically Light + direct local work, or Discuss if the original task was non-trivial) and emit a fresh block. Stale routing into a non-existent skill silently breaks the downstream workflow.
| Bare slug | Plugin alias | Emit fields |
|---|---|---|
brainstorming |
superpowers:brainstorming |
Runtime skill: brainstorming + Fallback alias: superpowers:brainstorming |
verification-before-completion |
superpowers:verification-before-completion |
Runtime skill: verification-before-completion + Fallback alias: superpowers:verification-before-completion |
test-driven-development |
superpowers:test-driven-development |
Runtime skill: test-driven-development + Fallback alias: superpowers:test-driven-development |
receiving-code-review |
superpowers:receiving-code-review |
Runtime skill: receiving-code-review + Fallback alias: superpowers:receiving-code-review |
All other skills (discuss-before-plan, agentic-review-handoff, writing-plans, executing-plans, subagent-driven-development, systematic-debugging, finishing-a-development-branch) are emitted as bare slugs with Fallback alias: none — they exist as bare entries in both runtimes.
Guardrails
- Smallest Route that still protects correctness.
- Route first, then load only the one Runtime skill you picked; use Fallback alias only if the current runtime cannot resolve that bare slug.
- At most one blocking question.
- Never create scripts, evals, references, or persistent artifacts from this skill alone — that belongs to the workflow that runs next.
Worked output blocks (one per Route + destructive, contradictory-signals, re-gate, user-named-mismatch, "don't ask") live in references/examples.md. Mirror the closest match.