Architecture 标志

Architecture

社区
korchard333
architecture

Power Platform Solution Architecture. Use when: selecting app type (Code App vs Canvas vs Model-Driven), designing solution structure, environment strategy, integration patterns, security architecture, DLP policies, capacity planning, Architecture Decision Records (ADRs).

概览

发布者korchard333
代码仓库claude-power-platform-community
技能名称architecture
星标数
50
复刻数
6
附带文件
1
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 1 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 korchard333 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Architecture AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/korchard333/claude-power-platform-community/tree/main/.claude/skills/architecture
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

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/architecture .claude/skills/architecture
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Architecture,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Architecture。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Architecture 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Skill: Power Platform Solution Architecture

When to Use

Trigger when making design decisions: app type selection, solution structure, integration patterns, environment strategy, security model design.


App Type Selection Matrix

FactorCode AppCanvas AppModel-Driven App
UI flexibilityFull React controlPixel-level low-codeForm/view-driven
Data sourceConnectors via SDKAny connectorDataverse only
Developer profilePro-dev (React/TS)Citizen dev / makerFunctional consultant
Complex custom UIBest choicePossible but painfulLimited
Standard CRUDOverkillGoodBest choice
OfflineNoLimitedNo
MobileNo (not supported)YesYes
LicensingPremium requiredStandard or PremiumPremium
ALM maturityGit-based, no Solution PackagerSolution-based, canvas unpackSolution-based, full ALM

Decision rules:

  • Dataverse data + standard CRUD + business process → Model-Driven App
  • Custom UX + multiple data sources + mobile → Canvas App
  • Complex interactive UI + pro-dev team + TypeScript expertise → Code App
  • Rapid AI-generated custom page within MDA → Generative Page (GA)
  • Combine: Code App for complex UI module, Model-Driven for admin/config

Solution Architecture Patterns

Single Solution (Prototypes / Small Apps)

ContosoApp
├── Code App / Canvas App
├── Flows
├── Tables
├── Security Roles
└── Environment Variables

Use when: single team, <5 components, no cross-solution dependencies.

Layered Solutions (Enterprise)

ContosoShared              ← Shared tables, security roles, env variables, global option sets
  ↑ depends on
ContosoCore                ← Core business logic, shared flows, custom APIs
  ↑ depends on
ContosoHR                  ← HR-specific app, flows, and components
ContosoFinance             ← Finance-specific app, flows, and components

Rules:

  • Max 3-4 layers — deeper becomes unmaintainable
  • Shared → Core → Domain prevents circular dependencies
  • Each solution has its own publisher prefix
  • Environment variables and connection references live in the Shared layer

Environment Strategy

EnvironmentPurposeSolution TypeWho Has Access
DevBuild and configureUnmanagedMakers, developers
Test/QAIntegration testingManagedTesters, QA team
UATUser acceptance testingManagedBusiness users, stakeholders
ProductionLive operationsManagedEnd users
SandboxExperimentation, trainingManaged or UnmanagedVaries

Rules:

  • NEVER import unmanaged solutions to Test, UAT, or Production
  • Each environment has its own service principal for CI/CD
  • DLP policies applied consistently across all environments
  • Environment variables set per environment (never hardcoded)

Integration Decision Tree

Need to integrate with external system?
├── Standard connector exists? → Use it (lowest maintenance)
├── REST API available?
│   ├── Simple, low volume → HTTP action in Power Automate
│   ├── Code App needs it → PAC CLI data source (pac code add-data-source)
│   └── Complex, reusable, high volume → Custom Connector + Azure APIM
├── No API (legacy/file-based)?
│   ├── File drop → Power Automate + Azure Blob
│   └── Database direct → Azure SQL connector or Dataflow
└── Real-time bidirectional → Azure Service Bus + Dataverse webhook

Security Architecture

Authentication:   Entra ID (automatic for Code Apps — handled by Power Apps host)
Authorization:    Dataverse security roles (never app-level checks alone)
Secrets:          Azure Key Vault → Environment Variable (secret type)
Service accounts: Dedicated App Registration per solution (never personal accounts in pipelines)

Security Role Hierarchy:
  System Administrator    ← IT admins only
  System Customizer       ← Makers only, never end users
  [App] Admin             ← Full table access for app admins
  [App] Manager           ← Team-level access for managers
  [App] User              ← Own-record access for standard users

Custom API vs Power Automate vs Plugin

Use CaseRecommendation
Reusable action called from Code App / Canvas AppCustom API + Plugin
Orchestration of multiple systemsPower Automate
Pre/post Dataverse operation logicPlugin (sync)
Long-running async processPower Automate
Real-time validation before savePlugin (pre-operation)
Scheduled batch jobPower Automate (Recurrence trigger)
Complex business logic from Code AppCustom API (callable via SDK)

Capacity & Limits

ResourceLimitMitigation
Code App bundle size30 MB maxTree-shaking, lazy loading, optimize assets
Dataverse API requests100,000/day per userService principal for bulk ops, batch requests
Power Automate runs/day40,000 (P1 license)Batch operations, child flows
Canvas app controls~500 recommendedSplit screens, use components
Canvas app data row limit (non-delegable)2,000 maxDelegable queries bypass this limit entirely
Synchronous flow timeout120 secondsAsync pattern with polling
Flow action outputs100 MBTemp storage for large payloads
Code App connectors1,500+ availableCheck premium vs standard licensing
Standard Dataverse tableBillions of rows (but slower at scale)Use Elastic Tables for 100M+ write-heavy scenarios

Managed Environments

Managed Environments is a governance layer available on all paid Power Platform/Dynamics 365 licenses. Enable it per environment in the Power Platform Admin Center.

Key architectural implications:

  • Required for Power Platform Pipelines (first-party ALM)
  • Enables IP Firewall — restrict environment to corporate IP ranges
  • Enables Customer Managed Keys — full encryption sovereignty
  • Enables Lockbox — Microsoft engineer access requires explicit approval
  • Enables Solution Checker enforcement — block non-compliant deployments
  • Enables Conditional Access per app — Entra ID CA policies on individual apps

Recommendation: Enable Managed Environments on all non-Dev environments (Test, UAT, Production) from day one.

IMPORTANT (Feb 2026): Starting February 2026, pipeline target environments are auto-enabled as Managed Environments. Plan for this in your environment strategy.


DLP Policy Design

Data Loss Prevention (DLP) policies classify connectors as Business, Non-Business, or Blocked. Connectors in different groups cannot be used together in the same app or flow.

Design Principles

  • Default posture: block everything, allow by exception
  • Cannot block Microsoft-owned connectors
  • Create environment-specific policies for isolated business use cases (e.g., DocuSign only in Contracts env)
  • Pair DLP with your environment strategy — separate environments = separate policies

Connector Classification

Business:     Connectors approved for business use (Dataverse, SharePoint, Teams)
Non-Business: Personal/consumer connectors (social media, personal email)
Blocked:      Never allowed in this environment (custom connectors for non-approved APIs)

Enforcement Stages

Investigating → Learning → Notify Only → Design-time → Full Enforcement

Start with "Notify Only" to identify affected apps/flows before full enforcement.

Limits

  • Max 600 DLP rules per tenant
  • Policy max size: 100 KB

Observability & Monitoring

Application Insights Integration

Connect Power Platform to Azure Application Insights for end-to-end monitoring.

Enable in Power Platform Admin Center:
  Environment → Settings → Product → Features → Export data to Application Insights
  → Enter Application Insights Connection String

What gets captured:
  - Canvas App: page loads, screen transitions, errors, custom traces
  - Model-Driven App: form load times, API call durations, JavaScript errors
  - Power Automate: flow run telemetry (requires Managed Environments)
  - Plugins: ILogger output (see plugins skill)
  - Dataverse Web API: request counts, latencies, failures

Monitoring Stack

ComponentMonitoring ToolWhat to Watch
Code App (React)Browser console + custom error boundaryJS errors, API call failures
Canvas AppMonitor tool + App InsightsScreen load times, delegation warnings
Model-Driven AppApp Insights + Plugin Trace LogForm load, plugin errors
Power AutomateFlow run history + App InsightsFailed runs, throttling, timeouts
PluginsITracingService + ILogger (App Insights)Exceptions, performance
Custom ConnectorsAPIM analytics + App InsightsAPI call volumes, latency, error rates
DataverseAdmin Center analyticsAPI limits, storage, user activity

Monitor Tool (Canvas App + Flow Diagnostics)

Power Apps → Monitor → Open Monitor
→ Start session → Use the app → See real-time telemetry:
   - Network calls (URL, duration, status)
   - Screen navigation timing
   - Data operation duration
   - Delegation warnings (live)
   - Error details with call stack

Alerting

Azure Application Insights → Alerts → New Alert Rule:
  - Condition: customEvents count > threshold (e.g., errors in last 15 min)
  - Action Group: Email, Teams webhook, Azure Function
  - Severity: Critical for production, Warning for test

Governance & Administration

Center of Excellence (CoE) Starter Kit

The CoE Starter Kit is a free, Microsoft-maintained solution for Power Platform governance.

ComponentPurpose
CoE CoreInventory — discovers all apps, flows, connectors, makers across tenant
CoE GovernanceCompliance flows — archive unused apps, notify inactive makers, DLP violation alerts
CoE NurtureAdoption — maker onboarding, training tracking, app catalog
CoE Audit LogAudit streams — surface Office 365 audit log data into Dataverse

Installation pattern:

1. Dedicated environment ("CoE" or "Governance") — Managed Environment enabled
2. Install CoE Core first → run initial inventory sync (can take 24h for large tenants)
3. Configure environment variables: Admin email, Power BI workspace, excluded environments
4. Install Governance + Nurture after Core stabilizes
5. Customize: adjust thresholds, notification templates, exception lists

Important: CoE Starter Kit is NOT a managed solution from Microsoft — it ships as unmanaged. Plan for manual upgrades and potential customization drift.

Sharing & Maker Controls

SettingWhere to ConfigureRecommendation
Canvas App sharing limitPower Platform Admin Center → Tenant settingsLimit to security groups (prevent sharing with "Everyone")
Environment maker roleEnvironment → Security → RolesRestrict who can create apps/flows in production
Default environment routingTenant settings → New makersRoute new makers to a dedicated "Personal Productivity" environment
Solution publisher controlsAdmin Center → EnvironmentsLimit who can create new publishers
Connector consentTenant settingsRequire admin approval for new custom connectors

Maker Onboarding Workflow

New Maker identified (Entra ID group addition)
  └── Automated: Assign to "Maker" security group
  └── Automated: Grant Environment Maker role in Personal Productivity env
  └── Automated: Send welcome email (CoE Nurture template)
        - Training resources link
        - Governance policy summary
        - How to request a dedicated environment
  └── Gated: Request dedicated environment via approval flow
        - Business justification
        - Expected data classification
        - Sponsor approval
  └── Automated: Provision environment from template (if approved)

Environment Request & Provisioning

Environment TypeWhen to CreateWho Approves
Personal ProductivityDefault for all makersAuto-provisioned
Project DevNew project starting developmentTeam lead
Project Test/UATProject ready for testingPM + IT Admin
ProductionProject approved for releaseIT Admin + Change Advisory Board
SandboxExperimentation, training, demosTeam lead

Admin Monitoring Checklist

  • CoE inventory sync running daily without errors
  • DLP violation alerts configured and routed to governance team
  • Unused app cleanup flow active (e.g., archive apps not used in 90 days)
  • Capacity alerts set (Dataverse storage, API calls, AI Builder credits)
  • Environment creation requests reviewed weekly
  • Connector consent requests reviewed within 2 business days

Architecture Decision Record (ADR) Template

markdown
## ADR-[Number]: [Decision Title]

### Status
[Proposed / Accepted / Deprecated / Superseded]

### Context
[What is the problem? What are the constraints? What requirements drive this decision?]

### Decision Drivers
- [Driver 1: e.g., "Must support 500 concurrent users"]
- [Driver 2: e.g., "Team has React/TypeScript expertise"]
- [Driver 3: e.g., "Must deploy across 3 environments via managed solutions"]

### Options Considered

| Option | Pros | Cons |
|---|---|---|
| [Option A] | [Pros] | [Cons] |
| [Option B] | [Pros] | [Cons] |
| [Option C] | [Pros] | [Cons] |

### Decision
[Which option was chosen and why]

### Consequences
**Positive:**
- [Benefit 1]

**Negative:**
- [Trade-off 1]

**Risks:**
- [Risk 1 + mitigation]

### ALM Implications
[How this decision affects solution structure, environment promotion, and CI/CD]

AI Architecture Decision Tree

Decision Tree

Need AI capabilities in your solution?
├── Conversational AI (chat/voice)?
│   ├── Internal users (employees) → Copilot Studio agent deployed to Teams
│   ├── External users (customers) → Copilot Studio agent via Power Pages Agent API
│   └── Embedded in existing app → Copilot Studio agent embedded in MDA/Canvas
├── Autonomous AI (no user interaction)?
│   ├── Simple rule + AI → Power Automate Agent Flow
│   └── Complex multi-step → Copilot Studio autonomous agent
├── Document/image processing?
│   └── AI Builder (document processing, object detection, text recognition)
├── Custom LLM integration?
│   ├── Need standard models (GPT-4o, etc.) → Copilot Studio (built-in or BYOM)
│   ├── Need fine-tuned/custom model → Azure AI Foundry + Custom Connector
│   └── Need streaming/advanced patterns → Azure OpenAI direct from Code App
├── Multi-agent orchestration?
│   ├── Same domain → Copilot Studio embedded agents
│   └── Cross-domain/cross-tenant → Copilot Studio connected agents (A2A protocol)
└── Simple AI prompts in workflows?
    └── AI Builder GPT prompts in Power Automate

Comparison Matrix

CapabilityCopilot StudioAI BuilderAzure AI FoundryDirect AOAIPower Automate Agent Flows
Conversational AIBestNoPossiblePossibleNo
Document processingNoBestPossibleNoNo
Custom modelsBYOM (11k+)LimitedFull controlFull controlVia connectors
No-code setupYesYesNoNoMostly yes
ALM/solution-awareYesYesExternalExternalYes
LicensingPer-messagePer-page/callAzure consumptionAzure consumptionPer-flow
Multi-agentYes (A2A)NoYes (custom)NoNo
GovernanceAutomation CenterAdmin CenterAzure RBACAzure RBACAutomation Center

When to Use Each

Use CaseRecommendedWhy
Employee FAQ botCopilot StudioBuilt-in knowledge sources, Teams deployment, ALM
Invoice processingAI BuilderPurpose-built document processing, Power Automate integration
Custom RAG pipelineAzure AI FoundryFull control over embeddings, vector store, retrieval
Streaming chat in Code AppDirect AOAINeed streaming responses, custom UI, low latency
Automated email triagePower Automate Agent FlowEvent-driven, AI selects actions, governance via Automation Center
Cross-department agent networkCopilot Studio connected agentsA2A protocol, security boundaries, independent lifecycle

Cost Considerations

  • Copilot Studio: per-tenant license + per-message beyond included allocation
  • AI Builder: credits included with some licenses, pay-per-use otherwise
  • Azure AI Foundry/AOAI: Azure consumption-based (token pricing)
  • Evaluate: expected volume, required SLA, data residency requirements

Anti-Patterns for AI Architecture

  • Using Azure AI Foundry when Copilot Studio covers the requirement (unnecessary complexity)
  • Calling Azure OpenAI directly from Canvas Apps (expose API keys client-side)
  • AI Builder for scenarios that need conversational context (it is stateless)
  • Building custom RAG when Copilot Studio knowledge sources suffice
  • No content moderation on any AI-generated output
  • AI decisions without audit trail (compliance risk)

Anti-Patterns

  • Monolithic single-solution architecture for anything beyond a prototype — leads to merge conflicts, deployment bottlenecks, and upgrade failures. Use solution layering (base + feature solutions) instead.
  • Choosing Code Apps for simple CRUD forms — overkill for standard data entry. Use Model-Driven Apps for form-centric CRUD and reserve Code Apps for complex, custom UI.
  • No publisher prefix strategy — leads to naming collisions, component ownership confusion, and blocked ALM. Define a short, unique prefix per publisher from day one.
  • Security implemented only at the app layer (hiding buttons/tabs) — data is still exposed via API, Power Automate, Advanced Find. Always enforce security at the Dataverse level with security roles.
  • No ALM plan at project start — results in manual deployments, environment drift, and "works on my machine" failures. Define solution structure, environment topology, and CI/CD pipeline at design time.
  • Designing without data volume estimates — 100 rows and 10 million rows need fundamentally different patterns (pagination, indexing, async processing). Ask about expected volumes early.
  • Over-engineering with microservice patterns — Power Platform has built-in orchestration (flows, plugins). Don't wrap simple Dataverse operations in Azure Functions unless there's a clear technical reason.
  • Skipping the security model discussion — retrofitting security after go-live is expensive and error-prone. Design business units, roles, and row-level security upfront.

Related Skills

  • security — Dataverse security model, roles, column-level security
  • alm — CI/CD pipelines, solution lifecycle, environment promotion
  • code-apps — Code Apps architecture (React + TypeScript + Vite)
  • canvas-apps — Canvas App design patterns
  • model-driven-apps — Model-Driven App design
  • azure-openai — Azure OpenAI integration patterns
  • copilot-studio — Copilot Studio agent design and deployment

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Architecture AI 技能有什么作用?

Power Platform Solution Architecture. Use when: selecting app type (Code App vs Canvas vs Model-Driven), designing solution structure, environment strategy, integration patterns, security architecture, DLP policies, capacity planning, Architecture Decision Records (ADRs).

为什么在 TypingMind 中使用 Architecture?

因为您只需安装一次,就能搭配任何模型使用。Architecture 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Architecture?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/korchard333/claude-power-platform-community/tree/main/.claude/skills/architecture。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Architecture?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Architecture 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Architecture 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Architecture AI 技能免费吗?

是的。korchard333 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇