power-apps-code-app-scaffold
Fungsinya
Program ini membuat struktur dasar untuk aplikasi web kustom di dalam Power Apps. Program ini menyiapkan semua yang Anda butuhkan untuk mulai ngoding, seperti tools dan file awal.
Kapan dipakai
- βSaat Anda ingin membuat aplikasi web baru di Power Apps menggunakan kode.
- βSaat Anda membutuhkan titik awal yang terorganisir untuk proyek aplikasi Anda.
- βSaat Anda ingin memastikan aplikasi Anda mengikuti praktik terbaik sejak awal.
Link skill
https://github.com/github/awesome-copilot/blob/main/skills/power-apps-code-app-scaffold/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βBuatkan struktur awal untuk Power Apps Code App.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Program ini menggunakan command-line tools untuk menyiapkan proyek dengan React dan TypeScript. Setelah itu, program menambahkan konfigurasi yang diperlukan agar aplikasi bisa berjalan di dalam lingkungan Power Apps.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
β¦
Pertanyaan umum
Apa itu Power Apps Code App?
Ini adalah cara membangun aplikasi kustom di Power Apps menggunakan kode, bukan hanya dengan alat visual. Cara ini memberikan fleksibilitas lebih dan integrasi yang lebih baik dengan layanan lain.
Apakah saya harus bisa coding?
Ya, program ini ditujukan bagi Anda yang ingin membangun aplikasi menggunakan kode. Program ini menyiapkan proyek untuk developer.
Teknologi apa saja yang digunakan?
Program ini menggunakan React dan TypeScript, yaitu teknologi pengembangan web yang populer, serta tool Power Apps CLI untuk integrasi.
Detail
Deskripsi asli dari pembuat
Scaffold a complete Power Apps Code App project with PAC CLI setup, SDK integration, and connector configuration
repo: github/awesome-copilot
Popularitas
- Bintang GitHub
- 40k
- Peringkat
- #7333
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- β¦
Skill lain dari repositori ini
acquire-codebase-knowledge
40kMembantu agent Anda memahami dan mendokumentasikan proyek kode yang sudah ada. Berguna untuk proses onboarding anggota baru atau mendapatkan gambaran arsitektur.
acreadiness-assess
40kMemungkinkan agent Anda menilai kesiapan proyek untuk AI dan membuat laporannya. Berguna untuk mengetahui seberapa siap proyek menggunakan alat AI.
acreadiness-generate-instructions
40kMembantu agent Anda membuat instruksi untuk alat AI berdasarkan hasil penilaian. Berguna untuk meningkatkan cara AI berinteraksi dengan kode dan menutup celah yang ditemukan.
acreadiness-policy
40kMemungkinkan agent Anda membantu menyusun atau menerapkan kebijakan untuk penilaian proyek AI. Berguna untuk menstandarisasi evaluasi proyek dan memastikan kepatuhan.
Skill serupa
android-clean-architecture
280kMembuat agent Anda mengatur proyek Android dengan efisien. Struktur kodenya dibuat agar lebih mudah dirawat dan pengembangan fitur baru.
compose-multiplatform-patterns
280kMembantu agent Anda menggunakan pola Compose Multiplatform dan Jetpack Compose di proyek KMP, mencakup state, navigasi, theming, dan performa.
dart-flutter-patterns
280kMembuat agent Anda menulis kode untuk aplikasi Dart dan Flutter. Menggunakan pola modern agar aplikasi kokoh dan mudah dikelola.