Agent skill

Termux

by niki914 in niki914/zafiro

Load this skill for anything involving Termux (com.termux) — first-time SSH setup, connecting to Termux, or a Termux connection that stopped working.

MITAuto-check passedMobile

Install Termux

skills CLI
$ npx skills add niki914/zafiro --skill termux -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install niki914/zafiro termux --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/niki914/zafiro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/app/src/main/assets/skills/termux .claude/skills/termux && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
termux
GitHub stars
231
Token cost
~688 tokens
SKILL.md length
415 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Load this skill for anything involving Termux (com.termux) — first-time SSH setup, connecting to Termux, or a Termux connection that stopped working.

  • Mobile work in your project
  • SKILL.md covers No memory of Termux yet (never… and Memory already has the…
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Termux is an agent skill from niki914/zafiro. Load this skill for anything involving Termux (com.termux) — first-time SSH setup, connecting to Termux, or a Termux connection that stopped working.

Its SKILL.md is about 690 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Mobile. It works with Android. The repository describes itself as: Open-source BYOK AI agent for Android. Full phone control, native Shell & Python 3, with Skills and MCP support. Built with Material 3 Expressive. Works via Shizuku (root… The licence is MIT.

When your agent uses it

  • Mobile work in your project

Example prompts

  • “/termux”

What it can do on your machine

Read from SKILL.md and the folder at commit d50b2ab. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Termux loads about 688 tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 415 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~688

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from niki914/zafiro at commit d50b2ab, republished under its MIT licence (© niki914). 415 words, ~688 tokens.

Download SKILL.mdSave it as .claude/skills/termux/SKILL.md (or your agent's skills folder).
name
termux
description
Load this skill for anything involving Termux (com.termux) — first-time SSH setup, connecting to Termux, or a Termux connection that stopped working.

Termux

Termux is a separate Android app. Zafiro cannot run anything inside it directly, so SSH is the only way in.

Connecting needs host, port, username and password. Those exist only in the user's Termux install, so the user has to supply them; until all four are known no Termux work is possible. Once known, record all of them — password included — with the memory tool.

Defaults of a normal Termux install: SSH is not installed out of the box, the server listens on 127.0.0.1:8022 (loopback is enough, no LAN IP or Wi-Fi involved), the username is what whoami prints and looks like u0_a123, password authentication is on by default and must stay on because Zafiro's SSH client cannot use a private key, and sshd is an ordinary process inside Termux that dies whenever Termux is killed — so a refused or timed-out connection usually just means Termux is no longer running.

No memory of Termux yet (never configured)

Setup happens in Termux by the user: passwd needs a real terminal, and we cannot type into Termux's terminal view. Paste this block into the reply and ask the user to run it, then report whatever Termux prints, errors included:

sh
pkg update -y && pkg install -y openssh
passwd
whoami
sshd

pkg install provides sshd, passwd sets the login password and never echoes it, whoami prints the username, sshd starts the server. If Termux is not installed at all, the user has to install it from F-Droid and open it once first — do not install it yourself.

When the user reports the username and password, save host 127.0.0.1, port 8022 and both values to memory, then connect and confirm the login actually works before saying setup is complete. If something failed, ask for the exact error rather than guessing corrections.

Show full SKILL.md (129 more words)Show less

Memory already has the connection details

Connect with the remembered values. If it fails, ask the user:

  • Connection refused or timed out — Termux is closed and sshd is gone. Ask whether Termux is running; if not, ask the user to open Termux and run sshd. DO NOT launch or operate anything on the device yourself unless the user asks for it.
  • Authentication failed — username or password is wrong. Ask the user to confirm both, then update memory.
  • Termux was changed or reinstalled — username and password are new; run the setup block again and replace the old memory entries rather than keeping both.

HARD GATE

  • DO NOT launch Termux unless the user asks you to 'launch'
  • Memorize the username, password, host, and port and any possible lessons during the experience

© niki914, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in app/src/main/assets/skills/termux of niki914/zafiro.

Open the folder on GitHubat commit d50b2ab

Compare with similar skills

Termux next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Termux compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Termux this skillniki914/zafiro231—~688Automated safety check: PassMIT
Compose Multiplatform Patternsmonta-app/ocpp-emulator1805 repos~2kAutomated safety check: PassApache-2.0
Phone HarnessShawnPana/phone-harness3.2k—~4.3kAutomated safety check: PassMIT
Stylesarindamxd/camerax-android1324 repos~2.3kAutomated safety check: PassApache-2.0
Verified Emailarindamxd/camerax-android1324 repos~4.7kAutomated safety check: PassApache-2.0
Argent Metro Debuggerbbplayer-app/BBPlayer1.2k—~3.4kAutomated safety check: PassMIT

Similar skills

  • Compose Multiplatform Patterns

    monta-app/ocpp-emulator

    Compose Multiplatform and Jetpack Compose patterns for KMP projects — state management, navigation, theming, performance, and platform-specific UI.

    180 GitHub starsUsed in 5 repos~2k tokens
    MobileAuto-check passed
  • Phone Harness

    ShawnPana/phone-harness

    Control the user's phone — an iPhone through the Mac's iPhone Mirroring window, an Android over adb, or a rented cloud Android: open apps, tap, type, swipe, read the screen.

    3.2k GitHub stars~4.3k tokensUpdated yesterday
    MobileAuto-check passed
  • Styles

    arindamxd/camerax-android

    A skill your agent uses to integrate the Jetpack Compose Styles API into an Android project.

    132 GitHub starsUsed in 4 repos~2.3k tokens
    MobileAuto-check passed
  • Verified Email

    arindamxd/camerax-android

    Provides a complete workflow for implementing verified email retrieval on Android Credential Manager API.

    132 GitHub starsUsed in 4 repos~4.7k tokens
    MobileAuto-check passed
  • Argent Metro Debugger

    bbplayer-app/BBPlayer

    Debug a JS runtime via CDP using argent debugger tools. An agent skill from bbplayer-app/BBPlayer.

    1.2k GitHub stars~3.4k tokensUpdated yesterday
    MobileAuto-check passed
  • 统一 Android XML 资源命名:layout、drawable、mipmap、color、values、id 的前缀与 snakecase 规则;把颜色/圆角/描边/状态编码进文件名(bg、border、textcolor…selector)。

    1.6k GitHub stars~1.3k tokensUpdated 1 mo ago
    MobileAuto-check passed

More from niki914/zafiro

  • Release New Version

    niki914/zafiro

    A skill your agent uses when the user wants to release a new Zafiro version — drafting bilingual release notes, deciding the next version number, bumping app/build.gradle.kts, tagging, and…

    231 GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed
  • Add Worktree

    niki914/zafiro

    A skill your agent uses when the user wants to start work in a new git worktree — "new worktree", "spin up a worktree/branch for this", "work on X in another worktree", "branch this off".

    231 GitHub stars~669 tokensUpdated yesterday
    Auto-check passed
  • Install a skill from a public GitHub repository onto this device.

    231 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Skill Creator

    niki914/zafiro

    Create new skills, modify and improve existing skills, and measure skill performance.

    231 GitHub stars~2.9k tokensUpdated yesterday
    Auto-check passed
  • Test Triage

    niki914/zafiro

    Use before writing, adding, or modifying any unit test in this repo — before creating a Test.kt file or a @Test function, and before touching an existing test after a refactor.

    231 GitHub stars~935 tokensUpdated yesterday
    Auto-check passed
  • Prompt Engineering

    niki914/zafiro

    Guidelines to writing prompts, docs, or tasks for AI to read or execute, with strict context isolation.

    231 GitHub stars~666 tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Termux

What does Termux do?

Load this skill for anything involving Termux (com.termux) — first-time SSH setup, connecting to Termux, or a Termux connection that stopped working. Termux is an agent skill from niki914/zafiro.termux) — first-time SSH setup, connecting to Termux, or a Termux connection that stopped working.

When should I use Termux?

Termux fits situations like: mobile work in your project.

How do I install Termux in Claude Code?

Run `npx skills add niki914/zafiro --skill termux -a claude-code`. Or copy the skill folder (app/src/main/assets/skills/termux in niki914/zafiro) into .claude/skills/termux in your project. Claude Code loads it when a task matches its description.

How do I install Termux in Codex?

Run `npx skills add niki914/zafiro --skill termux -a codex`. Or copy the skill folder (app/src/main/assets/skills/termux in niki914/zafiro) into .agents/skills/termux in your project. Codex loads it when a task matches its description.

Can I use Termux in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add niki914/zafiro --skill termux -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/termux, .gemini/skills/termux, .github/skills/termux and .opencode/skills/termux in your project.

What does Termux need to run?

SKILL.md names no scripts, command-line tools or credentials: Termux is instructions for the agent only.

Does Termux access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Termux safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Termux use?

Termux is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Termux use?

About 688 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Termux?

Skills that share tags, products or a category with Termux: Compose Multiplatform Patterns (monta-app/ocpp-emulator, 180 stars), Phone Harness (ShawnPana/phone-harness, 3.2k stars), Styles (arindamxd/camerax-android, 132 stars) and Verified Email (arindamxd/camerax-android, 132 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Termux?

niki914 (a GitHub user) maintains it in niki914/zafiro, which has 231 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 8, 2026.

Source: niki914/zafiro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.