debug-menu

Generate a debug menu for iOS and macOS apps with feature flags and environment switching.

114|8|Updated Mar 4, 2025
One-click install
npx skills add https://github.com/gustavscirulis/snapgrid --skill debug-menu-gustavscirulis
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: debug-menu
Source: https://github.com/gustavscirulis/snapgrid/tree/main/.claude/skills/skills/generators/debug-menu
Command: npx skills add https://github.com/gustavscirulis/snapgrid --skill debug-menu-gustavscirulis

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill generates a comprehensive in-app debug menu for developers, enabling runtime control over features, environments, and diagnostics without needing to recompile the application.

Core Features & Use Cases

  • Feature Flag Toggles: Dynamically enable or disable features during development.
  • Environment Switching: Easily switch between development, staging, and production API endpoints.
  • Network Log Viewer: Inspect recent network requests and responses directly within the app.
  • Cache Management: Clear various application caches (image, HTTP, all).
  • Crash Simulation: Trigger intentional crashes for testing error reporting tools.
  • Diagnostic Export: Gather and export device and app information for debugging.
  • Use Case: A developer needs to test a new feature flag and verify API calls on the staging environment. They activate the debug menu via a shake gesture, toggle the feature flag, switch the environment, and then inspect the network logs to confirm successful requests.

Quick Start

Use the debug-menu skill to generate a developer debug panel with feature flag toggles and environment switching.

Frequently Asked Questions about debug-menu

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add an in-app debug menu to my iOS app for feature flag toggles?▼

You can add an in-app debug menu to your iOS app by generating a developer panel that provides runtime control over feature flags, environment switching, and network logs using a ViewModifier, ensuring all code is wrapped in `#if DEBUG` blocks.

Can I switch API environments without recompiling my macOS application?▼

Yes, you can switch API environments without recompiling your macOS application by using a generated debug menu that allows runtime switching between development, staging, and production endpoints.

How do I view network logs directly inside my iOS application during testing?▼

To view network logs inside your iOS application, you can use a debug menu network log viewer to inspect recent network requests and responses directly within the app at runtime.

How do I activate a developer debug panel using a shake gesture on iOS?▼

You can activate a developer debug panel using a shake gesture or hidden taps on iOS by integrating a debug menu that responds to these specific gestures to reveal the diagnostic interface.

Does the generated debug menu code stay in my production iOS release?▼

No, the generated debug menu code does not stay in your production release because all generated code is conditionally compiled within `#if DEBUG` blocks, ensuring it is excluded from production builds.

How do I clear app cache and trigger crash simulations for testing error reporting?▼

You can clear app cache and trigger crash simulations by using a debug menu that includes cache management for clearing image and HTTP caches, alongside intentional crash simulation for testing error reporting tools.