✅output-meta-post-flight
- プラグイン
- outputai
- ソース
- GitHub で見る ↗
説明
フライト後の検証を行うOutput SDKワークフロー操作向けバリデーション機能。 ステップの完了確認、規約への準拠チェック、品質検証、および成果物の確認を体系的に実施します。
原文を表示
Post-flight validation for Output SDK workflow operations. Systematic verification of step completion, convention compliance, quality validation, and deliverable verification.
ユースケース
- ✓フライト後の検証を実施するとき
- ✓ステップの完了確認が必要なとき
- ✓規約への準拠をチェックするとき
- ✓品質検証を行うとき
- ✓成果物を確認するとき
本文(日本語訳)
Output SDK ワークフローのポストフライトルール
実行確認
process_flow の全ステップ完了後、以下を体系的に検証してください:
ステップ完了監査
- [ ] 番号付きの全ステップが、指示に従って読み取り・実行・出力されていること
- [ ] サブエージェントが指定されたステップはすべて、正しいサブエージェントに委譲されていること
- [ ] 指定どおりにサブエージェントが使用されなかった場合は、その理由を記録しユーザーに報告すること
- [ ] 指示どおりに実行されなかったステップがある場合は、どの部分が誤読またはスキップされたかを説明すること
Output SDK 規約への準拠
以下の規約が遵守されているか検証してください:
インポート規約
- [ ] TypeScript/JavaScript のインポートはすべて、ES モジュール用に
.js拡張子を使用すること - [ ] axios を直接使用せず、全体を通じて HttpClient ラッパーを使用すること
- [ ] Output SDK パッケージ(
@outputai/core、@outputai/llmなど)の import パスが適切であること
ワークフロー構造
- [ ]
entrypoint.tsにてワークフローをエクスポートしていること:export * from './path/to/workflow.js'; - [ ] すべての外部操作が Temporal アクティビティ(ステップ)でラップされていること
- [ ]
ApplicationFailureパターンによる適切なエラーハンドリングが実装されていること - [ ] リトライポリシーが適切に設定されていること
スキーマの配置
- [ ]
Output.object()用のスキーマはすべて、ステップ関数のインラインではなくtypes.tsに定義されていること - [ ] LLM 出力スキーマでは
.describe()のみを使用すること — 数値や配列に.min()/.max()/.length()を使用しないこと - [ ]
Output.object()を使用する場合、プロンプトファイルに JSON 出力フォーマットの指示を含めないこと
LLM プロバイダーと変数
- [ ] すべてのプロンプトファイルで同一のプロバイダーを使用すること(明示的な指示がない限り混在させないこと)
- [ ]
generateText/Agentの変数はstring | number | booleanのみとすること — 配列やオブジェクトは使用不可
コードスタイル(output-dev-code-style 参照)
- [ ] 生成されたコードのいかなる箇所にも末尾カンマを付けないこと
- [ ]
let宣言を使用しないこと — すべての変数にconstを使用すること - [ ] アロー関数の括弧は必要な場合のみ使用すること(複数パラメーターまたは分割代入の場合)
- [ ] 演算子の改行は演算子の後に置くこと(前ではなく)
- [ ] 括弧内にスペースを入れること:
fn( x )—fn(x)は不可
ドキュメントとテスト
- [ ] 必要なセクションをすべて含む包括的なプランドキュメントが作成されていること
- [ ] 具体的なテストシナリオを含むテスト戦略が定義されていること
- [ ] 開発者向けの実装チェックリストが提供されていること
- [ ] すべてのコード例が完全で、コンパイル可能であること
品質検証
プラン完全性チェック
ワークフロープランに以下が含まれていることを確認してください:
- [ ] 概要: 明確な目的とユースケースの定義
- [ ] 技術仕様: Zod バリデーションを含む完全な入出力スキーマ
- [ ] アクティビティ定義: 目的・入出力・エラーハンドリングを含む各アクティビティの詳細仕様
- [ ] プロンプトエンジニアリング: テンプレート変数を含む LLM プロンプトの設計(該当する場合)
- [ ] オーケストレーションロジック: ワークフロー実行フローのステップバイステップ記述
- [ ] リトライポリシー: 適切なタイムアウトを含む各アクティビティへの設定
- [ ] テスト要件: 包括的なテストシナリオとコマンド
実装準備状況
プランが実装可能な状態であることを確認してください:
- [ ] すべてのスキーマにフィールド型と説明が正確に定義されていること
- [ ] すべてのアクティビティに入力・出力・処理ロジックが明記されていること
- [ ] 外部サービスが特定され、具体的な SDK クライアントの参照が記載されていること
- [ ] すべての障害シナリオに対するエラーハンドリングが完備されていること
- [ ] 期待される結果を含むテストシナリオが文書化されていること
- [ ] 測定可能な基準を伴うパフォーマンス要件が明確であること
成果物の検証
必須出力物
以下の成果物が作成または更新されていることを確認してください:
- [ ] 完全な仕様を含むワークフロープランドキュメント
- [ ] Zod バリデーションを含むアクティビティスキーマ
- [ ] プロンプトテンプレート(LLM インテグレーションが必要な場合)
- [ ] 具体的なコマンドを含むテスト戦略
- [ ] 開発者向けの実装チェックリスト
次のステップのドキュメント
以下のガイダンスが提供されていることを確認してください:
- [ ] 実装フェーズへの明確な引き継ぎ内容
- [ ] 実行すべき Output SDK CLI コマンドの具体的な記載
- [ ] インストールが必要な依存関係(存在する場合)
- [ ] 設定要件のドキュメント化
- [ ] 明確に定義された成功基準
エラー報告
何らかの問題が発生した場合:
- 問題の詳細と発生したステップを記録する
- 計画したプロセスからの逸脱があれば説明する
- 解決策の推奨事項を提示する
- 完了を妨げた情報の欠落があれば注記する
最終検証
ワークフロー計画の完了をマークする前に:
- [ ] 開発者が追加の確認なく実装を開始できること
- [ ] Output SDK のすべてのパターンと規約に準拠していること
- [ ] テストアプローチが包括的かつ実行可能であること
- [ ] ドキュメントが明確かつ完全であること
- [ ] プランがプロジェクト既存のワークフローパターンと整合していること
原文(English)を表示
Post-Flight Rules for Output SDK Workflows
Execution Verification
After completing all steps in the process_flow, systematically verify:
Step Completion Audit
- [ ] Every numbered step has been read, executed, and delivered according to its instructions
- [ ] All steps that specified a subagent were delegated to the correct subagent
- [ ] If any subagent was not used as specified, document why and report to the user
- [ ] If any step was not executed according to instructions, explain which part was misread or skipped
Output SDK Convention Compliance
Verify the following conventions were followed:
Import Conventions
- [ ] All TypeScript/JavaScript imports use
.jsextension for ES modules - [ ] No direct axios usage - HttpClient wrapper used throughout
- [ ] Proper import paths for Output SDK packages (@outputai/core, @outputai/llm, etc.)
Workflow Structure
- [ ] Workflow exported in entrypoint.ts:
export * from './path/to/workflow.js'; - [ ] All external operations wrapped in Temporal activities (steps)
- [ ] Proper error handling with ApplicationFailure patterns
- [ ] Retry policies configured appropriately
Schema Placement
- [ ] All schemas for
Output.object()defined intypes.ts, not inline in step functions - [ ] LLM output schemas use
.describe()only -- no.min()/.max()/.length()on numbers or arrays - [ ] Prompt files do not contain JSON output format instructions when
Output.object()is used
LLM Provider & Variables
- [ ] All prompt files use the same provider (no mixing unless explicitly requested)
- [ ]
generateText/Agentvariables arestring | number | booleanonly -- no arrays or objects
Code Style (see output-dev-code-style)
- [ ] No trailing commas in any generated code
- [ ] No
letdeclarations -- all variables useconst - [ ] Arrow functions use parens only when needed (multi-param or destructured)
- [ ] Operator linebreaks placed after the operator, not before
- [ ] Space in parens:
fn( x )notfn(x)
Documentation & Testing
- [ ] Comprehensive plan document created with all required sections
- [ ] Testing strategy defined with specific test scenarios
- [ ] Implementation checklist provided for developers
- [ ] All code examples are complete and would compile
Quality Validation
Plan Completeness Check
Ensure the workflow plan includes:
- [ ] Overview: Clear purpose and use case definition
- [ ] Technical Specifications: Complete input/output schemas with Zod validation
- [ ] Activity Definitions: Each activity fully specified with purpose, I/O, and error handling
- [ ] Prompt Engineering: LLM prompts designed (if applicable) with template variables
- [ ] Orchestration Logic: Step-by-step workflow execution flow
- [ ] Retry Policies: Configured for each activity with appropriate timeouts
- [ ] Testing Requirements: Comprehensive test scenarios and commands
Implementation Readiness
Confirm the plan is ready for implementation:
- [ ] All schemas defined with exact field types and descriptions
- [ ] Every activity specified with input/output/processing logic
- [ ] External services identified with specific SDK client references
- [ ] Error handling complete for all failure scenarios
- [ ] Testing scenarios documented with expected outcomes
- [ ] Performance requirements clear with measurable criteria
Deliverable Verification
Required Outputs
Verify these deliverables were created or updated:
- [ ] Workflow plan document with full specifications
- [ ] Activity schemas with Zod validation
- [ ] Prompt templates (if LLM integration required)
- [ ] Testing strategy with specific commands
- [ ] Implementation checklist for developers
Next Steps Documentation
Ensure the following guidance is provided:
- [ ] Clear handoff to implementation phase
- [ ] Specific Output SDK CLI commands to execute
- [ ] Dependencies to install (if any)
- [ ] Configuration requirements documented
- [ ] Success criteria clearly defined
Error Reporting
If any issues were encountered:
- Document the specific issue and step where it occurred
- Explain any deviations from the planned process
- Provide recommendations for resolution
- Note any missing information that prevented completion
Final Validation
Before marking the workflow planning complete:
- [ ] Developer can implement without additional clarification
- [ ] All Output SDK patterns and conventions are followed
- [ ] Testing approach is comprehensive and executable
- [ ] Documentation is clear and complete
- [ ] Plan aligns with project's existing workflow patterns
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。