power-apps-code-app-scaffold
ما الذي تفعله
ينشئ هذا البرنامج البنية الأساسية لتطبيق ويب مخصص داخل Power Apps. يُعدّ كل ما تحتاجه للبدء في البرمجة، مثل الأدوات والملفات الأولية.
متى تستخدمها
- ✓عندما تريد إنشاء تطبيق ويب جديد في Power Apps باستخدام الكود.
- ✓عندما تحتاج إلى نقطة بداية منظمة لمشروع التطبيق.
- ✓عندما تريد أن يتبع تطبيقك أفضل الممارسات منذ البداية.
رابط المهارة
https://github.com/github/awesome-copilot/blob/main/skills/power-apps-code-app-scaffold/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أنشئ البنية الأولية لـ Power Apps Code App.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يستخدم أدوات سطر الأوامر لإعداد مشروع باستخدام React وTypeScript. ثم يضيف الإعدادات اللازمة لكي يعمل التطبيق داخل بيئة Power Apps.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Power Apps Code Apps Project Scaffolding
You are an expert Power Platform developer who specializes in creating Power Apps Code Apps. Your task is to scaffold a complete Power Apps Code App project following Microsoft's best practices and current preview capabilities.
Context
Power Apps Code Apps (preview) allow developers to build custom web applications using code-first approaches while integrating with Power Platform capabilities. These apps can access 1,500+ connectors, use Microsoft Entra authentication, and run on managed Power Platform infrastructure.
Task
Create a complete Power Apps Code App project structure with the following components:
1. Project Initialization
- Set up a Vite + React + TypeScript project configured for Code Apps
- Configure the project to run on port 3000 (required by Power Apps SDK)
- Install and configure the Power Apps SDK (@microsoft/power-apps ^0.3.1)
- Initialize the project with PAC CLI (pac code init)
2. Essential Configuration Files
- vite.config.ts: Configure for Power Apps Code Apps requirements
- power.config.json: Generated by PAC CLI for Power Platform metadata
- PowerProvider.tsx: React provider component for Power Platform initialization
- tsconfig.json: TypeScript configuration compatible with Power Apps SDK
- package.json: Scripts for development and deployment
3. Project Structure
Create a well-organized folder structure:
src/
├── components/ # Reusable UI components
├── services/ # Generated connector services (created by PAC CLI)
├── models/ # Generated TypeScript models (created by PAC CLI)
├── hooks/ # Custom React hooks for Power Platform integration
├── utils/ # Utility functions
├── types/ # TypeScript type definitions
├── PowerProvider.tsx # Power Platform initialization component
└── main.tsx # Application entry point
4. Development Scripts Setup
Configure package.json scripts based on official Microsoft samples:
dev: "concurrently "vite" "pac code run"" for parallel executionbuild: "tsc -b && vite build" for TypeScript compilation and Vite buildpreview: "vite preview" for production previewlint: "eslint ." for code quality
5. Sample Implementation
Include a basic sample that demonstrates:
- Power Platform authentication and initialization using PowerProvider component
- Connection to at least one supported connector (Office 365 Users recommended)
- TypeScript usage with generated models and services
- Error handling and loading states with try/catch patterns
- Responsive UI using Fluent UI React components (following official samples)
- Proper PowerProvider implementation with useEffect and async initialization
Advanced Patterns to Consider (Optional)
- Multi-environment configuration: Environment-specific settings for dev/test/prod
- Offline-first architecture: Service worker and local storage for offline functionality
- Accessibility features: ARIA attributes, keyboard navigation, screen reader support
- Internationalization setup: Basic i18n structure for multi-language support
- Theme system foundation: Light/dark mode toggle implementation
- Responsive design patterns: Mobile-first approach with breakpoint system
- Animation framework integration: Framer Motion for smooth transitions
6. Documentation
Create comprehensive README.md with:
- Prerequisites and setup instructions
- Authentication and environment configuration
- Connector setup and data source configuration
- Local development and deployment processes
- Troubleshooting common issues
Implementation Guidelines
Prerequisites to Mention
- Visual Studio Code with Power Platform Tools extension
- Node.js (LTS version - v18.x or v20.x recommended)
- Git for version control
- Power Platform CLI (PAC CLI) - latest version
- Power Platform environment with Code Apps enabled (admin setting required)
- Power Apps Premium licenses for end users
- Azure account (if using Azure SQL or other Azure connectors)
PAC CLI Commands to Include
pac auth create --environment {environment-id}- Authenticate with specific environmentpac env select --environment {environment-url}- Select target environmentpac code init --displayName "App Name"- Initialize code app projectpac connection list- List available connections
…
الأسئلة الشائعة
ما هو Power Apps Code App؟
هي طريقة لبناء تطبيقات مخصصة داخل Power Apps باستخدام الكود، بدلاً من الأدوات المرئية فقط. وتتيح مرونة أكبر وتكاملاً مع خدمات أخرى.
هل أحتاج إلى معرفة البرمجة؟
نعم، هذا البرنامج موجه لمن يريد بناء تطبيقات باستخدام الكود. ويُعدّ مشروعاً للمطورين.
ما التقنيات المستخدمة؟
يستخدم React وTypeScript، وهما من تقنيات تطوير الويب الشائعة، إضافة إلى أداة Power Apps CLI للتكامل.
التفاصيل
الوصف الأصلي من المؤلف
Scaffold a complete Power Apps Code App project with PAC CLI setup, SDK integration, and connector configuration
repo: github/awesome-copilot
الشعبية
- نجوم GitHub
- 40k
- الترتيب
- #7333
- الترخيص
- MIT
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
acquire-codebase-knowledge
40kيساعد وكيلك على فهم مشروع برمجي موجود وتوثيقه. مفيد لتعريف الأشخاص الجدد أو للحصول على نظرة عامة على البنية.
acreadiness-assess
40kيمكّن وكيلك من تقييم جاهزية مشروع للذكاء الاصطناعي وإنشاء تقرير. مفيد لمعرفة مدى استعداد المشروع لاستخدام أدوات الذكاء الاصطناعي.
acreadiness-generate-instructions
40kيساعد وكيلك على إنشاء تعليمات لأدوات الذكاء الاصطناعي بناءً على تقييم. مفيد لتحسين طريقة تفاعل الذكاء الاصطناعي مع الكود وسد الثغرات المحددة.
acreadiness-policy
40kيمكّن وكيلك من تحديد أو تطبيق سياسات لتقييم مشاريع الذكاء الاصطناعي. مفيد لتوحيد طريقة تقييم المشاريع وضمان الالتزام.
مهارات مشابهة
android-clean-architecture
280kينظّم وكيلك مشاريع أندرويد بكفاءة، ويبني الشيفرة بطريقة تجعل الصيانة وإضافة الميزات الجديدة أسهل.
compose-multiplatform-patterns
280kيساعد وكيلك على استعمال أنماط Compose Multiplatform وJetpack Compose في مشاريع KMP، وتشمل الحالة والتنقل والتصميم والأداء.
dart-flutter-patterns
280kيساعد وكيلك على كتابة شيفرة تطبيقات Dart وFlutter، باستعمال أنماط حديثة لبناء تطبيقات متينة وسهلة الإدارة.