Back to skills
SKILL.md
Tribunal Mobile
ASecurityMobile-specific Tribunal. Runs Logic + Security + Mobile reviewers. Use for React Native, Expo, gesture handlers, animations, navigation, and any iOS/Android-targeted code.
- 7 stars
- 0 votes
- 0 copies
- 1 view
- Added November 9, 2026
Works with
Security analysis
100/100npx -y skills add Harmitx7/tribunal-kit --skill tribunal-mobile --agent claude-codeAre you the author of Tribunal Mobile?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/harmitx7-tribunal-mobile)---
name: tribunal-mobile
description: Mobile-specific Tribunal. Runs Logic + Security + Mobile reviewers. Use for React Native, Expo, gesture handlers, animations, navigation, and any iOS/Android-targeted code.
tools: Read, Grep, Glob, Bash, Edit, Write
version: 3.0.0
last-updated: 2026-07-30
required-skills:
- building-native-ui
- mobile-design
- swiftui-expert
scripts-binding:
- .agent/scripts/lint_runner.js
- .agent/scripts/security_scan.js
---
# /tribunal-mobile — Mobile Code Audit
$ARGUMENTS
---
## Mandatory Pre-Flight Context Inspection
Before auditing React Native, Expo, or native mobile code, you MUST inspect:
1. Native Configuration Manifests (`app.json`, `app.config.js`, `package.json`) → Verify Expo SDK version, Reanimated dependencies, and permissions
2. Gesture & 60fps Motion Rules → Enforce `react-native-reanimated` worklets on UI thread; ban JavaScript bridge layout thrashing
3. 28-Reviewer Mobile Gate → Run logic-reviewer, security-auditor, and mobile-reviewer before approving mobile component diffs
4. Required Skills → Before executing, load and follow procedural rules from:
- `building-native-ui` (.agent/skills/building-native-ui/SKILL.md): Native UI component patterns for cross-platform apps
- `mobile-design` (.agent/skills/mobile-design/SKILL.md): Mobile-first design for iOS, Android, touch, haptics, 120Hz
- `swiftui-expert` (.agent/skills/swiftui-expert/SKILL.md): SwiftUI declarative UI, @Observable, NavigationStack, Charts
---
## When to Use /tribunal-mobile
| Use `/tribunal-mobile` when... | Use something else when... |
| :----------------------------------- | :----------------------------------------- |
| React Native components | Web-only components → `/tribunal-frontend` |
| Expo Router navigation | API routes → `/tribunal-backend` |
| Reanimated animations/gestures | Full audit → `/tribunal-full` |
| FlashList / FlatList code | |
| Platform-specific (ios/android) code | |
---
## 4 Active Reviewers (All Run Simultaneously)
### precedence-reviewer → Checks local repo Case Law for past rejections
logic-reviewer
- `runOnJS` called inside `onUpdate` instead of `onEnd` (runs every frame)
- Missing `'worklet'` directive on functions called inside Reanimated
- FlatList inside ScrollView (disables virtualization)
- `useSharedValue` vs `useState` confusion (SharedValue on wrong thread)
### security-auditor
- AsyncStorage storing sensitive data (tokens, PII) unencrypted
- API keys in source code (should be in EAS Secrets)
- cleartext HTTP traffic (should be HTTPS on all platforms)
- Deep link not validated before processing URL scheme
### mobile-reviewer
- `setState` inside Reanimated `onUpdate` (JS bridge crossing = jank)
- Missing `'worklet'` on custom functions used in Reanimated
- FlatList for large lists (use FlashList with `estimatedItemSize`)
- Hardcoded pixel insets instead of `useSafeAreaInsets()`
- `Platform.OS === 'ios'` inside StyleSheet.create (not evaluated correctly)
- Missing `AppState` subscription cleanup (`subscription.remove()`)
- `react-native Image` used instead of `expo-image` (poor caching)
### type-safety-reviewer
- React Native components with `any` typed props
- Navigation route params missing strict types (e.g., React Navigation types)
- Untyped gesture handler events
- Unsafe type assertions when bridging native modules
---
## Verdict System
```
If ANY reviewer → ❌ REJECTED: fix before Human Gate
If any reviewer → ⚠️ WARNING: proceed with flagged items
If all reviewers → ✅ APPROVED: Human Gate
```
---
## Mobile-Specific Hallucination Traps (Common LLM Mistakes)
```tsx
// ❌ Missing 'worklet' — animation function crashes silently
const clamp = (val: number, min: number, max: number) => Math.min(Math.max(val, min), max);
// ✅ Must have worklet directive
const clamp = (val: number, min: number, max: number): number => {
'worklet';
return Math.min(Math.max(val, min), max);
};
// ❌ Expo Router: navigate() was refactored in v4 — old API
import { navigate } from 'expo-router'; // Named export doesn't exist
// ✅ Current Expo Router v4
import { router } from 'expo-router';
router.push('/products/123');
// ❌ React Native: StyleSheet.create doesn't eval functions
const styles = StyleSheet.create({
box: { paddingTop: Platform.OS === 'ios' ? 20 : 0 }, // Doesn't work in all contexts
});
// ✅ Use Platform.select or dynamic style object
const boxStyle = Platform.select({ ios: { paddingTop: 20 }, android: { paddingTop: 0 } });
```
---
## Usage Examples
```
/tribunal-mobile the SwipeToDelete gesture implementation with Reanimated 3
/tribunal-mobile the ProductList component using FlashList
/tribunal-mobile the auth token storage and retrieval functions
/tribunal-mobile the ProfileScreen with safe area insets
```
---
## After /tribunal-mobile — Next Steps
| Outcome | Next Command |
| :-------------------------- | :------------------------------------------------ |
| All checks pass | → Safe to test on simulator / deploy |
| Reviewers reject with fixes | → Apply fixes, then run `/tribunal-mobile` again |
| Needs advanced mobile UI | → `/ui-ux-pro-max` for premium app design |
| Animation drops frames | → `/tribunal-performance` for JS thread profiling |
---
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.