tuna skills: an AI agent skill built into the CLI
AI agents can already run tuna: ask Claude Code to "show my localhost:3000 to the client", and it writes tuna http 3000. But an agent only knows what it has managed to read about Tuna, so it guesses flags and trips over things a person wouldn't think twice about. tuna CLI 0.43.0 adds the tuna skills command: it installs a skill that tells the agent how to work with tunnels, secrets and monitors.
tuna skills install
Why an agent needs a skillβ
An agent can read tuna <command> --help on its own. Where it goes wrong is everything help doesn't cover:
- It runs
tuna login. The command opens a browser and waits, and the agent hangs along with it. The skill tells the agent to check the login withtuna whoamiand, if there is no session, to ask you to log in in your own terminal. - It waits for the tunnel to "finish".
tuna httpruns until it is stopped, and in a pseudo-terminal it also opens an interactive screen. The skill explains that a tunnel is started in the background with--log=stdoutand that the address comes from theForwarding https://β¦ -> localhost:3000line. - It opens an interactive screen instead of getting data.
tuna monitorortuna domainwithout a subcommand shows a TUI. The skill lists the subcommands and the--jsonand-o jsonflags. - It makes up its own subdomains. If the repository has a
.tuna.yml, the skill requires the agent to take tunnel names and subdomains from it: they are the team's convention. - It does too much. Deletion,
clearcommands, installing a service, reading secret values into the chat: the skill allows all of this only after you confirm. The agent may delete with--yesonly if you explicitly agreed in the same conversation.
The skill also has a map of the platform: which Tuna services work from the CLI, which are dashboard-only, and where the documentation for each one lives. When a task goes beyond the skill, the agent reads the Markdown documentation instead of guessing.
What's insideβ
The tuna skill is a SKILL.md with general rules plus four references that the agent reads depending on the task:
| Reference | Covers |
|---|---|
tunnels.md | exposing a port, testing webhooks, a stable address, several tunnels, running as a service |
secrets.md | running with secrets, reading, changing and exporting them, binding a project |
monitors.md | monitor status, heartbeats for cron jobs, pausing |
configuration.md | the full .tuna.yml, traffic policy, the CLI config, environment variables |
The skill is written in English so that it works the same way with any agent.
Installationβ
$ tuna skills install
The skill goes into ~/.agents/skills and, if there is a ~/.claude directory, into ~/.claude/skills as well. Most agents read skills from there. If your agent looks for skills somewhere else, pass the directory with the --dir flag:
$ tuna skills install --dir ~/.kiro/skills
installed ~/.kiro/skills/tuna
To give the skill to the whole team, install it into the repository and commit it:
tuna skills install --project
The skill goes into .agents/skills and .claude/skills at the root of the git repository. tuna will suggest adding a line to AGENTS.md or CLAUDE.md so that the agent remembers the skill even when you don't mention Tuna:
This project uses Tuna (see .tuna.yml): load the tuna skill before running tuna commands.
Updatesβ
The skill is built into the binary, and its version matches the CLI version. There is nothing to download separately. After you update tuna, any command will remind you that the skill is outdated:
Warning: tuna agent skills in /home/user/.agents/skills are outdated, run: tuna skills update
tuna skills update updates the skill both in your home directory and in the current repository. If you edited the skill by hand, update leaves it alone and tells you so. To replace an edited skill with the version from the CLI, add --force. tuna skills list shows what is installed where:
$ tuna skills list
NAME STATE PATH
tuna current /home/user/.agents/skills/tuna (= /home/user/.claude/skills/tuna)
If you'd rather not install anything, the agent can read the skill straight from the binary:
tuna skills get tuna
tuna skills get tuna references/secrets.md
All commands and skill states are in the documentation. To update the CLI to 0.43.0:
sh -c "$(curl -sSLf https://releases.tuna.am/tuna/get.sh)"
Other options are in the installation guide.
Leave feedbackβ
If you enjoy using Tuna, or on the contrary you are not happy with something, please leave feedback.
Newsβ
We announce new features and posts on our Telegram channel. Subscribe so you don't miss anything.
Helpβ
We value our users and carefully review every request. If you have any problems with tuna, please contact us in one of the following ways: