geekfujiwara/codeappsdevelopmentstandard/ai-builder
Claude Code and agent skill by geekfujiwara/codeappsdevelopmentstandard
- community
Checking that the SKILL.md file is still in the repository.
AI Builder の AI プロンプト(GPT Dynamic Prompt)を Dataverse API で作成し、Copilot Studio エージェントにツール(アクション)として追加する。Power Automate フローとの統合パターンも含む。
Install
npx vskill@latest install geekfujiwara/codeappsdevelopmentstandard/ai-builderSKILL.md
AI Builder AI プロンプト構築スキル
AI Builder の AI プロンプト(GPT Dynamic Prompt) を Dataverse API で作成し、 Copilot Studio エージェントに ツール(アクション) として追加する。 Power Automate フローから aibuilderpredict_customprompt で呼び出すパターンも含む。
基本方針: AI プロンプトを常にプレビルトモデルより優先する
前提: 設計フェーズ完了後に構築に入る(必須)
AI プロンプトを構築する前に、プロンプト設計をユーザーに提示し承認を得ていること。
設計提示時に含める内容:
| 項目 | 内容 | |
|---|---|---|
| プロンプト名 | 英語推奨(スキーマ名に使用される) | |
| プロンプトテキスト | リテラルテキスト+入力変数の組み合わせ | |
| 入力変数 | 名前・型(text / document / image)・説明・テスト値 | |
| 出力形式 | text or json(JSON の場合はスキーマ+サンプル) | |
| モデルパラメータ | モデル種別(gpt-41-mini 等)・temperature | |
| 利用先 | Copilot Studio ツール or Power Automate フロー | |
| shouldPromptUser | 各入力変数をユーザーに自動的に尋ねるか(true/false) |
事前確認(会話の最初に 1 回だけ)
本スキルの利用が確定したら、standard の共通契約に加え、 1 回の AskUserQuestion で次をまとめて確認する。
| # | 質問 | 合格条件 | |
|---|---|---|---|
| 1 | 対象環境で AI Builder を利用できるか | 必要なライセンス / AI Builder capacity があり、利用制限を確認している | |
| 2 | AI プロンプトを作成・公開する権限があるか | msdyn_aimodel 等の必要テーブルと AIModelPublish を実行できる担当者がいる | |
| 3 | 利用先はどこか | Copilot Studio / Power Automate、接続参照、実行ユーザー、呼び出し側ライセンスを確定している | |
| 4 | 入力データをモデルへ送信してよいか | document / image / text の分類、個人情報、保持・リージョン要件を承認済みである | |
| 5 | プロンプト、入力、JSON schema、モデル、テスト値は承認済みか | 正常系、拒否すべき入力、期待出力を記録している |
System Administrator を常用せず、AI モデルの作成・公開とソリューション追加に必要な Dataverse 権限だけを持つ担当者を優先する。capacity または権限が未確認なら AIModelPublish を呼び出さない。
重要事項: AIModelPublish 1ステップ・アクティベーション
2026-04-15 検証済み: `AIModelPublish` アクションは1ステップでモデルを完全にアクティブ化する。
AIModelPublish の呼び出し方
重要な注意点
| 項目 | 説明 | |
|---|---|---|
| アクション名 | AIModelPublish(msdyn_AIModelPublish ではない! プレフィックスなし) | |
| RunConfigurationId | model_id を渡すと Run Config がその ID で自動作成される | |
| 自動生成物 | Published Training (state=2,status=6) + Run Config (state=2,status=7) | |
| 結果 | Model が state=1(Active)に自動変更される | |
| 副作用 | Published Training Config は DELETE 不可(405)→ 無害 | |
| 失敗時 | 既に Active な Run Config がある場合 AnotherRunConfigAlreadyPublished |
Dataverse データ構造
AI Builder の AI プロンプトは 3 つの Dataverse テーブル + 1 つの botcomponent で構成される。
テンプレート ID(固定値)
| テンプレート名 | ID | |
|---|---|---|
| GPT Dynamic Prompt | edfdb190-3791-45d8-9a6c-8f90a37c278a |
msdyn_customconfiguration の JSON 構造
prompt 配列の要素型
| type | 説明 | 必須フィールド | |
|---|---|---|---|
literal | 固定テキスト | text | |
inputVariable | 入力変数への参照 | id |
definitions.inputs の型
| type | 説明 | 備考 | |
|---|---|---|---|
text | テキスト入力 | quickTestValue でテスト値 | |
document | ドキュメント入力 | ファイルアップロード | |
image | 画像入力 | 画像ファイル |
definitions.output の形式
| formats | 説明 | 追加フィールド | |
|---|---|---|---|
["text"] | テキスト出力 | なし | |
["json"] | JSON 出力 | jsonSchema + jsonExamples 必須 |
modelParameters.modelType の値
| 値 | モデル | |
|---|---|---|
gpt-41-mini | GPT-4.1 mini | |
gpt-41 | GPT-4.1 | |
o3-mini | o3-mini |
botcomponent の YAML 構造(kind: TaskDialog)
構築手順
詳細な構築手順・デプロイスクリプトテンプレートは 構築リファレンス を参照。
Power Automate フローからの AI Builder 呼び出し
AI Builder プロンプトを Power Automate フロー内で呼び出す パターン。 Copilot Studio ツールではなく、Dataverse トリガー等と組み合わせて自動実行する場合に使う。
詳細は Power Automate 連携リファレンス を参照。
必須要件
AI Model 作成【必須】
プロンプト定義
botcomponent(エージェント追加)
ソリューション管理
Power Automate フロー連携
ファイル入力(Image or Document Input)の制限事項
公式ドキュメント: https://learn.microsoft.com/en-us/microsoft-copilot-studio/add-inputs-prompt#limitations
対応ファイル形式
| 条件 | 対応形式 | |
|---|---|---|
| 標準(Code Interpreter オフ) | PNG, JPG, JPEG, PDF のみ | |
| Code Interpreter オン | 上記 + Word (.doc/.docx), Excel (.xls/.xlsx), PowerPoint (.ppt/.pptx) |
サイズ・ページ数・時間制限
| 制限項目 | 値 | |
|---|---|---|
| ファイルサイズ合計 | 25 MB 未満(全ファイル合計) | |
| ページ数 | 50 ページ未満 | |
| 処理タイムアウト | 100 秒(超過するとタイムアウトエラー) |
その他の制限
- Copilot Studio エージェントのツールとしての AI プロンプトでは画像/ドキュメント入力は未対応
- ファイル処理が必要な場合は Power Automate フロー経由で AI プロンプトを呼び出す
- 非対応ファイル形式の回避策: OneDrive for Business
ConvertFileで PDF 変換してから渡す
.env 追加パラメータ
全パラメータの定義(取得元コメント付き)は references/.env.example を参照。 実値はリポジトリルートの .env に置く(.gitignore 済み)。
デプロイ・トラブルシューティング
- 構築リファレンス — デプロイスクリプト・トラブルシューティング
- Power Automate 連携リファレンス — フロー統合パターン
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/ai-builder/SKILL.md
Popularity
- Repository stars
- 57
- Repository forks
- 20
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/geekfujiwara/codeappsdevelopmentstandard/ai-builder)