termux-api
Skill1 starsChanged 57 days agoMITView on GitHub
Attribute a hanging, empty, or failing termux-* command to the right layer (Termux:API app, termux-api package, or an Android runtime permission) before relying on it. Use when termux-battery-status, termux-notification, termux-clipboard-get, termux-location, or similar commands hang, print nothing, or report a permission error. Do NOT use for storage links (see storage-permissions), for commands inside proot, or for ordinary shell failures.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- pepebot-space/skillstheir own version, first seen Feb 16, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- pepebot-space/skills★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- background-processesSkill
- git-credentialsSkill
- github-actionsSkill
- node-native-buildSkill
- package-troubleshootingSkill
- proot-boundariesSkill
- python-native-buildSkill
- storage-permissionsSkill
- termux-adbSkill
- termux-backupSkill
- termux-environmentSkill
- termux-networkSkill
- termux-servicesSkill
- termux-sshdSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Always call with timeout, for example timeout 10 termux-battery-status, so a missing app cannot block the agent.
- Very specific: line 44
Run one harmless read, timeout 10 termux-battery-status, and confirm structured JSON output.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Termux:API
Purpose
Separate three independent requirements (the Termux:API Android app, the termux-api package, and Android runtime permissions) so a failing termux-* command is attributed to the right layer.
When to use
A termux-* command that talks to Android (termux-battery-status, termux-clipboard-get, termux-notification, termux-location, termux-sms-send, termux-camera-photo) hangs, prints nothing, or reports a permission error.
When NOT to use
- Storage links and shared storage:
storage-permissions. - Commands inside proot: they are usually unusable there;
proot-boundaries. - Core Termux commands such as
termux-wake-lockandtermux-setup-storage; they do not need the Termux:API app.
Preconditions
Native Termux only. Run sh scripts/check-termux-api.sh; it is bounded and read-only.
Decision tree
- No
termux-*API binaries onPATH: thetermux-apipackage is missing in this environment. - Binaries exist but calls time out: the Termux:API Android app is missing, stopped, or restricted by battery optimization.
- App and package both present but calls fail: Termux and plugin apps came from different sources or signing keys. Reinstall them from one source.
- One command reports a permission error: grant the matching Android runtime permission to Termux:API (location, SMS, camera, contacts, call log) in Android settings. Unix modes are irrelevant.
termux-notificationshows nothing on recent Android: the notification permission for Termux:API may be off (Android 13 and later).termux-clipboard-getreturns empty while the screen or another app has focus: Android restricts background clipboard reads (Android 10 and later). Retry with Termux in the foreground before blaming the package.- Always call with
timeout, for exampletimeout 10 termux-battery-status, so a missing app cannot block the agent.
Example
- Situation: termux-battery-status hangs with no output.
- Without the skill: Reinstalls the termux-api package repeatedly.
- With the skill: Wraps the call in
timeout 10, sees binaries present but the call timing out, and points at the Termux:API app being missing, stopped, or battery-restricted.
Safety
Many commands expose sensitive data (location, SMS, contacts, call log, clipboard). Request only the one capability the task needs, do not echo results beyond the task, and ask before any command that sends, calls, writes, or notifies.
Verification
Run one harmless read, timeout 10 termux-battery-status, and confirm structured JSON output.
Handoffs
termux-environmentfor Android version and Termux source facts.background-processeswhen Termux:API is killed or restricted by battery settings.storage-permissionswhen the real failure is a path, not an API call.proot-boundarieswhen the call was made inside proot.
Report
Which layer failed (package, app, permission, or foreground restriction), the single user-side action required, and the result of the verification read.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

