> For AI agents: the complete documentation index is available at https://tackup.dev/llms.txt, the full documentation bundle is available at https://tackup.dev/llms-full.txt.

# Write a skill

A skill is a folder that holds a `SKILL.md`. Write it inside a skills folder that a registered
source declares, and Tack catalogues it at once. A new skill needs one sync to get its links; an
edit to a skill that is already linked needs none, because every link points at your folder.

This guide adds the skill `triage-issue` to the source `~/agent-setup`, whose `tack.yaml` declares
`skills: [{ path: skills }]`, and links it into the project `app`.

## 1. Write the file

Create `~/agent-setup/skills/triage-issue/SKILL.md`. The frontmatter needs a `name`, equal to the
folder's name, and a `description` that tells the agent when to use it:

```markdown
---
name: triage-issue
description: Label a new issue, find a duplicate, and ask for the missing reproduction steps.
---

# Triage an issue

Search for a duplicate first. Then label the issue and ask for what is missing to reproduce it.
```

## 2. Check it

`tack check` reads the source as the catalog will, without changing anything:


```text
$ tack check ~/agent-setup
tack check · ✓ success

Checks 1 · errors 0 · warnings 0

source ~/agent-setup
  skill: 3
  command: 1
  context: 0
  script: 0
  docs: 0
```

It reports each problem by file and line. Had the frontmatter said `name: triage-issues`, one letter
off the folder's name, the check would fail like this:


```text
$ tack check ~/agent-setup
tack check · ✗ domain

Checks 1 · errors 1 · warnings 0

source ~/agent-setup
  skill: 2
  command: 1
  context: 0
  script: 0
  docs: 0

~/agent-setup/skills/triage-issue/SKILL.md:1: error skill-name-mismatch: The SKILL.md name must match its directory basename.

Write files, run tack check with the relevant paths, and repeat until clean.
```

Fix the file and check again until it is clean.

A skill that fails the check is quarantined: the rest of the source keeps working, and
`tack catalog` lists the problem.

## 3. Choose who gets it

A skill without Tack metadata is on by default in every project, and opt-in at user level. To make
it opt-in for projects too, add `metadata.tack` to the frontmatter. The whole file now reads:

```markdown
---
name: triage-issue
description: Label a new issue, find a duplicate, and ask for the missing reproduction steps.
metadata:
  tack: |
    version: 1
    activation: opt-in
---

# Triage an issue

Search for a duplicate first. Then label the issue and ask for what is missing to reproduce it.
```

| Setting           | Applies to                                         | When omitted  |
| ----------------- | -------------------------------------------------- | ------------- |
| `activation`      | Every project                                      | `default`     |
| `user-activation` | Your user folders                                  | `opt-in`      |
| `projects`        | Limits `activation: default` to the named projects | every project |
| `dependencies`    | Skills or commands it needs, selected with it      | none          |

A dependency names a `kind` and a `name`. Here `triage-issue` needs `pr-review` from the same
source, so including `triage-issue` in a project selects `pr-review` too:

```yaml
metadata:
  tack: |
    version: 1
    activation: opt-in
    dependencies:
      - kind: skill
        name: pr-review
```

A dependency in another source also names its `source`, and that source must be listed in your
`tack.yaml` under `depends-on`. If a project excludes `pr-review`, the sync preview reports
`triage-issue` as blocked and names the pick that lifts it.

## 4. Link it

An opt-in skill reaches no project yet, so the sync plans nothing:


```text
$ tack sync --project app
tack sync · project app · ✓ success

Nothing was written. No change is planned. Everything is up to date.

claude → app · up to date

codex → app · up to date

cursor → app · up to date

Commands reach cursor only: Tack does not link commands for claude, codex.
```

Include it in the project. A pick saves at once and links nothing:


```text
$ tack pick include triage-issue --project app
tack pick include · project app · ✓ success

Set skill triage-issue to include for project app.

Next
  tack sync --project app
```

Then preview the sync and apply it:


```text
$ tack sync --project app
tack sync · project app · ✓ success

Nothing was written. 3 changes planned.

claude → app · 1 to link
  create  .claude/skills/triage-issue  skill agent-setup:triage-issue

codex → app · 1 to link
  create  .agents/skills/triage-issue  skill agent-setup:triage-issue

cursor → app · 1 to link
  create  .cursor/skills/triage-issue  skill agent-setup:triage-issue

Commands reach cursor only: Tack does not link commands for claude, codex.

Next
  tack sync --project app --apply
```

```sh
tack sync --project app --apply
```

A skill that is on by default skips the pick: `tack sync --all` previews its links in every project.

## 5. Edit it

Edit `SKILL.md` or add files to the skill's folder at any time. Every agent reads the change
through its link, with no sync. An open agent session can need a restart to load it again.

In a source you share through Git, commit and push the new skill. Your teammates pull it and run
`tack sync`, as [Get a teammate's new skill](https://tackup.dev/docs/guides/team-source.md) shows.

## Next

- [Choose what each project gets](https://tackup.dev/docs/guides/choose-skills.md): include, exclude and user-level picks.
- [Import skills from GitHub](https://tackup.dev/docs/guides/import-skills.md) to start from someone else's skill.
