msd-permissions

msd-permissions is a command for coding agents from ofcskn/mobile-automation-plugin. It costs 25 tokens per session (445 once invoked), scanned A, original, MIT.

A permission checker and fixer for iOS and Android mobile apps. It reviews explanations shown to users for sensitive access, such as the camera or location, and checks Android permissions that require user approval.

In plain words
What is it for?
Use it to validate permissions, inspect which permissions the code may use, and update app configuration after approving suggested fixes.
Why use it?
It catches missing or unclear permission explanations that can confuse users or cause problems during store submission.

Command

Part of the automobileapp plugin — 11 skills, 17 commands, 9 agents shipped together

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 commands/ofcskn/mobile-automation-plugin/msd-permissions
Clone the repo
git clone --depth 1 https://github.com/ofcskn/mobile-automation-plugin

Or install automobileapp, the plugin that ships this one along with the rest of its 11 skills, 17 commands, 9 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for msd-permissions

README.md
[![agentmods](https://agentmods.dev/badge/commands/ofcskn/mobile-automation-plugin/msd-permissions.svg)](https://agentmods.dev/commands/ofcskn/mobile-automation-plugin/msd-permissions)
Your own site
<a href="https://agentmods.dev/commands/ofcskn/mobile-automation-plugin/msd-permissions"><img src="https://agentmods.dev/badge/commands/ofcskn/mobile-automation-plugin/msd-permissions.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 445 The whole file, excluding the scripts and references it only reads on demand.
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.1 $0.00025 $0.00445
Opus 5 $0.00013 $0.00222
Sonnet 5 $0.00005 $0.00089
Haiku 4.5 $0.00003 $0.00044

Measured 5d ago against content hash 12c9eb253715, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

msd-permissions 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 5d 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.

commands/msd-permissions.md · 42 lines

What it actually says

Validate app permissions for store submission.

Usage

/msd-permissions {appId} — validates and offers to fix issues interactively

Steps

  1. Read .msd/memory/apps.json to find the app's path (or ask user for path)
  2. Run: node skills/managing-app-permissions/scripts/validate-permissions.js {appPath}
  3. For each ❌ error (empty iOS description):
    • Load skills/managing-app-permissions/references/ios-permissions.md
    • Show what the permission is for and a suggested description
    • Ask: "Use this description? (yes/edit/skip)"
    • If yes: read {appPath}/app.json, update the description, write back
  4. For each ⚠️ warning (generic description, deprecated Android permission):
    • Explain the risk and suggested fix
    • Ask: "Fix this? (yes/skip)"
  5. After fixes: re-run the validator to confirm all pass
  6. Show final summary: "X permissions validated, Y fixed, Z warnings remaining"

Detecting missing permissions from code

If the user says "check what permissions my code uses", scan the app source:

grep -r "expo-camera\|Camera\|expo-location\|Location\|expo-av\|Audio\|expo-contacts\|Contacts\|expo-image-picker\|ImagePicker" {appPath}/app {appPath}/components {appPath}/screens 2>/dev/null | grep -v node_modules | head -30

Then cross-reference with declared permissions.

Common fixes

Issue Fix
Empty NSCameraUsageDescription Add: "Used to scan QR codes and take profile photos"
Generic "Camera access" Replace with specific use case
WRITE_EXTERNAL_STORAGE Replace with READ_MEDIA_IMAGES if only reading photos
Missing NSMicrophoneUsageDescription with expo-av Add microphone description
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. 5d ago First seen · 42 lines · 25 tokens per session scan A 12c9eb253715

Subscribe to this mod's changes

msd-permissions is a command published in the GitHub repository ofcskn/mobile-automation-plugin (2 stars, last pushed 2mo ago), licensed MIT. It adds 25 tokens to every session and 445 once invoked, about $0.0001 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.