copilot-kit mobile.instructions.md

A set of standards for building mobile apps on iOS, Android, Flutter, or React Native. It covers touch controls, performance, security, and testing.

In plain words
What is it for?
Use it when creating or reviewing mobile screens, scrolling lists, animations, login data, network calls, and tests on real phones.
Why use it?
It helps avoid common mobile-app problems such as buttons that are hard to tap, slow lists, exposed secrets, and untested device behavior.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/ivanshtokov/copilot-kit/mobile
Clone the repo
git clone --depth 1 https://github.com/ivanshtokov/copilot-kit

Made for: GitHub Copilot.

Per session 354 This file is loaded in full into every session.
When invoked 354 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00354 $0.00354
Opus 5 $0.00177 $0.00177
Sonnet 5 $0.00071 $0.00071
Haiku 4.5 $0.00035 $0.00035

Measured 2d ago against content hash 67ba8a7cbdbb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

copilot-kit mobile.instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/instructions/mobile.instructions.md · 56 lines

What it actually says

Mobile Development Standards

🎯 Before Any Mobile Work

READ: .github/skills/mobile-design/SKILL.md

📱 Platform Detection

Files Platform
*.swift, ios/ iOS (SwiftUI/UIKit)
*.kt, android/ Android (Kotlin/Compose)
*.dart, lib/ Flutter
*.tsx + app.json React Native

🎯 Touch Targets

  • iOS: Minimum 44pt × 44pt
  • Android: Minimum 48dp × 48dp
  • Spacing: 8px+ between targets

⚡ Performance Rules

Lists (CRITICAL)

❌ Don't ✅ Do
ScrollView for lists FlatList/ListView.builder
Inline render functions Memoized components
Index as key Unique stable ID

Animations

  • Use native driver (useNativeDriver: true)
  • Animate only transform and opacity
  • Avoid animating width, height, margin

🔐 Security

  • Use SecureStore/Keychain for tokens
  • Never hardcode API keys
  • Enable SSL pinning in production
  • Don't log sensitive data

🧪 Testing

  • Unit test business logic
  • Integration test API calls
  • E2E test critical user flows
  • Test on real devices
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 56 lines · 354 tokens per session scan A 67ba8a7cbdbb

Subscribe to this mod's changes

copilot-kit mobile.instructions.md is an instructions file published in the GitHub repository ivanshtokov/copilot-kit (2 stars, last pushed 7mo ago), licensed MIT. It adds 354 tokens to every session, about $0.0018 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.