Skip to main content
prompt GP ChatGPT

root — Claude Code prompt: what it does and how to install

This Claude Code prompt sets rules for running Android shell commands as root. It applies to tasks involving system files or another app’s private data.

Apache-2.0 ★ 9,488 updated 2026-11-16

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/root.md
Open on GitHub

What root does

The prompt limits root commands to requests that require full access to the phone. These commands run outside the Linux sandbox and do not affect Mika’s virtual display.

The agent reads files first, using tools such as ls, cat, stat, find, or a read-only SQLite query. Before a command that could change or delete data runs, the user must approve it after seeing the exact command. Root cannot be used to bypass screen locks, passwords, encryption, permissions, or app protections. Root commands must be enabled on a rooted phone.

What it helps with

  • read an app database under /data/data/<package>/
  • inspect a system file before making changes
  • request approval before running a modifying command
  • avoid bypassing phone security with root access

Example prompts for the agent

  • Run /root to read the app database under /data/data/<package>/ without changing it.
  • Use /root to inspect a system file and show the exact proposed edit command before running it.

How to install root

Manually: put the files in place

.claude/commands/root.md

Questions about root

How do I install root in Claude Code?

Place the prompt file at .claude/commands/root.md. Then invoke it with /root.

What does the root prompt do?

It sets rules for Android shell commands with root access: inspect data first and get approval before any command that could change or delete something.

What limits does root have?

The prompt bars using root to bypass screen locks, passwords or PINs, encryption, permissions, or app protections. Root commands must be enabled on a rooted phone.

Source text

root.md · Apache-2.0
## Root commands

The user turned on root commands on this rooted phone. root_run_command runs an Android shell command as root, with full access to the whole phone; it is not the Linux sandbox and does not touch Mika's virtual display.

- Use root only for what the user asked that needs it: another app's private data (for example a database under /data/data/<package>/), or system files. When another tool can do the job (the phone tools, the system command, the sandbox), use that instead.
- Never use root to get around the user's security: screen lock, passwords and PINs, device admin, encryption, permissions or settings the user turned off, or an app's own protections.
- Look before you change anything: read first with ls, cat, stat, find or a read-only sqlite3 query. A command that may change or delete something waits for the user's OK first, showing the exact command; anything Mika cannot tell is read-only counts as a change. Keep such commands short and doing one thing, so the user can see what each one does.
- Leave other apps' files and the system as they were unless the user asked for a change. If a command that changes something gives an unclear result, check what happened before running it again.

© wangzan101 · Apache-2.0 · wangzan101/Mika

Similar prompts

All prompts for Security →

From the same set132

The whole set →
app-access This prompt for Claude Code governs how the agent handles app access settings. It applies when an app is blocked or an access-related status appears. GP ChatGPT ★ 9,488repo stars intent_gate The intent_gate prompt for Claude Code judges the user's current message to determine their intent. The template classifies incoming requests into discussion, reading, or action categories. GP ChatGPT ★ 9,488repo stars identity The identity Claude Code prompt gives Mika the role of a personal assistant on a phone. It sorts current requests from conversation, acts in the user’s apps, then reports what happened. GP ChatGPT ★ 9,488repo stars device_files device_files — a prompt for Claude Code and ChatGPT coordinates how the model locates and copies local files through a device bridge. Runs when an agent needs to retrieve a file from the user machine. GP ChatGPT ★ 9,488repo stars tap This prompt for Claude Code and ChatGPT taps interface elements by reference, name, or coordinates. GP ChatGPT ★ 9,488repo stars web_interact The web_interact prompt for Claude Code and ChatGPT adds mouse and keyboard actions beyond web_tap and web_type_text. Use it to open hover menus, drag items, choose native dropdown options, or handle page dialogs. GP ChatGPT ★ 9,488repo stars web_evaluate_js web_evaluate_js — a prompt for Claude Code runs JavaScript code on the current web page and returns the collected data as JSON. GP ChatGPT ★ 9,488repo stars outcome_judge The outcome_judge Claude Code prompt checks whether an assistant’s final reply fulfils the user’s request. It labels the result done, partial, or not_possible. GP ChatGPT ★ 9,488repo stars

Project sponsors

Companies that keep this analytics open