Borrowing it
Nothing to install: this file belongs to ferrumclaudepilgrim/claude-code-android. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ferrumclaudepilgrim/claude-code-android/main/.claude/skills/termux-safe/SKILL.mdgit clone --depth 1 https://github.com/ferrumclaudepilgrim/claude-code-androidWrote 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.
[](https://agentmods.dev/skills/ferrumclaudepilgrim/claude-code-android/termux-safe)<a href="https://agentmods.dev/skills/ferrumclaudepilgrim/claude-code-android/termux-safe"><img src="https://agentmods.dev/badge/skills/ferrumclaudepilgrim/claude-code-android/termux-safe/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ferrumclaudepilgrim/claude-code-android/termux-safe"><img src="https://agentmods.dev/badge/skills/ferrumclaudepilgrim/claude-code-android/termux-safe.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00036 | $0.01102 |
| Opus 5.5 | $0.00014 | $0.00441 |
| Sonnet 5.5 | $0.00007 | $0.00220 |
| Haiku 4.5 | $0.00004 | $0.00110 |
Grade A, and why
termux-safe 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 11d 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.
How it starts
The opening of the file, as written. The whole thing — 49 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Android / Termux Environment Constraints
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 ifprocess.platformreports"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$PREFIXis unset or points at/usr, you are inside a chroot-like sandbox (for example, a Linux rootfs running underproot-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.
Hard Rules: Never Suggest These
- No
sudo. Root does not exist. Nosu, nodoas, no privilege escalation of any kind. - No
systemctlorsystemd. Android does not use systemd. Nojournalctl, noservice, no unit files. - No standard Linux paths.
/usr/bin,/etc,/vardo not exist or are not writable. Termux paths:- Home:
/data/data/com.termux/files/home - Prefix:
/data/data/com.termux/files/usr - Binaries:
$PREFIX/bin - Config:
$PREFIX/etc
- Home:
- No ports below 1024. No root = no binding to 80, 443, etc. Use 1024+.
- Prefer
pkgoverapt. Both work, butpkgauto-updates the package index before installing. - No Docker, no containers. The kernel does not support them without root.
Silent Failure Modes
- Node.js is not required by this repo's
install.sh. The patched linux-arm64 claude binary is self-contained. If Node is installed separately on native Termux, prefer v25+: v24 had a documented startup hang on ARM64 that was resolved in v25. - File descriptor limits vary by device. Check with
ulimit -n. Avoid spawning many concurrent processes. - Android can stop background work. Its phantom process controls can kill excess child processes, and battery and background policies can suspend or kill Termux. Keep concurrent subagents and child processes modest. Where Developer options offers "Disable child process restrictions", turning it on helps with the first limit.
tmuxornohupkeep work running when a terminal window closes, but not after Android kills Termux or the phone reboots. process.platformreporting varies by install path. On Path A v2.9.0 (the linux-arm64 binary patched via glibc-runner), Node.js reportsprocess.platform === "linux"even though you are inside Termux. On older Path A v2.x (the JS-bundle npm install) it reports"android". On Path B (proot-distro Ubuntu) and Path C (AVF), it reports"linux"and you are not in Termux. The reliable cross-path signal that you are still in Termux is$PREFIX === "/data/data/com.termux/files/usr".#!/usr/bin/envscripts fail under the Path A launcher. When the Bash tool runs a script directly and its first line is#!/usr/bin/env bash(orpython3,node), it exits with "bad interpreter": Android has no/usr/bin/env, and Claude Code's subprocesses do not carry Termux's fix for it. Run the interpreter explicitly:bash ./script.sh,python ./script.py. Tools called by name and#!/bin/shscripts are unaffected.- Prefer
command -vto check command availability. It is a shell builtin.whichis available withpkg install which, but this repo's installers do not explicitly install it.
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.
- 11d ago Changed · +2 lines 5ffabcb05590
- 2mo ago First seen · 47 lines · 36 tokens per session scan A 356c8306c77c
termux-safe is a skill published in the GitHub repository ferrumclaudepilgrim/claude-code-android (321 stars, last pushed 12d ago), licensed MIT. It adds 36 tokens to every session and 1,102 once invoked, about $0.0001 per session on Opus 5.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.
termux-safe compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| termux-safeferrumclaudepilgrim/claude-code-android | Skill | 321 | 12d ago | MIT | A | 36 | Claude Code |
| kotlin-expertpersonamanagmentlayer/pcl | Skill | 44 | 12d ago | Apache-2.0 | A | 55 | Claude Code |
| android-expertpersonamanagmentlayer/pcl | Skill | 44 | 12d ago | Apache-2.0 | A | 64 | Claude Code |
| react-native-expertpersonamanagmentlayer/pcl | Skill | 44 | 12d ago | Apache-2.0 | A | 62 | Claude Code |
| atak-pluginjoshuafuller/atak-plugin-skill | Skill | 3 | 3mo ago | MIT | A | 96 | Claude Code, Codex |
| android-ui-journey-testinglingxling/awesome-skills-cn | Skill | 329 | 1mo ago | MIT | A | 27 | Claude Code |
| mobile-designmanutej/luxor-claude-marketplace | Skill | 63 | 4mo ago | none | A | 23 | Claude Code |