Model Driven Appsのロゴ

Model Driven Apps

コミュニティ
korchard333
model-driven-apps

モデル駆動型アプリの開発。モデル駆動型アプリ、フォーム、ビュー、ビジネスルール、サイトマップ、コマンドバーのカスタマイズ、カスタムページ、埋め込みCanvas Apps、サブグリッド、ロールに応じたフォームの切り替え、生成ページを構築する場合に使用します。

Add to TypingMind

概要

公開者korchard333
リポジトリclaude-power-platform-community
スキル名model-driven-apps
スター
50
フォーク
6
同梱ファイル
16
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 16個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    korchard333がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Model Driven Apps」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/korchard333/claude-power-platform-community/tree/main/.claude/skills/model-driven-apps
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/korchard333/claude-power-platform-community.git /tmp/claude-power-platform-community
mkdir -p .claude/skills
cp -r /tmp/claude-power-platform-community/.claude/skills/model-driven-apps .claude/skills/model-driven-apps
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでModel Driven Appsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にModel Driven Appsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Model Driven Appsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Skill: Model-Driven Apps

When to Use

Trigger when building, configuring, reviewing, or troubleshooting Model-Driven Apps — including forms, views, business rules, app modules, site maps, command bar customizations, custom pages, and generative pages.


When to Use Model-Driven Apps vs Alternatives

ScenarioBest ChoiceWhy
Standard Dataverse CRUD + business processModel-Driven AppBuilt-in forms, views, business rules, BPF
Custom pixel-perfect UICode AppFull React/TypeScript control
Mobile field work, offline, cameraCanvas AppPower Apps mobile, offline support
Complex dashboards / analyticsPower BI embedded in MDABetter charting, slicers
High-volume data admin (bulk edit)Model-Driven AppGrid editing, bulk update, advanced find
Citizen developer / quick UICanvas AppNo TypeScript needed

Key MDA strengths: Forms, views, charts, dashboards with zero custom code. Business rules on client and server. Role-based form switching, audit trail, duplicate detection, merge records. Offline mobile via Dynamics 365 mobile app.


App Module (Site Map) Structure

App Module
├── Navigation Groups
│   ├── Group: "Operations" → Subareas (entities)
│   └── Group: "Configuration" → Settings, Users
├── Dashboards
└── Security Roles (who can access this app)

Create App Module via Web API

http
POST /api/data/v9.2/appmodules
Content-Type: application/json

{
  "name": "Contoso Projects",
  "uniquename": "contoso_ProjectsApp",
  "description": "Project management app",
  "clienttype": 4,
  "isdefault": false
}

⚠️ REQUIRED: Load Sub-Files Before Implementation

SKILL.md is a summary only — it is NOT sufficient for implementation.

The detailed content (complete payloads, XML templates, working examples, edge-case handling) lives in sub-files in the same directory as this SKILL.md. Before writing any code, you MUST use read_file on the sub-files relevant to your task:

  • Forms — form types, Quick View, role-based switching, lookup/choice columns, embedded Canvas Apps, form performance
  • Views — view types, Quick Find, subgrids, Power Apps grid control, deprecated Editable Grid, view performance
  • Sitemap — sitemap XML schema, Area/Group/SubArea structure, single Area layout (left-nav vs bottom tabs), Titles format, IntroducedVersion requirement, dashboard navigation
  • Business Rules — scope options (Entity/AllForms/SpecificForm), supported actions, when NOT to use
  • Command Bar — Command Designer (no-code), modern JavaScript commands, Power Fx commands, lookup parameter naming for form pre-population
  • Custom Pages — Custom Pages vs embedded Canvas Apps, creating, navigating to, passing parameters
  • Generative Pages (Genux) — React 17 + Fluent UI V9 single-file components, DataAPI, RuntimeTypes, PAC CLI workflow, localization, sample templates

Microsoft 365 Copilot in Model-Driven Apps (Preview)

Note: The previous "Copilot chat" feature in MDA is deprecated (January 2026) for non-Dynamics 365 environments. Use M365 Copilot instead.

M365 Copilot requires a Microsoft 365 Copilot license. Provides AI-assisted record summarization, data exploration. Works within the MDA shell for D365 and custom MDA apps.


Deprecated & Removed Controls

ControlStatusDateReplacement
Editable GridDeprecatedMarch 2026Power Apps grid control
Hierarchy controlRemovedOctober 2025None (removed entirely)
Classic lookDeprecatedApril 2026Modern look (now default)
Rich Text Editor (classic)DeprecatedApril 2025Modern RTE (default)
Copilot chat (non-D365)DeprecatedJanuary 2026M365 Copilot
Autocomplete controlDeprecated—Standard lookup
Input mask controlDeprecated—Business rules + validation
Multimedia playerDeprecated—Custom PCF / web resource

Naming Conventions

ObjectConventionExample
App module[Publisher] [Domain] AppContoso Projects App
Form[Entity] [Audience] FormProject Admin Form
View (system)[Audience] - [Scope]My - Active Projects
Business rule[Trigger]: [Action]High Priority: Require Due Date
Command[Verb] [Entity]Approve Order
Dashboard[Audience] [Domain] DashboardManager Project Dashboard

ALM for Model-Driven Apps

All MDA configuration lives in solutions:
  - App module (site map), Forms, views, charts, Business rules
  - Command bar customizations, Security role assignments

Export / unpack: pac solution export → pac solution unpack --processCanvasApps true
Forms and views unpack to readable XML — review diffs carefully
Business rules unpack to XAML — treat as opaque, don't edit manually

Anti-Patterns

  • Using Editable Grid in new development (deprecated March 2026 — use Power Apps grid control)
  • Using hierarchy control (removed October 2025)
  • Relying on Copilot chat feature in non-D365 environments (deprecated January 2026)
  • Building Model-Driven Apps outside of solutions ("My Apps")
  • Using JavaScript where a Business Rule suffices (harder to maintain)
  • Business rules with scope "Entity" for UI-only logic (wastes server cycles)
  • More than 7 tabs on a form (unusable cognitive load)
  • Subgrids loading all records without default views (performance)
  • Advanced Find views in production dashboards (personal views break sharing)
  • Mixing managed and unmanaged customizations in the same environment
  • Hardcoded GUIDs in JavaScript form scripts
  • Not setting a Quick Find view (renders lookup search unusable or slow)

Related Skills

  • web-resources — JavaScript form scripts and ribbon customizations
  • canvas-apps — Embedded Canvas Apps in Model-Driven forms
  • dataverse — Underlying table, form, and view design
  • security — Security roles that control form and field visibility

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Model Driven Apps」では何ができますか?

モデル駆動型アプリの開発。モデル駆動型アプリ、フォーム、ビュー、ビジネスルール、サイトマップ、コマンドバーのカスタマイズ、カスタムページ、埋め込みCanvas Apps、サブグリッド、ロールに応じたフォームの切り替え、生成ページを構築する場合に使用します。

TypingMindでModel Driven Appsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Model Driven Appsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにModel Driven Appsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/korchard333/claude-power-platform-community/tree/main/.claude/skills/model-driven-appsを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Model Driven Appsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Model Driven Appsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもModel Driven Appsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Model Driven Apps」は無料ですか?

はい。korchard333がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇