📋idmp-template
- プラグイン
- idmp-plugin
- ソース
- GitHub で見る ↗
説明
IDMP(統合デジタルマーケティングプラットフォーム)テンプレートスキル 要素テンプレート、テンプレート属性、サブテンプレート、トリガータイプ(動作の起点)を読み込み、テンプレートモードとライブ要素モード(実運用モード)を混在させないまま、安全な名前を作成するためのスキルです。
原文を表示
IDMP template skill for reading element templates, template attributes, sub-templates, trigger types, and create-safe names without mixing template mode with live element mode.
ユースケース
- ✓テンプレートモードとライブ要素モードを混在させないようにする
- ✓安全な名前を作成する
- ✓テンプレート要素を読み込むとき
本文(日本語訳)
template
最初に ../idmp-shared/SKILL.md を読んでください。
何か書き込む前に: 🛑 破壊的な操作の確認プロトコル に従ってください。読み取り専用のコマンドはここでも読み取り専用ですが、削除・書き込み・更新の作業流れには共有の確認ゲートが必要です。
推奨ショートカット
| ショートカット | 用途 |
|---|---|
+list |
要素テンプレートを一覧表示。 |
+get |
1つの要素テンプレートを詳しく読む。 |
+attributes |
ある要素テンプレートの属性テンプレートを読む。 |
+levels |
パス形式のテンプレートで利用可能なレベルを確認。 |
+keywords |
テンプレートグループの命名キーワード指南を読む。 |
推奨リファレンス
テンプレート側の作業前に解決が必要なこと
| 確認項目 | 必要な理由 |
|---|---|
| テンプレート所有者の確定 | 属性・子テンプレート・トリガー種別を読んだり、作業安全な名前を作成したりする前に、正確な elementTemplateId が必要です。 |
| トリガー適用範囲 | applyOnSelf を決定し、トリガー種別の結果を再利用する前に子テンプレートを選択するかどうかを決めます。 |
| 候補分析名 | analysis-template.analyses.new-name は提案する name が必要です。 |
| テンプレート出力計画 | テンプレート属性を再利用するか新規作成するか、またどの valueType を持たせるかを決めます。 |
制約のある実行時の動作
- テンプレートコマンドとライブ要素(実際のデータ)コマンドを混ぜないでください。テンプレートモードと要素モードは異なる所有者とエンドポイント(接続先)を使用します。
applyOnSelf=falseの場合、先にsub-templatesを再度読んでから、選択した子テンプレート範囲でトリガー種別を更新します。analysis-template.analyses.new-nameには候補nameと--ack-riskが必要です。attr-template attributes new-nameには所有者範囲だけで足ります。attr-template attributes new-nameは--ack-risk不要です。先に名前を予約してから、後の作業で実際のリスク確認を行います。- 実際の要素の配下にライブ分析やアラートを作成する必要がある場合は、テンプレートエンドポイントを無理に使わず、要素モードの作業流れに切り替えてください。
完了の証拠
- テンプレート検索は、再度の読み取りで目的の
elementTemplateId・キーワードグループ・トリガー範囲が表示されて初めて完了です。 - テンプレート側の名前予約は、後の作業で同じ提案名が保持されて初めて完了です。
- 子テンプレート範囲の決定は、
sub-templatesと最後のトリガー種別の再読み取りが同じテンプレート分枝で合致して初めて完了です。
テンプレートモードの規則
- テンプレートコマンドのみ使用してください。ライブ要素コマンドで代用しないでください。
- テンプレート側の分析や属性変更を組み立てる前に、属性テンプレート・子テンプレート・トリガー種別を読んでください。
applyOnSelfが変わるとトリガー種別の選択肢も変わります。- テンプレート属性やテンプレート分析を作成する前に
new-nameを使ってください。
キーコマンド
idmp-cli schema template.elements.list
idmp-cli template elements list --params '{"current":1,"size":20}'
idmp-cli schema template.elements.get
idmp-cli template elements get --params '{"elementTemplateId":123}'
idmp-cli schema attr-template.elements.attributes
idmp-cli attr-template elements attributes --params '{"elementTemplateId":123}'
idmp-cli schema template.elements.sub-templates
idmp-cli template elements sub-templates --params '{"elementTemplateId":123}'
idmp-cli analysis-template trigger-types list --params '{"elementTemplateId":123,"applyOnSelf":false}'
idmp-cli analysis-template analyses new-name --ack-risk --params '{"elementTemplateId":123,"name":"demo-analysis"}'
idmp-cli attr-template attributes new-name --params '{"elementTemplateId":123}'
例外とエラー処理
elementIdしかない場合、その作業が本当にライブ要素の作業ではないか確認してからテンプレートモードに切り替えてください。sub-templatesが空の場合、そのテンプレートでは子テンプレート範囲の分析オプションは利用できません。applyOnSelfが変わった場合、以前の選択肢を再利用する前にトリガー種別を再度読んでください。new-nameが別の値を提案する場合、重複を無理やり作らず提案名を使ってください。- テンプレートが見つからない・名前が変わった・アクセスが拒否された場合、テンプレート書き込みを試みる前にリストとセッションを更新してください。
検証シナリオ
idmp-cli schema template.elements.listとidmp-cli template elements list --params '{"current":1,"size":20}'で利用可能なテンプレートを一覧表示します。idmp-cli schema template.elements.getとidmp-cli template elements get --params '{"elementTemplateId":123}'で1つのテンプレートを読みます。idmp-cli attr-template elements attributes --params '{"elementTemplateId":123}'でテンプレート属性を読みます。idmp-cli template elements sub-templates --params '{"elementTemplateId":123}'とidmp-cli analysis-template trigger-types list --params '{"elementTemplateId":123,"applyOnSelf":false}'で子テンプレート範囲の分析準備状況を確認します。idmp-cli analysis-template analyses new-name --ack-risk --params '{"elementTemplateId":123,"name":"demo-analysis"}'とidmp-cli attr-template attributes new-name --params '{"elementTemplateId":123}'で作業安全な名前を予約します。
原文(English)を表示
template
Read ../idmp-shared/SKILL.md first.
Before any write: Follow the 🛑 Destructive op confirmation protocol. Read-only commands stay read-only here, but delete / write / patch flows still require the shared yes-gate.
Recommended shortcuts
| Shortcut | Purpose |
|---|---|
+list |
List element templates. |
+get |
Read one element template in detail. |
+attributes |
Read attribute templates under one element template. |
+levels |
Inspect available levels for path-style templates. |
+keywords |
Read naming keyword guidance for the template family. |
Recommended reference
Missing context to resolve first
| Context | Why it must be resolved before template-side create work |
|---|---|
| Final template owner | You need the exact elementTemplateId before you can read attributes, sub-templates, trigger types, or create-safe names. |
| Trigger scope | Decide applyOnSelf and whether a child template must be selected before you reuse trigger-type results. |
| Candidate analysis name | analysis-template.analyses.new-name requires a proposed name. |
| Template output plan | Decide whether template attributes are reused or created fresh and which valueType they should carry. |
Constrained live behaviors
- Do not mix template commands with live element commands; template mode and element mode use different owners and endpoints.
- If
applyOnSelf=false, rereadsub-templatesfirst and then refresh trigger types with the chosen child template scope. analysis-template.analyses.new-namerequires a candidatenameand--ack-risk;attr-template attributes new-nameonly needs the owner scope.attr-template attributes new-namedoes not require--ack-risk; reserve the name first, then use the later write path for the actual risk gate.- If the task must create a live analysis or alert under a real element, switch back to the element-mode workflows rather than forcing template endpoints.
Evidence of completion
- A template lookup is only complete when the reread shows the intended
elementTemplateId, keyword family, or trigger scope. - A template-side name reservation is only complete when the later create path keeps the same suggested name.
- A child-scope decision is only complete when
sub-templatesand the final trigger-type reread still agree on the same template branch.
Template-mode rules
- Use template commands only; do not substitute live element commands.
- Read attribute templates, sub-templates, and trigger types before building template-side analysis or attribute changes.
- Trigger type choices change when
applyOnSelfchanges. - Use
new-namebefore creating template attributes or template analyses.
Key commands
idmp-cli schema template.elements.list
idmp-cli template elements list --params '{"current":1,"size":20}'
idmp-cli schema template.elements.get
idmp-cli template elements get --params '{"elementTemplateId":123}'
idmp-cli schema attr-template.elements.attributes
idmp-cli attr-template elements attributes --params '{"elementTemplateId":123}'
idmp-cli schema template.elements.sub-templates
idmp-cli template elements sub-templates --params '{"elementTemplateId":123}'
idmp-cli analysis-template trigger-types list --params '{"elementTemplateId":123,"applyOnSelf":false}'
idmp-cli analysis-template analyses new-name --ack-risk --params '{"elementTemplateId":123,"name":"demo-analysis"}'
idmp-cli attr-template attributes new-name --params '{"elementTemplateId":123}'
Exception and failure handling
- If you only have an
elementId, verify that the task is not really live element work before switching to template mode. - If
sub-templatesis empty, child-scope analysis options are not available for that template. - If
applyOnSelfchanges, re-read trigger types before reusing an earlier choice. - If
new-namesuggests a different value, use the suggested name instead of forcing a duplicate. - If a template is missing, renamed, or access is denied, refresh the list and session before attempting template writes.
Validation scenarios
- List available templates with
idmp-cli schema template.elements.listandidmp-cli template elements list --params '{"current":1,"size":20}'. - Read one template with
idmp-cli schema template.elements.getandidmp-cli template elements get --params '{"elementTemplateId":123}'. - Read template attributes with
idmp-cli attr-template elements attributes --params '{"elementTemplateId":123}'. - Check child-scope analysis readiness with
idmp-cli template elements sub-templates --params '{"elementTemplateId":123}'andidmp-cli analysis-template trigger-types list --params '{"elementTemplateId":123,"applyOnSelf":false}'. - Reserve create-safe names with
idmp-cli analysis-template analyses new-name --ack-risk --params '{"elementTemplateId":123,"name":"demo-analysis"}'andidmp-cli attr-template attributes new-name --params '{"elementTemplateId":123}'.
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。