proot-boundaries
Skill2 starsChanged 57 days agoMITView on GitHub
Decide whether a failure belongs to native Termux or a proot distro and which side should own the package, interpreter, and project path. Use when something works in one environment but not the other, when Ubuntu or Debian runs under Termux, when a glibc-only binary is needed, or before installing, backing up, or resetting a proot distro. Do NOT use for ordinary native Termux package errors, and never use proot-distro reset or remove as a generic repair.
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- background-processesSkill
- git-credentialsSkill
- github-actionsSkill
- node-native-buildSkill
- package-troubleshootingSkill
- python-native-buildSkill
- storage-permissionsSkill
- termux-adbSkill
- termux-apiSkill
- termux-backupSkill
- termux-environmentSkill
- termux-networkSkill
- termux-servicesSkill
- termux-sshdSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Stop packages, paths, and assumptions from leaking between native Termux and a proot distro, and pick the side that should own a given task.
- Distinctive: line 19
Before installing, backing up, resetting, or removing a distro.
- Very specific: line 26
Run sh scripts/detect-boundary.sh.
- Distinctive: line 50
Keep the distro backup until the new setup is verified.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Native Termux and proot Boundaries
Purpose
Stop packages, paths, and assumptions from leaking between native Termux and a proot distro, and pick the side that should own a given task.
When to use
- A command behaves differently in a proot Ubuntu or Debian than in native Termux.
- An Android-facing feature (Termux:API, storage links) is missing inside proot.
- A prebuilt glibc binary or wheel is needed.
- Before installing, backing up, resetting, or removing a distro.
When NOT to use
- The shell is clearly native Termux and the error is a plain
pkgor build error: usepackage-troubleshootingorpython-native-build. - As a reason to move work into proot by default. Proot costs storage, I/O speed, and ptrace overhead.
Preconditions
Run sh scripts/detect-boundary.sh. Treat a prompt label as unreliable; use $PREFIX, tracer_pid, os_release_id, and the installed distro list as evidence.
Decision tree
- Native Termux uses Android and Bionic conventions and
pkg. A proot distro has its own userspace, libc (usually glibc), and package manager, but still runs under Android's process and storage limits. - Android-facing commands (
termux-*, storage links) belong to the native side. - Install build dependencies on the side that launches the process. Binaries do not move across the boundary.
- Choose proot when the task needs glibc-only prebuilt binaries or Debian packages that Termux lacks. Choose native when it needs Termux:API, shared storage, services, or speed.
- The network is shared with the host. Ports and
localhostbehave the same on both sides. - Files are not shared unless bound. A project under the distro's
/rootis not under Termux$HOME, and the reverse needs a bind at login. - There is no systemd and no real init inside proot. Service questions go to
termux-serviceson the native side. - Cross-boundary paths and networking must be tested, not assumed.
Example
- Situation: A vendor CLI that needs glibc fails to start in Termux.
- Without the skill: Installs libraries piecemeal on the native side hoping the binary finds them.
- With the skill: Chooses a proot distro for that tool, installs its dependencies on the proot side, binds the project directory at login, and keeps
termux-*calls on the native side.
Safety
Installing, resetting, or removing a distro is destructive to everything inside it. Back up first (proot-distro backup <alias> where the installed version supports it, or termux-backup), name exactly what will be lost, and get confirmation. Do not recommend proot-distro reset or remove as a generic repair.
Verification
Report which side owns the process, package manager, interpreter, and project path, then run the failing command on that side.
Rollback
Keep the distro backup until the new setup is verified. Restore only after confirmation.
Handoffs
termux-environmentfor a fuller snapshot.package-troubleshootingfor nativepkgerrors.python-native-buildwhen a glibc wheel is the real problem.storage-permissionswhen a path is invisible inside proot.termux-backupbefore any destructive distro operation.
Report
Which side owns each of process, package manager, interpreter, and project path, and whether proot is justified or native Termux is enough.
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.

