IDMP分析の作成ワークフロー(処理の流れ)。モード(動作方式)の解決、所有者の確認、トリガー種別(処理開始の条件)、出力属性、作成ペイロード(送信データ)、作成後の検証、再開、クリーンアップ(後片付け)に対応しています。
IDMP analysis creation workflow. Resolve mode, owner, trigger types, output attributes, creation payload, post-create verification, resume, and cleanup.
まず ../idmp-shared/SKILL.md をお読みください。
idmp-cli ai create create --ack-risk --data '{"elementId":123,"prompt":"demo analysis prompt","record":true}'idmp-cli analysis analyses new-name --ack-risk --params '{"elementId":123,"name":"demo-analysis"}'idmp-cli analysis-template analyses new-name --ack-risk --params '{"elementTemplateId":456,"name":"demo-analysis"}'analysis.analyses.new-name と analysis-template.analyses.new-name には提案された name の値と --ack-risk が必要POST /api/v1/ai/analysis/create を最初に実行し、返された下書きを analysis analyses create で永続化ai.create.create に従う: prompt、record、deepThinking、deviceDocument を明示的に保持し、さらに elementId または elementTemplateId のいずれかを含めるnew-name には候補となる name と --ack-risk が必要rootElementId は現在の要素IDではないelement.elements.create と element.new.create は異なる機能startAfterCreated、rootElementId、出力の valueType を明示的に保持id を含む可能性がある。永続化失敗時は下書きの id を削除し、rootElementId を注入し、下書き作成の属性をクリーンアップidmp-cli element elements get --params と idmp-cli element elements path --params を使用して、所有者とビジネス上のルートを確定idmp-cli attribute elements attributes --params と idmp-cli analysis analyses list --params で依存関係を読み込むidmp-cli ai create create --ack-risk --data '{"elementId":123,"prompt":"...","record":true,"deepThinking":false,"deviceDocument":false}' でAI下書き優先作成を試み、返された下書きから id を削除して rootElementId を設定した後、idmp-cli analysis analyses create --ack-risk --params で永続化idmp-cli analysis analyses new-name --ack-risk --params、idmp-cli analysis trigger-types list --params、および出力属性が存在しない場合は idmp-cli attribute elements attributes-post --ack-risk --params で予約・検証idmp-cli analysis analyses create --ack-risk --params と idmp-cli analysis analyses get --params で作成し、再読み込みidmp-cli analysis analyses resume --ack-risk --params で完了。クリーンアップはベストエフォート: idmp-cli analysis analyses delete --ack-risk --params は下書きが放棄された場合またはプローブ(探索)の削除が必須な場合のみ使用。削除成功後も出力属性がバックエンド側で参照されたままの場合は、リークしたIDを記録し、一般的な削除ループの再試行は停止rootElementId が表示された場合は下書きを削除し、ペイロードを再構築idmp-cli analysis analyses create --ack-risk --params を実行し、idmp-cli analysis analyses get --params で再読み込み。共有環境では、get と resume が分析の存在と実行を確認したら、クリーンアップはベストエフォートのままとする
idmp-cli analysis trigger-types list --params を使用して、中間所有者がメトリクス(測定値)を持つことを確認。通常のコンテナでは不十分
子スコープ作成を applyOnSelf=false トリガータイプでゲート(制御)。ペイロードには子テンプレートが output.elementTemplate.id に必要だが、現在のライブ ELE_SUBET フローは属性テンプレートIDを必須とするのではなく、所有者要素上で出力属性を再利用または作成できる
テンプレートモードがリクエストされた場合は、候補名とペイロード規律を保持。ペイロードを推測された最小限のDTO(データ転送オブジェクト)に縮約しない
選択された所有者の事前確認が失敗した場合は、作成前に停止。失敗した試行で作成された一時的な出力属性は削除が必須だが、バックエンドが実行済みの作成または削除後に参照をリークした場合は、リークを記録し、一般的なクリーンアップの再試行は停止
Read ../idmp-shared/SKILL.md first.
idmp-cli ai create create --ack-risk --data '{"elementId":123,"prompt":"demo analysis prompt","record":true}'idmp-cli analysis analyses new-name --ack-risk --params '{"elementId":123,"name":"demo-analysis"}'idmp-cli analysis-template analyses new-name --ack-risk --params '{"elementTemplateId":456,"name":"demo-analysis"}'analysis.analyses.new-name and analysis-template.analyses.new-name require a proposed name value and --ack-risk.POST /api/v1/ai/analysis/create first, then persist the returned draft through analysis analyses create.ai.create.create: keep prompt, record, deepThinking, and deviceDocument explicit, plus either elementId or elementTemplateId.Running.new-name for analyses requires a candidate name and --ack-risk.rootElementId is not the current element ID.element.elements.create and element.new.create do different jobs.startAfterCreated, rootElementId, and output valueType explicit in the create payload.id; remove the draft id, inject rootElementId, and clean draft-created attributes if persistence fails.context deadline exceeded, classify that first attempt as backend AI/API latency and fall back to the structured payload path without mutating the business intent.idmp-cli element elements get --params and idmp-cli element elements path --params to lock the owner and business root.idmp-cli attribute elements attributes --params and idmp-cli analysis analyses list --params.idmp-cli ai create create --ack-risk --data '{"elementId":123,"prompt":"...","record":true,"deepThinking":false,"deviceDocument":false}', then persist the returned draft through idmp-cli analysis analyses create --ack-risk --params after removing id and setting rootElementId.idmp-cli analysis analyses new-name --ack-risk --params, idmp-cli analysis trigger-types list --params, and idmp-cli attribute elements attributes-post --ack-risk --params if the output attribute does not exist.idmp-cli analysis analyses create --ack-risk --params and idmp-cli analysis analyses get --params.idmp-cli analysis analyses resume --ack-risk --params. Cleanup is best-effort: use idmp-cli analysis analyses delete --ack-risk --params only when the draft is abandoned or when the probe must be removed. If delete succeeds but the output attribute remains backend-referenced, record the leaked IDs and stop retrying generic delete loops.rootElementId, delete the draft and rebuild the payload.Run idmp-cli analysis analyses create --ack-risk --params, then reread with idmp-cli analysis analyses get --params. In shared environments, once get and resume prove the analysis exists and runs, cleanup stays best-effort.
Use idmp-cli analysis trigger-types list --params to prove the middle owner is metric-bearing. A plain container is not enough.
Keep child-scope creation gated by applyOnSelf=false trigger types. The payload still needs the child template in output.elementTemplate.id, but current live ELE_SUBET flows can reuse or create output attributes on the owner element instead of requiring attribute-template IDs.
If template mode is requested, preserve the candidate name and payload discipline. Do not collapse the payload to a guessed minimal DTO.
If preflight fails on the chosen owner, stop before create. Any temporary output attribute created for the failed attempt must be removed, but if the backend leaks references after a proven create or delete, record the leak and stop retrying generic cleanup.
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。