# The skills command

> Every command of the skills command line, its flags and its exit codes.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://skills.docs.sypnia.com/tools/cli/

For agents: npx @sypnia/skills <command> (skills after npm i -g @sypnia/skills). Sign-in shared with every Sypnia CLI (npx @sypnia/app login; or SYPNIA_SKILLS_TOKEN). Commands: search <words> [--kind starter] [--label instructions|scripts|mcp|network] [--publisher]; info <id>[@version]; add <id>[@range] [--target] [--global] [--yes]; remove <id> [--global]; list; install [--frozen]; outdated; update [<id>] [--major]; verify; init <name> [--from <id>] [--starter]; check [dir]; try <dir> <task>; pack [dir]; publish [dir] [--private|--unlisted] [--tag]; yank/unyank <id>@<version> [--reason]; diff <id> <v1> <v2>; trusted add|list|remove; tokens create|list|revoke; report <id> --reason; registry add <name> <url> [--publisher]. Flags --json, --registry <url>, --org. Exit codes 0 ok, 1 error, 2 usage, 3 not signed in, 4 forbidden, 5 check failed, 6 verification failed.

```bash
npx @sypnia/skills <command>
```

Or install it once with `npm install -g @sypnia/skills` and type `skills`. Public skills need no sign-in. For private skills and publishing, the command uses the session of `npx @sypnia/app login`, shared by every Sypnia command line; in CI, set `SYPNIA_SKILLS_TOKEN`.

## Finding

| Command                                                                                                       | Does                                                               |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |
| `skills search <words> [--kind starter] [--label instructions\|scripts\|mcp\|network] [--publisher <handle>]` | search the registry                                                |
| `skills info <id>[@version]`                                                                                  | publisher, versions, review, needs, labels and the exact `touches` |
| `skills diff <id> <from> <to>`                                                                                | what changed between two versions: steps, references, `touches`    |

## Installing

| Command                                                        | Does                                                                        |
| -------------------------------------------------------------- | --------------------------------------------------------------------------- |
| `skills add <id>[@range] [--target <list>] [--global] [--yes]` | install, pin and lock; `--yes` accepts only instructions-only skills        |
| `skills remove <id> [--global]`                                | uninstall                                                                   |
| `skills list`                                                  | what is installed, from where, and why                                      |
| `skills install [--frozen]`                                    | install what `sypnia.toml` asks for; `--frozen` installs only the lock file |
| `skills outdated`                                              | current, wanted and latest of each skill                                    |
| `skills update [<id>] [--major]`                               | update within the range; `--major` to move to a new major on purpose        |
| `skills verify`                                                | check hashes, signatures and local edits of everything installed            |

## Writing and publishing

| Command                                                                                                        | Does                                                            |
| -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| `skills init <name> [--from <id>] [--starter]`                                                                 | start a skill, a copy of another, or a starter                  |
| `skills check [dir]`                                                                                           | the automatic checks, on your machine                           |
| `skills try <dir> <task>`                                                                                      | run a task in a Sypnia Agent sandbox with only this skill       |
| `skills pack [dir]`                                                                                            | build the package without publishing it                         |
| `skills publish [dir] [--private\|--unlisted] [--tag <tag>]`                                                   | publish                                                         |
| `skills yank <id>@<version> --reason <text>`, `skills unyank <id>@<version>`                                   | yank or bring back a version                                    |
| `skills trusted add\|list\|remove <id> --repo <url> [--branch <b>] [--workflow <file>]`                        | trusted publishing                                              |
| `skills tokens create <name> [--read\|--publish <id>] --expires <days>`, `tokens list`, `tokens revoke <name>` | tokens                                                          |
| `skills report <id> --reason <text>`                                                                           | report a skill to the reviewers                                 |
| `skills registry add <name> <url> [--publisher <handle>]`                                                      | add a registry to the project, for every skill or one publisher |

Every command takes `--json`, `--registry <url>` and `--org <org>`.

## Exit codes

| Code | Means                                                      |
| ---- | ---------------------------------------------------------- |
| `0`  | done                                                       |
| `1`  | an error (the message says which)                          |
| `2`  | the command was used wrong                                 |
| `3`  | not signed in                                              |
| `4`  | not allowed                                                |
| `5`  | a check failed (`check`, `publish`)                        |
| `6`  | a hash or a signature does not match (`install`, `verify`) |
