Skip to content
Back to skills

Publish Plugins

ASecurity

(project) Use when editing any file under skills/ or plugins/ to bump the plugin version and check the manifests

  • 144 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added August 31, 2026
developmenttypescriptpythongoshellbashgitapidocumentation

Works with

  • claude code
  • cli
  • api

Security analysis

A100/100

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

Scanned November 28, 2026

npx -y skills add vinta/hal-9000 --skill publish-plugins --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Publish Plugins?

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

Security grade badge for Publish Plugins
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vinta-publish-plugins/badge)](https://www.skillsdirectory.com/skills/vinta-publish-plugins)

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: publish-plugins
description: (project) Use when editing any file under skills/ or plugins/ to bump the plugin version and check the manifests
user-invocable: true
model: sonnet
effort: medium
metadata:
  internal: true
---

# Publish Plugins

Prepare the repo's plugins for release: work out which ones changed, bump their versions, and check the manifests still describe what is on disk.

Each plugin owns its version in its own `.claude-plugin/plugin.json`, and the repo-root `.claude-plugin/marketplace.json` carries no `version` fields:

| Plugin                        | Manifest                                                         |
| ----------------------------- | ---------------------------------------------------------------- |
| `hal-skills`                  | `skills/.claude-plugin/plugin.json`                              |
| `hal-output-styles`           | `plugins/hal-output-styles/.claude-plugin/plugin.json`           |
| `hal-grammar-check`           | `plugins/hal-grammar-check/.claude-plugin/plugin.json`           |
| `hal-session-auto-rename`     | `plugins/hal-session-auto-rename/.claude-plugin/plugin.json`     |
| `hal-shell-mode-auto-suggest` | `plugins/hal-shell-mode-auto-suggest/.claude-plugin/plugin.json` |
| `hal-subagent-rows`           | `plugins/hal-subagent-rows/.claude-plugin/plugin.json`           |
| `hal-voice`                   | `plugins/hal-voice/.claude-plugin/plugin.json`                   |

## 1. Find the changed plugins

```bash
git diff --name-only origin/main...
```

`skills/**` belongs to `hal-skills`, `plugins/<name>/**` to that plugin. Only the plugins with changes are candidates for a bump.

## 2. Check what is already bumped

For each candidate, compare the working-tree version against `origin/main`:

```bash
git show origin/main:skills/.claude-plugin/plugin.json
```

If a plugin's version already differs from `origin/main`, it was bumped for unreleased work. **Do not bump it again.** Only bump a plugin whose version still matches `origin/main`. Check each candidate independently — a change under `skills/` says nothing about whether `hal-voice` needs a bump.

## 3. Bump

- **Patch** (0.2.0 -> 0.2.1): bug fixes, config changes, style cleanup.
- **Minor** (0.2.0 -> 0.3.0): new features, new hooks, new commands.
- **Major** (0.2.0 -> 1.0.0): breaking changes to hook behavior or config format.

When a change makes a plugin rely on a Claude Code feature it did not use before (a mod's `$` API, hook or prop, a hook event, or a manifest or frontmatter field), find the Claude Code release that added it in the [changelog](https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md). Set the floor (`">=X.Y.Z"`) to that release when it is newer than both the plugin's current `engines["claude-code"]` floor, if any, and the release that added `engines` itself, so older clients keep the previous plugin release instead of loading one that breaks. Clients before the `engines` release ignore the field, so a floor at or below it blocks no one.

Commit a bump made on its own through the `commit` skill with no argument: its subject already says why a bump exists.

## 4. Check the manifests are in sync

```bash
python3 .claude/skills/publish-plugins/scripts/check_manifest_sync.py
```

Every plugin is described twice on purpose: once in its own `.claude-plugin/plugin.json` and once as an entry in `.claude-plugin/marketplace.json`. For each plugin the script checks that

- both describe the same fields with the same values, apart from `version` and the directory listing fields `icon`, `documentationUrl`, `supportUrl`, `privacyPolicyUrl`, `termsOfServiceUrl` (plugin.json only) and `source`, `category`, `tags`, `strict`, `defaultEnabled` (marketplace entry only — Claude Code ignores them in a plugin.json).
- every component path either manifest declares exists on disk.
- every skill directory in a plugin's root appears in both skill lists.

It exits non-zero naming each problem. Fix the manifests it names, then run it again.

## 5. Check the skill descriptions are in sync

```bash
python3 .claude/skills/publish-plugins/scripts/check_skill_descriptions_sync.py
```

For every skill under `skills/`, check that `interface.short_description` in `agents/openai.yaml` matches its description in both `README.md` and `skills/README.md` exactly. Treat the README descriptions as the source of truth. Keep descriptions as single-line double-quoted strings. Fix missing entries or mismatches, then rerun until the check passes.

## 6. Validate

```bash
claude plugin validate --strict .
claude plugin validate --strict ./skills
claude plugin validate --strict ./plugins/hal-output-styles
claude plugin validate --strict ./plugins/hal-grammar-check
claude plugin validate --strict ./plugins/hal-session-auto-rename
claude plugin validate --strict ./plugins/hal-shell-mode-auto-suggest
claude plugin validate --strict ./plugins/hal-subagent-rows
claude plugin validate --strict ./plugins/hal-voice
```

The first call validates the marketplace manifest; the rest validate each plugin manifest. `--strict` fails on warnings too, such as a type error in a mod's TypeScript hooks module or its tests.

## 7. Run the mod tests

```bash
make test-claude-code-mods
```

This runs `claude plugin test` on every plugin with a `tests/` directory, which is what the `claude-code-tests` CI job runs too. Fix the failing test or the module, then rerun until every test passes; a command that fails to start is not a pass.

## 8. Check the skills still group for other agents

```bash
npx -y skills@latest add . -l
```

This lists what `npx skills add vinta/hal-9000` will offer, reading the working tree instead of the published repo, and installs nothing. Every skill has to appear under the `Hal Skills` heading with a count matching the `skills` list. A skill listed without that heading means the `hal-skills` marketplace entry lost its `name` or its `skills` array — that CLI reads only the two manifests at the repo root, so it never sees `skills/.claude-plugin/plugin.json`.

Files in this skill

  • SKILL.md3.6 KB
  • scripts/check_manifest_sync.py4.5 KB

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.