Communitygithub.com

動的ワークフローモード

タスクローカルハーネス、評価ゲート、再利用可能なスキル抽出を設計するためのスキルです。Claude動的ワークフローモードやその他の適応型エージェントハーネスで利用します。タスクローカルハーネスを構築するとき、評価ゲートを追加するとき、またはアドホックな作業から再利用可能なスキルを抽出するときに使用します。

動的ワークフローモード とは?

このスキルは、コーディングエージェントが静的なコマンドフローに従うだけでなく、タスクローカルハーネスを生成または適応できる場合に使用します。目的は、動的ワークフローモードを規律あるシステムに変えることです。つまり、1回限りの作業には一時的なハーネスを、繰り返し行う作業には共有スキル抽出を、チーム向けには観測可能なコントロールペインチェックポイントを使用します。このスキルは、カスタムループ、評価機能、クローラー、フィクスチャジェネレーター、ウォッチャー、ローカルダッシュボードを構築する場合や、複数のエージェントが同じ反復可能なプロセスを必要とする場合に特に役立ちます。Co re Contractでは、ハーネスが手動で同じ手順を実行するよりも安価で安全な場合にのみ、タスクローカルハーネスを生成すべきであると定めています。ハーネスには、目的、入力、出力、評価、ハンドオフの5つの要素が必要です。また、ハーネスを共有スキルに昇格させるための条件、コントロールペインチェックポイントの記録方法、タスク固有の評価ゲートの選択基準も定義されています。このスキルは、Claude Code、Cursor、Codexなどのあらゆる適応型エージェントハーネスを対象としており、開発者が動的ワークフローを効果的に管理・拡張するための実用的なフレームワークを提供します。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/affaan-m/everything-claude-code/tree/main/skills/dynamic-workflow-mode

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

動的ワークフローモード は何をしますか?

このスキルは、コーディングエージェントが静的なコマンドフローに従うだけでなく、タスクローカルハーネスを生成または適応できる場合に使用します。目標は、動的ワークフローモードを規律あるシステムに変えることです。つまり、1回限りの作業のための一時的なハーネス、繰り返し行う作業のための共有スキル抽出、チーム向けの観測可能なコントロールペインチェックポイントです。

アクティブ化のタイミング

  • ユーザーが動的ワークフロー、カスタムハーネス、ハーネス単位タスク、適応型ワークフロー、またはClaude Code動的ワークフローモードについて言及した場合。
  • タスクにカスタムループ、評価機能、クローラー、フィクスチャジェネレーター、ウォッチャー、またはローカルダッシュボードが必要な場合。
  • 複数のエージェントが同じ反復可能なプロセスを必要としているが、そのプロセスがまだ共有スキルとしてキャプチャされていない場合。
  • ワークフローに、耐久性のあるハンドオフ成果物、評価証拠、またはマージ前のオペレーター承認が必要な場合。

コアコントラクト

動的ワークフローモードで生成されるタスクローカルハーネスは、手動で同じ手順を実行するよりも安価で安全な場合にのみ使用する必要があります。ハーネスには以下が必要です。

  • 目的:ハーネスが担当する成果と、明示的に担当しない成果。
  • 入力:ファイル、URL、プロンプト、データソース、認証情報ポリシー、ユーザー提供の制約。
  • 出力:コミット、レポート、スクリーンショット、ステータスファイル、またはコントロールペインスナップショット。
  • 評価:タスクに関連付けられた、少なくとも1つの合格/不合格チェック(単に「実行された」だけでは不十分)。
  • ハンドオフ:次のオペレーターに何が起こったか、何がブロックされているか、どのように再開するかを伝える短い成果物。

動的ハーネス意思決定ツリー

  1. 1回限りのタスク:インラインで処理します。ハーネスを発明しないでください。
  2. 入力が変化する繰り返しタスク:タスクローカルハーネスを作成し、一時的な領域またはプロジェクトローカルな作業領域に保持します。
  3. チームメイトやリポジトリ間で繰り返されるタスク:パターンを共有スキルに抽出します。
  4. 外部状態、キューイング、または承認が必要なタスク:自動化を追加する前に、コントロールペインの可視性を追加します。
  5. 安全リスクのあるタスク:自動実行の前に、評価ゲートと人間によるマージゲートを追加します。

タスクローカルハーネステンプレート

コードを書く前に、次の構造を使用します。

# 動的ワークフローハーネス

目的:
- 出荷するもの:
- 出荷しないもの:

入力:
- リポジトリまたはワークスペース:
- 外部システム:
- 認証情報ポリシー:

ループ:
1. 現在の状態を発見する。
2. 最小限の有用な成果物を生成または更新する。
3. 評価チェックを実行する。
4. ステータスとハンドオフを記録する。
5. ゲートの失敗、不明確な所有権、または安全でない外部アクションで停止する。

評価:
- コマンド:
- 期待される合格シグナル:
- 失敗時の所有者:

ハンドオフ:
- ステータス:
- 証拠:
- 次のアクション:

共有スキル抽出

タスクローカルハーネスを共有スキルに昇格させるのは、以下の条件のうち少なくとも2つが真の場合のみです。

  • 同じワークフローが複数のセッション、リポジトリ、チーム、または起動に現れる。
  • ワークフローに、特定の言語、ツール、または安全シーケンスが必要である。
  • オペレーターがゲートをスキップしたりコンテキストを失ったりするために、障害が繰り返し発生する。
  • ワークフローに安定した入出力契約がある。
  • ワークフローがコントロールペイン、ステータスボード、またはチームハンドオフの恩恵を受ける。

抽出するときは、まず skills/<name>/SKILL.md にスキルを記述します。従来のスラッシュエントリサーフェスがまだ必要な場合にのみ、コマンドシムを追加します。

コントロールペインチェックポイント

動的ワークフローモードは、状態を公開することでチームが使用可能になります。タスクが複数のセッションにまたがる場合は、常に次のチェックポイントを記録します。

  • 計画:目的、所有者、受け入れ基準、リスクのある外部システム。
  • キュー:作業項目、割り当てられたエージェントロール、ブランチ/ワークツリー、依存関係エッジ。
  • 実行:アクティブなハーネス、現在のループステップ、最近の評価結果、利用可能な場合はトークン/コストシグナル。
  • ゲート:テスト結果、ブラウザスクリーンショット、セキュリティレビュー、マージ準備状態。
  • ハンドオフ:完了したこと、失敗したこと、人間の判断が必要なこと。

リポジトリでECC2状態が有効になっている場合は、追跡されていないメモを散在させる代わりに、ECCコントロールペインまたは状態ストアバックアップのスクリプトを介してチェックポイントを追加または読み取ることを優先します。

評価ゲート

すべての動的ハーネスには、タスク固有の評価が必要です。最も安価で信頼性の高いゲートを選択します。

作業タイプ評価ゲート
コード機能焦点を絞ったテスト、リント、カバレッジ、および1つの統合パス
UI/コントロールペインスクリーンショットとオーバーフロー/エラーチェックを含むブラウザスモークテスト
エージェントワークフローフィクスチャトランスクリプト、または期待されるルーティングを持つシード付き作業項目
リサーチ/コンテンツソースに依存しないブリーフ、クレームチェックリスト、公開準備完了のアウトライン
統合ドライランのコマンド、設定検証、シークレットなしスキャン

評価を別のチームメイトが再実行できるようになるまで、動的ワークフローは再利用可能であると主張しないでください。

アンチパターン

  • 実際の意思決定ロジックをオペレーターから隠すスクリプトを生成すること。
  • 動的ワークフローモードをテストをスキップする許可として扱うこと。
  • 共有スキルやステータス成果物が本当の成果物である場合に、1回限りのドキュメントを作成すること。
  • 所有権、マージゲート、または競合ポリシーなしで複数のエージェントを実行すること。
  • 生のプライベートリサーチデータを公開ドキュメントにリークさせること。

出力標準

次の項目で終了します。

  • ハーネスまたはスキルのパス。
  • 評価コマンドと結果。
  • コントロールペインまたはハンドオフ成果物のパス。
  • 次の再利用可能な抽出候補。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

accessibility

Design, implement, and audit inclusive digital products using WCAG 2.2 Level AA. Use when building or auditing UI that must meet WCAG 2.2 Level AA, or when reviewing a change for keyboard, contrast, or screen-reader support.

affaan-m/claude-api

Anthropic Claude API patterns for Python and TypeScript. Covers Messages API, streaming, tool use, vision, extended thinking, batches, prompt caching, and Claude Agent SDK. Use when building applications with the Claude API or Anthropic SDKs.

affaan-m/everything-claude-code

End-to-end marketing campaign planning and execution. Covers audience research, positioning, campaign angle definition, landing page copy, email sequences, social posts, ad copy, short-form video scripts, and content calendars. Use as the orchestration layer for multi-channel product launches. Use when planning or executing a multi-channel product launch, or producing landing page, email, social, or ad copy.

affaan-m/everything-claude-code

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/everything-claude-code-conventions

Development conventions and patterns for everything-claude-code. JavaScript project with conventional commits.

affaan-m/frontend-design

Create distinctive, production-grade frontend interfaces with high design quality. Use when the user asks to build web components, pages, or applications and the visual direction matters as much as the code quality.

affaan-m/gget

gget CLI and Python workflow for quick genomic database queries, sequence lookup, BLAST-style searches, enrichment checks, and reproducible bioinformatics evidence logs.

affaan-m/literature-review

Systematic literature-review workflow for academic, biomedical, technical, and scientific topics, including search planning, source screening, synthesis, citation checks, and evidence logging.

affaan-m/motion-ui

Production-ready UI motion system for React/Next.js. Use when implementing animations, transitions, or motion patterns.

affaan-m/project-guidelines-example

Example project-specific skill template based on a real production application.

affaan-m/pubmed-database

Direct PubMed and NCBI E-utilities search workflows for biomedical literature, MeSH queries, PMID lookup, citation retrieval, and API-backed literature monitoring.

affaan-m/scholar-evaluation

Structured scholarly-work evaluation for papers, proposals, literature reviews, methods sections, evidence quality, citation support, and research-writing feedback.

affaan-m/uspto-database

USPTO patent and trademark data workflow for official record lookup, PatentSearch queries, TSDR checks, assignment data, and reproducible IP research logs.

agent-architecture-audit

Full-stack diagnostic for agent and LLM applications. Audits the 12-layer agent stack for wrapper regression, memory pollution, tool discipline failures, hidden repair loops, and rendering corruption. Produces severity-ranked findings with code-first fixes. Essential for developers building agent applications, autonomous loops, or any LLM-powered feature. Use when an agent or LLM feature misbehaves and the failing layer is unknown, or before shipping an agent stack.

agent-eval

Head-to-head comparison of coding agents (Claude Code, Aider, Codex, etc.) on custom tasks with pass rate, cost, time, and consistency metrics. Use when choosing between coding agents, or when a change to an agent setup needs measured pass rate, cost, and time rather than an impression.

agent-harness-construction

Design and optimize AI agent action spaces, tool definitions, and observation formatting for higher completion rates. Use when defining or revising an agent

agentic-engineering

Operate as an agentic engineer using eval-first execution, decomposition, and cost-aware model routing. Use when planning or executing engineering work that agents will carry out end to end.

agentic-os

Build persistent multi-agent operating systems on Claude Code. Covers kernel architecture, specialist agents, slash commands, file-based memory, scheduled automation, and state management without external databases. Use when building a persistent multi-agent system on Claude Code with its own memory, commands, and scheduling.

agent-introspection-debugging

Structured self-debugging workflow for AI agent failures using capture, diagnosis, contained recovery, and introspection reports. Use when an agent run fails and you need a reproducible diagnosis instead of a retry.

agent-payment-x402

Add x402 payment execution to AI agents with per-task budgets, spending controls, and non-custodial wallets. Supports Base through agentwallet-sdk and X Layer through OKX Payments / OKX Agent Payments Protocol. Use when an agent must pay for something itself and needs per-task budgets, spending controls, and a non-custodial wallet.

関連スキル