> Markdown version of https://tuna.am/en/blog/agent-skills/. Documentation index: [llms.txt](https://tuna.am/en/llms.txt), full text in one file: [llms-full.txt](https://tuna.am/en/llms-full.txt). Any page is available as Markdown: append `.md` to its URL without the trailing slash.

[Blog](https://tuna.am/en/blog.md)|[New features](https://tuna.am/en/blog/tags/features)

# tuna skills: an AI agent skill built into the CLI

November 30 · 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.

```shell
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](https://tuna.am/en/blog/docs-for-ai-agents.md) 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

```shell
$ 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:

```shell
$ 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:

```shell
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:

```text
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:

```text
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:

```shell
$ 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:

```shell
tuna skills get tuna
tuna skills get tuna references/secrets.md

```

All commands and skill states are in the [documentation](https://tuna.am/en/docs/guides/agent-skills.md). To update the CLI to 0.43.0:

```shell
sh -c "$(curl -sSLf https://releases.tuna.am/tuna/get.sh)"

```

Other options are in the [installation guide](https://tuna.am/en/docs/guides/install/install-cli.md).

## Leave feedback

If you enjoy using Tuna, or on the contrary you are not happy with something, please [leave feedback](https://my.tuna.am/?show_feedback=1&lang=en).

![](/blog/img/2024-08-22/feedback.gif)

## News

We announce new features and posts on our [Telegram channel](https://t.me/tuna_am). 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:

* [Email](mailto:info@tuna.am)
* [Telegram community](https://telegram.me/+Kgbtt0_gJwI5ZmEy)

Categories: [New features](https://tuna.am/en/blog/tags/features)

[← newer📦 tuna-tiny and SDKs for eight languages — a tunnel on your router and right from your code](https://tuna.am/en/blog/tuna-tiny-and-sdk.md)[older →🗞️ Обновление Tuna — новый дизайн кабинета и свежие версии клиентов](https://tuna.am/en/blog/platform-update-november-2026.md)
