Power Pagesのロゴ

Power Pages

コミュニティ
korchard333
power-pages

Power Pages(外部ポータル)です。ポータルの構築、Webロール、テーブル権限、Liquidテンプレート、エンティティリスト、エンティティフォーム、Webフォーム、Microsoft Entra ID B2C認証、ポータルのJavaScript、サイト設定、コンテンツスニペットに関する場合に使用します。

Add to TypingMind

概要

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

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

  • どのLLMでも利用可能

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

  • 18個の同梱ファイル

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

  • オープンソース

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

インストール

AIスキル「Power Pages」を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/power-pages
  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/power-pages .claude/skills/power-pages
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Skill: Power Pages (External Portals)

When to Use

Trigger when building external-facing websites on Dataverse — customer portals, partner portals, self-service portals, community forums, or any authenticated web experience exposing Dataverse data to external users.


When to Use Power Pages vs Alternatives

ScenarioBest ChoiceWhy
External customer self-service portalPower PagesBuilt-in Dataverse integration, external auth
Internal business appModel-Driven or Canvas AppSimpler, no portal overhead
Public marketing websiteAzure Static Web Apps / WordPressPower Pages is overkill
External API for partnersCustom Connector + APIMNo UI needed
Complex custom frontend for externalsCode App + Microsoft Entra ID B2CFull React control
Simple form intake from externalsPower Pages or Microsoft FormsDepends on data destination

Architecture Overview

External User (Browser)
  │
  ├── Authentication (Microsoft Entra ID B2C, local, SAML, OAuth)
  │
  ├── Power Pages Runtime
  │   ├── Pages (HTML + Liquid templating)
  │   ├── Entity Lists (data grids)
  │   ├── Entity Forms (single-record CRUD)
  │   ├── Web Forms (multi-step wizards)
  │   ├── Web Templates (reusable Liquid components)
  │   └── Content Snippets (editable text blocks)
  │
  ├── Security Layer
  │   ├── Web Roles (external user roles)
  │   └── Table Permissions (row-level access control)
  │
  └── Dataverse (data store)
      └── Contact = portal user record

⚠️ 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:

  • Web Roles & Table Permissions — Web roles, table permission scopes (Global/Contact/Account/Parent/Self), page permissions, Append/AppendTo rules
  • Liquid Templating — Variables, conditionals, loops, FetchXML in Liquid, Web API in Liquid, content snippets
  • Entity Lists, Forms & Web Forms — Entity lists (data grids), entity forms (single-record CRUD), form metadata overrides, web forms (multi-step wizards)
  • Authentication — Identity providers, Microsoft Entra ID B2C setup, Contact = User model, auth in Code Sites
  • Custom JavaScript & Portal Web API — Entity form scripts, client-side AJAX via Portal Web API, enabling Web API via site settings, Client APIs (Wave 1 2026) for Form/List/User/Web API
  • Code Sites (SPA) — Framework reference, PAC CLI workflow, Web API client pattern (anti-forgery token), service patterns, lookup rules, table permissions for Code Sites
  • Agent API — Agent API for Power Pages (March 2026), custom chat experiences backed by Copilot Studio agents, API endpoints, authentication, custom UI

Site Settings (Key Configuration)

SettingValuePurpose
Authentication/Registration/EnabledtrueAllow new user registration
Authentication/Registration/RequiresConfirmationtrueEmail verification required
Authentication/Registration/RequiresInvitationtrueInvitation-only portal
Webapi/[table]/enabledtrueEnable Web API for table
Webapi/[table]/fieldsfield1,field2Allowed fields via Web API
Search/EnabledtrueEnable global search
HTTP/X-Frame-OptionsSAMEORIGINPrevent clickjacking

CLI Site Management (Wave 1 2026)

Preview (Wave 1 2026): Create and delete Power Pages sites from the command line.

CommandDescription
pac pages create-siteCreate a new site (CI/CD automation, environment provisioning)
pac pages delete-siteDelete a site (cleanup of test/temporary sites)

ALM for Power Pages

Power Pages sites are solution-aware:
  - Site + all metadata included in solution export
  - Deploy via managed solution like any Power Platform component
  - Site Settings, Web Roles, Table Permissions travel with the solution

Per-environment configuration:
  - Authentication provider settings differ per environment
  - Use site settings + environment variables for environment-specific values
  - B2C tenant may differ between dev/test/prod

Performance

  • Enable CDN (Content Delivery Network) in portal admin for static assets
  • Enable server-side caching for entity lists and web templates
  • Use {% substitution %} blocks for content that should NOT be cached
  • Minimize FetchXML queries in Liquid — each one is a Dataverse round-trip
  • Use Portal Web API for client-side data loading (reduces server rendering)
  • Set appropriate page sizes on entity lists (don't load 100+ records)

Server Logic (Wave 1 2026)

GA (Wave 1 2026): Secure server-side custom logic in Power Pages using TypeScript/JavaScript.

Server logic enables custom server-side code execution within Power Pages — no Azure Functions required. Key capabilities:

  • TypeScript/JavaScript — familiar languages
  • pac pages CLI authoring via VS Code
  • Web role-scoped API access — endpoints respect web roles
  • Dataverse access — read/write with elevated or user-scoped permissions
ScenarioBest ChoiceWhy
Simple field validationEntity form metadataNo code needed
Complex business rules on submitServer logicSecure, server-side, no Azure dependency
External API integrationServer logic or Azure FunctionsServer logic if simple; Functions for complex orchestration
Client-side interactivityClient APIs / JavaScriptRuns in browser

Impact: Reduces the need for Azure Functions as a backend-for-frontend layer for portal-scoped business logic.


Web Application Firewall (WAF) — Preview

  • DDoS protection and bot mitigation
  • OWASP rule sets for common attack patterns
  • Configurable via Power Platform Admin Center
  • Available as a preview feature — evaluate for production readiness

Anti-Patterns

  • No table permissions defined (users see nothing — silent failure)
  • Global scope table permissions on sensitive data (everyone sees everything)
  • Using Dataverse security roles for portal access (they don't apply — use web roles + table permissions)
  • Direct DOM manipulation with jQuery when entity form metadata would suffice
  • Hardcoded record GUIDs in Liquid templates
  • Not enabling CSRF token validation on Web API calls (__RequestVerificationToken)
  • Missing HTTP/X-Frame-Options site setting (clickjacking vulnerability)
  • Authentication without email verification (spam accounts)
  • Not testing as anonymous user (unauthenticated page exposure)
  • Complex business logic in client-side JavaScript (should be in plugins or flows)
  • FetchXML queries in Liquid without top limit (unbounded queries)
  • Embedding secrets in web templates (visible in page source)
  • Using polymorphic lookups in parent-child table permissions (not supported)
  • Not associating web roles with table permissions (permissions without roles are ineffective)

Power Pages Plugin for GitHub Copilot / Claude Code

A Power Pages plugin is available (preview) that provides 9 skills for building Power Pages Code Sites from AI-assisted CLI tools:

#SkillCommandDescription
1Create site/create-siteScaffolds a site (React/Vue/Angular/Astro), applies design, builds pages
2Deploy site/deploy-siteBuilds and uploads via PAC CLI
3Activate site/activate-siteProvisions website record and assigns public URL
4Set up data model/setup-datamodelCreates Dataverse tables, columns, relationships
5Add sample data/add-sample-dataPopulates tables with realistic test records
6Integrate Web API/integrate-webapiGenerates typed API client, services, table permissions
7Set up authentication/setup-authAdds sign-in/sign-out and role-based access
8Create web roles/create-webrolesGenerates web role YAML files
9Add SEO/add-seoGenerates robots.txt, sitemap.xml, meta tags

Install from microsoft/power-platform-skills. Targets SPA (single-page application) Power Pages Code Sites.

More info: Create a code site using Claude Code


Related Skills

  • security — Web roles and table permissions for portal access
  • dataverse-web-api — Portal Web API calls to Dataverse
  • copilot-studio — Copilot Studio agents that back Power Pages chat experiences

Eval Files

The evals/ directory contains 11 evaluation test cases for Power Pages skill validation — covering site creation, authentication setup, web roles, data modeling, Web API integration, SEO, permissions auditing, deployment, and testing workflows.

同梱ファイル

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

よくある質問

AIスキル「Power Pages」では何ができますか?

Power Pages(外部ポータル)です。ポータルの構築、Webロール、テーブル権限、Liquidテンプレート、エンティティリスト、エンティティフォーム、Webフォーム、Microsoft Entra ID B2C認証、ポータルのJavaScript、サイト設定、コンテンツスニペットに関する場合に使用します。

TypingMindでPower Pagesを使うメリットは何ですか?

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

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

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

Power Pagesを使えるAIモデルはどれですか?

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

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

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

AIスキル「Power Pages」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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