# The tracks skill for coding agents

The `ampbase-tracks` skill lets a coding agent change a channel's configurations through tracks: one track per task, its changes saved into the track, tried on a host of each build with a soundcheck, and marked ready for a rollout. The skill sends the agent to [Tracks through the API](https://ampbase.io/docs/tracks-api.md) and tells it to follow that page's working rules, so the agent always works from the current calls. It is published in the [ampbase-io/skills](https://github.com/ampbase-io/skills) repository on GitHub.

## Install it

From the root of your repository:

```bash
npx skills add ampbase-io/skills --skill ampbase-tracks
```

The installer asks which agents to install for, and whether to install into this project or globally. To give the skill to everyone working in the repository, choose Project, then commit the installed files. Global installs it in your home directory for you alone, and leaves nothing to commit. To choose the agents up front, add `-a` once per agent, for example `-a claude-code -a codex`; add `-g` to install globally without the scope question.

To install by hand, copy `skills/ampbase-tracks/` from that repository into `.agents/skills/`, which Codex, Cursor and most other agents read. For Claude Code, copy it into `.claude/skills/` instead.

## Give the agent a token

Mint a personal API token at the Editor role, as [API tokens](https://ampbase.io/docs/api-tokens.md) describes, and export it as `AMPBASE_TOKEN` in the environment the agent runs in. With it the agent can read the channel, save into tracks, soundcheck them and mark them ready. Soundchecking a head that arms enforcement takes an Admin, and is refused for an Editor token, as step 6 of [Tracks through the API](https://ampbase.io/docs/tracks-api.md) says.

An Editor token cannot ship a track. Shipping it, with a rollout or a Broadcast, takes an Admin; until then the track waits in the queue for the next rollout.
