Skip to content
Back to skills

Mestiere Registry

ASecurity

Author and maintain a mestiere skill registry. Use when the user wants to create a registry, add namespaces or skills, share scripts or references between skills, fix `mestiere registry lint` errors, or set up CI for a registry repository.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 26, 2026
developmentgogitfrontend

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 26, 2026

npx -y skills add polarity-dev/mestiere --skill mestiere-registry --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mestiere Registry?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mestiere Registry
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/polarity-dev-mestiere-registry/badge)](https://www.skillsdirectory.com/skills/polarity-dev-mestiere-registry)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mestiere-registry
description: Author and maintain a mestiere skill registry. Use when the user wants to create a registry, add namespaces or skills, share scripts or references between skills, fix `mestiere registry lint` errors, or set up CI for a registry repository.
---

# Maintaining a mestiere registry

A registry is a git repository that projects install skills from. Read
`references/concepts.md` for naming rules and how installs work.

## Layout

```
registry.yaml                         # schemaVersion: 1, name, description
skills/
  <namespace>/
    namespace.yaml                    # description, owners (optional)
    _shared/                          # optional: files several skills link to
    <skill>/
      SKILL.md                        # name: <namespace>-<skill>
      README.md                       # optional: for people, never installed
      scripts/ references/ assets/
```

## Tasks

**Check the CLI.** Run `mestiere --version`. If it's missing, ask the user to install it with
`brew install --cask polarity-dev/tap/mestiere`, or with
`go install github.com/polarity-dev/mestiere/cmd/mestiere@latest` followed by `mestiere add -g mestiere`.

**Create a registry.** In an empty git repository run `mestiere registry init --name <name>`.
Projects use it with `mestiere registry add <name> <git-url>`, which works with any URL their
git credentials can clone.

**Add a namespace.** `mestiere registry new-namespace <ns> --description "..." --owners team-a`.
Namespace names use lowercase letters, digits and single hyphens. Choose them by domain or team
(`frontend`, `payments`), since installed names become `<ns>-<skill>`.

**Add a skill.** `mestiere registry new-skill <ns>/<skill> --description "..."`, then write
`SKILL.md`. Follow these rules:

- Keep the generated `name`; it must equal `<ns>-<skill>`.
- The `description` decides when an agent activates the skill. State what it does and when to
  use it, with the words a user would actually say. Keep it under 1024 characters.
- Keep `SKILL.md` focused. Move long material into `references/` and link to it by relative path.
- Refer to bundled files by paths relative to the skill folder, e.g. `scripts/check.sh`.
- Mark scripts executable (`chmod +x`) and give them a shebang.
- Put a description for people (use cases, examples) in an optional `README.md` next to
  `SKILL.md`. It shows on the registry's web page and is never installed, so it stays out of
  the agent's context. Don't link to it from `SKILL.md`.

**Share files between skills.** Put the file in `skills/<ns>/_shared/` and link it from each
skill with a relative symlink:

```sh
cd skills/<ns>/<ns>-<skill>
mkdir -p scripts
ln -s ../../_shared/scripts/check.sh scripts/check.sh   # one file
ln -s ../_shared/references references                   # a whole folder
```

Installs replace links with real copies. Links may only point inside the skill or into the
same namespace's `_shared/`, never to another link. Files in `_shared/` can't be links.

**Rename or remove a skill.** Projects that installed the whole namespace drop a removed skill
on their next `mestiere update`. Projects that installed it individually get an error and must
remove it, so announce removals. Renaming is a removal plus an addition.

## Validate

Run `mestiere registry lint` after every change and fix every `error:` line before committing.
Common errors:

| Error | Fix |
|---|---|
| `name must be "<ns>-<skill>"` | Set the frontmatter `name` to the installed name |
| `skill folders are named <ns>-<skill>` | Rename the folder to the installed name (`git mv skills/<ns>/<skill> skills/<ns>/<ns>-<skill>`) |
| `invalid namespace` / `invalid skill name` | Rename the folder to match the naming rules |
| `installs as <name>, like <folder>` | Two skills share an installed name; rename one of them |
| `hidden files aren't installed` | Delete the file, or rename it without the leading dot (`.env.example` → `env.example`) |
| `links outside the skill and skills/<ns>/_shared/` | Move the target into `_shared/` and link it from there |
| `which is itself a link` / `links aren't allowed inside _shared` | Replace the link in `_shared/` with the real file |

Warnings such as `no skill links to this file` don't fail lint; remove the unused file or link it.

## Test before publishing

From a project, add the local checkout as a registry and install from it:

```sh
mestiere registry add local /path/to/registry --ref <your-branch>
mestiere add <ns>/<skill>
mestiere registry remove local
```

Only committed content is installed, so commit on a branch first.

## CI

Run lint on every pull request:

```yaml
- uses: actions/setup-go@v7
  with:
    go-version: stable
- run: go install github.com/polarity-dev/mestiere/cmd/mestiere@latest
- run: mestiere registry lint
```

Files in this skill

  • SKILL.md4.7 KB
  • references/concepts.md36 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.