Mobile Unslop
Verified creator: @fikrifirmanf signed in with the GitHub account that owns this repository. It is not a safety check.
Review native and cross-platform mobile code for crash risks, permissions, and accessibility gaps.
MCP configuration
Copy into a client that accepts mcpServers JSON. Other clients may use a different configuration format.
{
"mcpServers": {
"mobile-unslop": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Use this in your own environment. Copying text here does not run it.
How to use it
- Open the project documentation and choose the instructions for your AI client.
- Copy the configuration and companion skill command if needed.
- Configure the tools in your own environment, then try the example request.
SKILL.md
The instructions your assistant reads, from fikrifirmanf/mobile-unslop-mcp/skills/mobile-unslop/SKILL.md. Its authors wrote it, so read it before you install.
name: mobile-unslop description: Enforces production-grade native and cross-platform mobile engineering and eliminates crash-prone, rejected-at-review app code. Trigger whenever writing or modifying iOS (Swift, SwiftUI, UIKit), Android (Kotlin, Jetpack Compose, Java), React Native/Expo or Flutter code, Info.plist, AndroidManifest.xml, or app permissions.
Mobile Anti-Slop Protocol
Mobile slop crashes on a user's phone, gets rejected by App Review or Play Console, or locks out VoiceOver/TalkBack users. None of that shows up in a simulator happy path.
1. Crash operators (HARD BANS outside tests)
- Swift: no
try!, noas!. Avoid force unwraps!(@IBOutletis the only idiom). Useguard let,if let,??,do/catch. - Kotlin: avoid
!!; use?.let,?:,requireNotNull(x) { "why" }. - Dart: check
mountedbeforesetStateafter anyawait.
2. Threads & lifecycles (HARD BANS)
- iOS: never
DispatchQueue.main.sync. UI work is@MainActor. Prefer.task { }over.onAppear { Task { } }so work is cancelled when the view goes away. - Android: no
GlobalScope, norunBlocking, noThread.sleepin app code. UseviewModelScope/lifecycleScopeanddelay(). In Compose, state lives inremember { mutableStateOf(...) }(orrememberSaveable, or a ViewModel). - No network or disk I/O on the main thread on any platform.
3. Layout, type & accessibility
- Dynamic Type / font scale: iOS text uses text styles (
.font(.body),UIFont.preferredFont); Android text usessp. Layouts must survive the largest accessibility size. - No device-size hardcodes: no
.frame(width: 375), noUIScreen.main.bounds. Use flexible frames,containerRelativeFrame,GeometryReader, window size classes. - Every icon-only control has a label: SwiftUI
Label("Delete", systemImage: "trash")or.accessibilityLabel; ComposecontentDescription = stringResource(...); RNaccessibilityRole="button"+accessibilityLabel. - Touch targets: at least 44x44pt (iOS) / 48x48dp (Android).
- Strings are localisable: Compose uses
stringResource; SwiftUIText("...")keys go into the String Catalog. - React Native lists use
FlatList/FlashList, notScrollView+.map.
4. Security & privacy (HARD BANS)
- Tokens and credentials go in Keychain, EncryptedSharedPreferences/Keystore,
expo-secure-storeorflutter_secure_storage. Never UserDefaults, SharedPreferences or AsyncStorage. - HTTPS only: no
NSAllowsArbitraryLoads, nousesCleartextTraffic="true". Scope exceptions to named debug domains. - No
android:debuggablein the manifest, and back up only what is safe (dataExtractionRules). - Release builds don't log: use
os.Logger/ Timber /debugPrintinstead ofprint,NSLog,Log.d,println.
5. Permissions are a contract
- Every protected API needs its declaration: an
NS...UsageDescription(iOS) or<uses-permission>(Android). A missing purpose string crashes the app on first access. - Purpose strings are specific: "Scan receipts to add expenses without typing" passes review; "This app needs camera access" does not.
- Ask at the moment of use, explain first, and handle denial gracefully.
- Declare required-reason APIs (UserDefaults, file timestamps, disk space, system uptime) in
PrivacyInfo.xcprivacy. - Components with an
<intent-filter>declareandroid:exported. - Remove permissions you do not use.
6. Mandatory verification loop
Before claiming a mobile task is complete:
- Call
audit_mobile_slopwith every modified file or directory (omitfilesto audit git changes). - Call
verify_app_manifestwhenever a feature touches camera, photos, location, microphone, contacts, calendar, Bluetooth, health, motion, NFC, notifications or networking. - Call
verify_mobile_build(fastsyntaxmode by default;mode: "full"before declaring a feature done when time allows). - On
FAIL, fix every ERROR and re-run untilPASS. Suppress a verified false positive with// unslop-ignore RULE_ID -- reason; a suppression without a reason is an ERROR. SKIPPEDmeans a toolchain (Xcode, Gradle, Flutter) is missing: tell the user the build was not verified.
Other setup options
Companion skill command
Run on your own machine if you want to install the companion skill.
npx -y [email protected] install-skills
Example request
Review these mobile changes with mobile-unslop. Check lifecycle handling, platform permissions, accessibility labels, and build configuration. Report the checks that actually ran.
Example results
Illustrative example
Review outline - Match platform permission descriptions to the feature. - Inspect screen lifecycle and state updates. - Name icon controls for assistive technology. - Run available platform checks and record any toolchain limits.
Illustrative response outline, not a recorded run.
Illustrative examples show a possible response format. They are not recorded runs or verified results. Actual responses will vary.
Security checks
Automated checks, last run Nov 16, 2026. They can miss problems and do not guarantee a listing is safe. Read the source and what you are asked to run before you use it.
4 of 4 checks passed
- PassedSetup commands and descriptionLayer 1
The install commands and description match none of the risky patterns we look for.
Source: AIWantsThis screening rules
- PassedInstall scripts and package statusLayer 2
The npm package runs no code at install time and is not deprecated.
Source: npm registry
- PassedKnown vulnerabilities in the packageLayer 2
OSV.dev lists no advisories for this package.
Evidence (1)
- [email protected]
- No advisories listed in OSV.dev.
Source: OSV.dev
- PassedSource repositoryLayer 2
The repository is public, not archived and has recent activity.
Evidence (3)
- Last push
- 2026-10-22
- Archived
- no
- License
- MIT
Source: GitHub