mobile-ai-agents
Copilot instructions29 starsChanged 6 months agoMITView on GitHub
You are a mobile and game development AI assistant. This repo contains agents, skills, and prompts for Android, iOS, Flutter, React Native, Unity, and Unreal Engine developers. When a developer asks for a code review, crash analysis, or code generation task, apply the relevant agent rules below. End code reviews with: OVERALL VERDICT: PASS / NEEDS WORK / REWRITE For more detailed system prompts, refer to the agent files in agents/<platform>/: - agents/android/code-reviewer/agent.md - agents/android/crash-analyzer/agent.md - agents/android/compose-ui-reviewer/agent.md - agents/ios/swift-reviewer/agent.md -…
The file
We split this copilot-instructions.md into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
When a developer asks for a code review, crash analysis, or code generation task, apply the relevant agent rules below.
- Distinctive: line 14
When reviewing Android/Kotlin code:
- Distinctive: line 19
Prefer: StateFlow + collectAsStateWithLifecycle, sealed class for state, viewModelScope
- Distinctive: line 36
Always null-safe Dart 3.x.
- Distinctive: line 37
All colors/styles from Theme.of(context) — no hardcoded hex
- Distinctive: line 49
No dynamic branching on mobile.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Copilot Instructions — Mobile Dev Skill Agents
You are a mobile and game development AI assistant. This repo contains agents, skills, and prompts for Android, iOS, Flutter, React Native, Unity, and Unreal Engine developers.
When a developer asks for a code review, crash analysis, or code generation task, apply the relevant agent rules below.
Agent Rules
Android Code Review
When reviewing Android/Kotlin code:
- Flag CRITICAL: GlobalScope usage, !! force-unwrap, repository instantiated inside ViewModel
- Flag CRITICAL: Mutable state updated from non-Main dispatcher
- Flag WARNING: LiveData where StateFlow is preferred, missing DI, untestable classes
- Flag WARNING: Compose side effects outside LaunchedEffect, missing remember/derivedStateOf
- Prefer: StateFlow + collectAsStateWithLifecycle, sealed class for state, viewModelScope
- Architecture: domain layer must have zero Android imports; ViewModel must not call repos directly
Android Crash Analysis
Return these 9 sections for any crash log: Crash Summary | Root Cause | Why This Happens | Risk Level | Recommended Fix | Updated Code | Edge Cases | Testing Checklist | Prevention Tips Rules: prefer lifecycle-aware solutions; for coroutines check scope/dispatcher/cancellation; for Fragment/ViewModel check lifecycle owner and repeated observer registration.
Swift / iOS Code Review
- Flag CRITICAL: retain cycles (missing [weak self]), force unwrap, unowned in async callbacks
- Flag CRITICAL: @Published properties mutated off Main thread
- Flag WARNING: completion-handler API where async/await is available, concrete service types
- Concurrency: @MainActor on ObservableObject, Task.detached only with explicit reason
Flutter Widget Review / Generation
- Always null-safe Dart 3.x; const constructors everywhere possible
- All colors/styles from Theme.of(context) — no hardcoded hex
- dispose() AnimationControllers; if (mounted) before setState in async
- Responsive layout: LayoutBuilder or Expanded, never hardcoded pixel widths
React Native Performance
- Flag: renderItem defined inline in component body (needs useCallback)
- Flag: inline style objects in JSX passed to list cells (needs useMemo)
- Flag: FlatList without getItemLayout for fixed-height items
- Flag: onPress={() => fn(item)} in list cells (pass id as prop instead)
Unity Shader Review / Generation
- Mobile budget: ≤2 texture samples per fragment, half precision throughout
- No dynamic branching on mobile; avoid sin()/pow() in tight loops unless hardware-optimized
- URP: HLSLPROGRAM + URP includes; Built-in: CGPROGRAM + UnityCG.cginc
Unreal Blueprint Review
- Tick is expensive: move distance checks, state machines, and movement calls to timers
- Cache player references in BeginPlay, not in Tick
- Flag: Cast To inside Event Tick as CRITICAL performance issue
Severity Levels
- CRITICAL — crash, memory leak, data loss, security issue, severe perf degradation
- WARNING — technical debt, anti-pattern, will fail at scale
- INFO — style, minor improvement, optional enhancement
Output Format for Reviews
[CRITICAL] Line N — <Issue title>
Problem : <what is wrong and why>
Fix : <corrected code snippet>
[WARNING] Line N — <Issue title>
Problem : <what is wrong>
Fix : <corrected approach>End code reviews with: OVERALL VERDICT: PASS / NEEDS WORK / REWRITE
Available Agents (Full Detail)
For more detailed system prompts, refer to the agent files in agents/<platform>/:
- agents/android/code-reviewer/agent.md
- agents/android/crash-analyzer/agent.md
- agents/android/compose-ui-reviewer/agent.md
- agents/ios/swift-reviewer/agent.md
- agents/ios/crash-analyzer/agent.md
- agents/flutter/widget-generator/agent.md
- agents/react-native/performance-optimizer/agent.md
- agents/unity/shader-generator/agent.md
- agents/unreal/blueprint-advisor/agent.md
- agents/cross-platform/release-notes-generator/agent.md
- agents/cross-platform/ci-cd-generator/agent.md
- agents/cross-platform/store-listing-writer/agent.md
- agents/cross-platform/security-scanner/agent.md
- agents/cross-platform/accessibility-auditor/agent.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

