# skills

> Your own skills: SKILL.md files, kept in versions that never change; import one, export it unchanged, delete it. Promote one to your organization or a team. It is held until an approver who is not you approves it.

Your own skills: SKILL.md files, kept in versions that never change; import one, export it unchanged, delete it. Promote one to your organization or a team. It is held until an approver who is not you approves it.

## nexus skills list

```sh
nexus skills list
```

Your skills, most recently written first: name, latest version and description.

## nexus skills create

```sh
nexus skills create <name>
```

Write a new skill in your editor ($VISUAL or $EDITOR), from a SKILL.md skeleton.

```sh
nexus skills create release-notes
```

## nexus skills import

```sh
nexus skills import <path> [--update]
```

Add a SKILL.md, or a folder that holds one, as a new skill (version 1); only SKILL.md is sent, and the other files are named; --update writes a new version if you already have a skill of that name, unless the file is already its latest version.

| Option | Meaning |
| --- | --- |
| `--update` | Write a new version if you already have a skill of that name, unless the file is already its latest version |

```sh
nexus skills import ./pdf-processing
nexus skills import ./pdf-processing --update
```

## nexus skills export

```sh
nexus skills export <name|id> [<version>] [--out dir]
```

Write a skill's SKILL.md, unchanged, to <dir>/<name>/SKILL.md. The version is a number or latest. A name that a library skill has exports that skill, at an approved version.

| Option | Meaning |
| --- | --- |
| `--out <dir>` | The folder to write <name>/SKILL.md in (default: the working directory; made if it is missing) |

```sh
nexus skills export pdf-processing --out skills
```

## nexus skills delete

```sh
nexus skills delete <name|id> --yes
```

Delete a skill, every version and its content, for good.

| Option | Meaning |
| --- | --- |
| `--yes` | Confirm a change that deletes or sends more than one thing |

```sh
nexus skills delete pdf-processing --yes
```

## nexus skills promote

```sh
nexus skills promote <name|id> [<version>] --to org|team/<slug> [--note TEXT]
```

Ask to promote a version of your skill (default: the latest) to the organization or a team you are in. The request is held until an owner, admin or team lead who is not you approves it.

| Option | Meaning |
| --- | --- |
| `--to <org|team/<slug>>` | Where to promote it: org, or team/<slug> for a team you are in |
| `--note <TEXT>` | Why you ask, for the approvers (at most 500 characters) |

```sh
nexus skills promote pdf-processing --to org --note "For the whole team"
nexus skills promote pdf-processing 2 --to team/web
```

## nexus skills promotions

```sh
nexus skills promotions [--state STATE] [--to TARGET] [--mine] [--limit N] [--cursor C]
nexus skills promotions <id>
```

The promotion requests you can see, newest first: your own, and those you may approve. STATE is held, approved, refused or withdrawn.

- `nexus skills promotions <id>`: One promotion request: who asked and from which version, a diff from the last approved version, and the full text.

| Option | Meaning |
| --- | --- |
| `--state <STATE>` | Only requests in this state: held, approved, refused or withdrawn |
| `--to <TARGET>` | Only requests to this target: org or team/<slug> |
| `--mine` | Only the promotion requests you made |
| `--limit <N>` | Requests per page (1 to 200, default 50) |
| `--cursor <C>` | The next page: the cursor the last page printed |

```sh
nexus skills promotions --state held
nexus skills promotions spr_…
```

## nexus skills approve

```sh
nexus skills approve <id> [--reason TEXT]
```

Approve a held promotion request, so its version joins the library. Your sign-in decides; an API key cannot.

| Option | Meaning |
| --- | --- |
| `--reason <TEXT>` | Why you approve it, for the author (optional, at most 500 characters) |

```sh
nexus skills approve spr_…
```

## nexus skills refuse

```sh
nexus skills refuse <id> --reason TEXT
```

Refuse a held promotion request; the reason is required, and the author reads it.

| Option | Meaning |
| --- | --- |
| `--reason <TEXT>` | Why you refuse it, for the author (required, at most 500 characters) |

```sh
nexus skills refuse spr_… --reason "Say when to use it in the description"
```

## nexus skills withdraw

```sh
nexus skills withdraw <id> [--reason TEXT] [--all-versions]
```

Withdraw your held request, or (as an owner, admin or team lead) an approved version. --all-versions withdraws every approved version of that skill.

| Option | Meaning |
| --- | --- |
| `--reason <TEXT>` | Why you withdraw it, for the author and the audit log (optional, at most 500 characters) |
| `--all-versions` | Withdraw every approved version of that library skill, not only this one |

```sh
nexus skills withdraw spr_… --all-versions
```

## nexus skills library

```sh
nexus skills library [--to TARGET]
```

The skills your organization and teams approved for you to load, with scope and approved version. A name that two skills share is marked duplicate_name.

| Option | Meaning |
| --- | --- |
| `--to <TARGET>` | Only skills promoted to this target: org or team/<slug> |

```sh
nexus skills library
```
