Skip to main content

tuna skills: an AI agent skill built into the CLI

Β· 4 min

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 with tuna whoami and, if there is no session, to ask you to log in in your own terminal.
  • It waits for the tunnel to "finish". tuna http runs 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=stdout and that the address comes from the Forwarding https://… -> localhost:3000 line.
  • It opens an interactive screen instead of getting data. tuna monitor or tuna domain without a subcommand shows a TUI. The skill lists the subcommands and the --json and -o json flags.
  • 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, clear commands, installing a service, reading secret values into the chat: the skill allows all of this only after you confirm. The agent may delete with --yes only 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:

ReferenceCovers
tunnels.mdexposing a port, testing webhooks, a stable address, several tunnels, running as a service
secrets.mdrunning with secrets, reading, changing and exporting them, binding a project
monitors.mdmonitor status, heartbeats for cron jobs, pausing
configuration.mdthe 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: