debug-menu

debug-menu is a skill for Claude Code, Codex from rshankras/claude-code-apple-skills. It costs 57 tokens per session (2,222 once invoked), scanned A, original, MIT.

A developer-only menu inside an iOS or macOS app for inspecting and changing diagnostic settings during development. It is included only in DEBUG builds, so it is excluded from production builds.

In plain words
What is it for?
Use it to add a debug panel, developer tools menu, hidden tap or shake-to-debug access, environment switching, feature toggles, cache controls, and diagnostic tools.
Why use it?
It gives developers one place to test feature flags, switch between environments, inspect network logs, clear caches, trigger crashes, and export diagnostic information. This makes testing and troubleshooting easier during development.

Skill for Claude CodeCodex

Part of the apple-skills plugin — 147 skills shipped together , and of apple-skills

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 skills/rshankras/claude-code-apple-skills/debug-menu
Any agent
npx skills add rshankras/claude-code-apple-skills --skill debug-menu
Clone the repo
git clone --depth 1 https://github.com/rshankras/claude-code-apple-skills

Made for: Claude Code, Codex.

Or install apple-skills, the plugin that ships this one along with the rest of its 147 skills.

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 debug-menu

README.md
[![agentmods](https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/debug-menu.svg)](https://agentmods.dev/skills/rshankras/claude-code-apple-skills/debug-menu)
Your own site
<a href="https://agentmods.dev/skills/rshankras/claude-code-apple-skills/debug-menu"><img src="https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/debug-menu.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,222 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 $0.00057 $0.02222
Opus 5 $0.00028 $0.01111
Sonnet 5 $0.00011 $0.00444
Haiku 4.5 $0.00006 $0.00222

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

Security

Grade A, and why

debug-menu 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.

skills/generators/debug-menu/SKILL.md · 281 lines

How it starts

The opening of the file, as written. The whole thing — 281 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Debug Menu Generator

Generate a comprehensive developer debug menu accessible via shake gesture or hidden tap. Includes feature flag toggles, environment switching, network log viewer, cache clearing, crash trigger, and diagnostic info export. All code is wrapped in #if DEBUG so it never ships to production.

When This Skill Activates

Use this skill when the user:

  • Asks for a "debug menu" or "developer menu"
  • Wants "dev tools" or a "debug panel"
  • Mentions "shake to debug" or "diagnostic menu"
  • Wants to "toggle feature flags" from the app
  • Asks about "environment switching" (dev/staging/production)
  • Wants a "network log viewer" in the app

Pre-Generation Checks

1. Project Context Detection

  • Check deployment target (iOS 17+ / macOS 14+ required for @Observable)
  • Check Swift version (requires Swift 5.9+)
  • Identify source file locations and project structure

2. Conflict Detection

Search for existing debug/dev menu code:

Glob: **/*Debug*Menu*.swift, **/*DevMenu*.swift, **/*DevTools*.swift, **/*DebugPanel*.swift
Grep: "DebugMenu" or "DevMenu" or "motionEnded" or "shake" in *.swift

If existing debug menu found:

  • Ask if user wants to replace or extend it
  • If extending, integrate new sections into existing structure

3. Feature Flags Detection

Search for existing feature flag setup:

Glob: **/*FeatureFlag*.swift, **/*Feature*Toggle*.swift
Grep: "FeatureFlag" or "featureFlag" or "isFeatureEnabled"

If found, integrate debug menu toggles with existing feature flag system rather than creating a new one.

Configuration Questions

Ask user via AskUserQuestion:

  1. Access method?

    • Shake gesture (shake device to open)
    • Hidden tap (5-tap on a hidden area)
    • Both (shake + hidden tap) -- recommended
  2. Sections to include? (multi-select)

    • Feature flags (toggle flags on/off at runtime)
    • Environment switcher (dev / staging / production)
    • Network logs (recent requests with status codes and timing)
    • Cache tools (clear image cache, HTTP cache, all caches)
    • Crash trigger (force crash for Crashlytics testing)
    • Diagnostics (device info, memory, disk, app version)

Read the full file on GitHub · 281 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 281 lines · 57 tokens per session scan A 70e7b6c30e8f

Subscribe to this mod's changes

debug-menu is a skill published in the GitHub repository rshankras/claude-code-apple-skills (696 stars, last pushed 1mo ago), licensed MIT. It adds 57 tokens to every session and 2,222 once invoked, about $0.0003 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-30.