brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Android/Termux constraints reference. Prevents Claude Code from suggesting commands that fail silently on Android (sudo, systemd, non-Termux paths, etc.).
Claude Code
$ npx -y skills add ferrumclaudepilgrim/claude-code-android --skill termux-safe --agent claude-code
Codex
$ npx skills add ferrumclaudepilgrim/claude-code-android --skill termux-safe -a codex -y
Cursor
$ npx skills add ferrumclaudepilgrim/claude-code-android --skill termux-safe -a cursor -y
Gemini CLI
$ npx skills add ferrumclaudepilgrim/claude-code-android --skill termux-safe -a gemini-cli -y
GitHub Copilot
$ npx skills add ferrumclaudepilgrim/claude-code-android --skill termux-safe -a github-copilot -y
OpenCode
$ npx skills add ferrumclaudepilgrim/claude-code-android --skill termux-safe -a opencode -y
Windsurf
$ npx skills add ferrumclaudepilgrim/claude-code-android --skill termux-safe -a windsurf -y
name: termux-safe description: Android/Termux constraints reference. Prevents Claude Code from suggesting commands that fail silently on Android (sudo, systemd, non-Termux paths, etc.). user-invocable: false disable-model-invocation: false # No allowed-tools field: this skill is content-only and grants no additional tool access.
> **Scope and when this applies.** These constraints apply when you are executing inside Termux on Android, regardless of how Claude Code itself was packaged. The load-bearing runtime signal is `$PREFIX === "/data/data/com.termux/files/usr"`. If that environment variable points at Termux's prefix, you are in Termux and these constraints apply, even if `process.platform` reports `"linux"` (it will report `"linux"` if Claude Code was installed via this repo's v2.9.0 Path A, which runs the linux-arm64 binary patched via glibc-runner; it will report `"android"` only on older Path A v2.x installs that used the JS bundle). If `$PREFIX` is unset or points at `/usr`, you are inside a chroot-like sandbox (for example, a Linux rootfs running under `proot-distro`, Path B) or inside a hypervisor-managed Linux VM (Path C), and standard Linux conventions apply; most of this file does not.
If the runtime signals indicate the in-Termux case, the constraints below produce **silent failures, not errors.** Every suggestion must account for them.
Prefer `pkg` (auto-updates the index before install). `apt` and `apt-get` also work but skip the auto-update:
pkg install <package> -y pkg upgrade pkg search <query>
If you're about to suggest a command that assumes standard Linux, stop and verify it works on Termux first. When in doubt, prefix with `command -v <tool> >/dev/null 2>&1` to check availability.
Native, on-device Claude Code for your Android phone. No root, no cloud VM.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.