✈️output-meta-pre-flight
- プラグイン
- outputai
- ソース
- GitHub で見る ↗
説明
ワークフロー操作を Output SDK で実行する前の事前検証チェックを行います。 ワークフロー実行前に、規約への準拠、要件の収集、品質ゲートの通過を確認します。
原文を表示
Pre-flight validation checks for Output SDK workflow operations. Ensures conventions are followed, requirements are gathered, and quality gates are passed before workflow execution.
ユースケース
- ✓ワークフロー実行前の規約準拠確認
- ✓ワークフロー実行前の要件確認
- ✓ワークフロー実行前の品質ゲート通過確認
本文(日本語訳)
Output SDK ワークフロー向けプリフライトルール
実行要件
- 重要:
subagent=""という XML 属性でサブエージェントが指定されているステップについては、そのサブエージェントを使用して当該ステップの指示を実行すること - すべての XML ブロックを順番に、かつ完全に処理すること
process_flow内のすべての番号付きステップを、指定通り正確に実行すること
Output SDK の知識確認
Output SDK とその機能について深く理解していることを確認してください。
不明な点がある場合は、Claude スキル output-meta-project-context を使用し、内容をよく読んでください。
Output SDK 規約の確認
ワークフロー操作を進める前に、以下を確認してください:
- ES モジュール: ESM モジュールのすべてのインポートには
.js拡張子を使用すること - HTTP クライアント: axios を直接使用しないこと。常に
@outputai/httpラッパーを使用すること - LLM クライアント: LLM を直接呼び出さないこと。常に
@outputai/llmラッパーを使用すること - ワーカーの再起動: ワークフロー作成後はワーカーを再起動すること:
overmind restart worker - ドキュメント: 変更後は
yarn g:workflow-docを実行すること
要件収集の方針
スマートデフォルトの適用
明示的に指定されていない情報については、以下のデフォルト値を適用してください:
- リトライポリシー: 指数バックオフで 3 回試行(初回 1 秒、最大 10 秒)
- モデル選択:
output-dev-model-selectionを実行し、選択したプロバイダーの現在のデフォルトモデルを確認してください。特定のモデル ID を固定しないこと(モデル一覧はドキュメントより更新頻度が高いため) - エラーハンドリング: 適切なエラータイプを用いた
ApplicationFailureパターン - パフォーマンス: 処理速度よりも可読性と保守性を優先すること
- タイムアウト: アクティビティは 30 秒、ワークフローは 5 分
必須確認事項
以下の場合のみ、作業を中断してユーザーに確認を求めてください:
- コンテキストから推測できない、曖昧な入出力構造
- プロジェクトで一般的に使用されていない特定の API キーやサービス
- 標準的でないエラーハンドリングやリカバリ要件
- 特定の実行順序が必要な複雑なオーケストレーションパターン
- プロジェクトにまだ存在しない外部依存関係
テンプレート処理ルール
- 各ステップで提供されているテンプレートをそのまま使用すること
- すべてのテンプレート変数を実際の値に置き換えること:
<workflow_name>— 計画対象のワークフロー名<project_root>— プロジェクトのルートディレクトリのパス<requirements>— ユーザーから提供された要件<current_date>— 現在の日付(YYYY-MM-DD 形式)<sdk_version>— 現在の Output SDK バージョン
品質ゲート
プリフライトを通過する前に、以下を確認してください:
- 必要なコンテキストがすべて揃っていること
- ワークフローの目的を正しく理解していること
- 参考にできる類似ワークフローが既に存在しないか確認すること
- Output SDK の規約を理解していること
- 必要なサブエージェントが利用可能であることを確認すること
プラン作成ルール
- 複雑なタスクはすべてワークフロープランファイルで管理すること
- プランファイルは
.outputai/plansディレクトリに作成すること .outputai/plansディレクトリが存在しない場合は作成すること- プランのフォルダ名は「日付 → ワークフロー名 → タスク名」の順で命名すること
- 例:
2025_12_16_simple_sum_workflow_creation_plan/PLAN.md
- 例:
- 実装の進捗は、プランフォルダ内の TASK ファイルで管理すること
- 例:
2025_12_16_simple_sum_workflow_creation_plan/TASK.md
- 例:
- プランの進捗管理にはマークダウンの ToDo リストを使用すること
原文(English)を表示
Pre-Flight Rules for Output SDK Workflows
Execution Requirements
- CRITICAL: For any step that specifies a subagent in the
subagent=""XML attribute, you MUST use the specified subagent to perform the instructions for that step - Process all XML blocks sequentially and completely
- Execute every numbered step in the process_flow EXACTLY as specified
Output SDK Knowledge Check
Ensure you have a deep understanding of the Output SDK and its capabilities. If not, use Claude Skill: output-meta-project-context and read it carefully.
Output SDK Conventions Check
Before proceeding with any workflow operation, verify:
- ES Modules: All imports MUST use
.jsextension for ESM modules - HTTP Client: NEVER use axios directly - always use @outputai/http wrapper
- LLM Client: NEVER use a direct llm call - always use @outputai/llm wrapper
- Worker Restarts: Remember to restart worker after creating workflows:
overmind restart worker - Documentation: Run
yarn g:workflow-docafter modifications
Requirements Gathering Strategy
Smart Defaults Application
When information is not explicitly provided, apply these defaults:
- Retry Policies: 3 attempts with exponential backoff (1s initial, 10s max)
- Model selection: Run
output-dev-model-selectionto pick the current default for the chosen provider. Don't pin a specific model ID here — the listing changes faster than the docs. - Error Handling: ApplicationFailure patterns with appropriate error types
- Performance: Optimize for clarity and maintainability over raw speed
- Timeouts: 30 seconds for activities, 5 minutes for workflows
Critical Information Requirements
Only stop to ask for clarification on:
- Ambiguous input/output structures that cannot be inferred from context
- Specific API keys or services not commonly used in the project
- Non-standard error handling or recovery requirements
- Complex orchestration patterns requiring specific sequencing
- External dependencies not already in the project
Template Processing Rules
- Use exact templates as provided in each step
- Replace all template variables with actual values:
- `` - The workflow being planned
- `` - Root project directory path
- `` - User-provided requirements
- `` - Current date in YYYY-MM-DD format
- `` - Current Output SDK version
Quality Gates
Before proceeding past pre-flight:
- Confirm all required context is available
- Verify understanding of the workflow's purpose
- Check for existing similar workflows to use as patterns
- Ensure Output SDK conventions are understood
- Validate that necessary subagents are available
Plan Creation Rules
- All complex tasks should be tracked in a workflow plan file
- These files should be created at .outputai/plans directory.
- If
.outputai/plansdirectory does not exist, create it. - Ensure the plan folder is named with the date, then the workflow name, then the task name. e.g. 2025_12_16_simple_sum_workflow_creation_plan/PLAN.md
- Track the implementation progress of any plan in a TASK file in the plan folder. e.g. 2025_12_16_simple_sum_workflow_creation_plan/TASK.md
- Use markdown todo list to track the progress of the plan. e.g
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。