Skip to content

Commit 2f85d9e

Browse files
committed
Only sync skill on prepack, not build
Nothing at build time consumes the package-local skills/ copy now that the ai command is gone — prepack (which fires on npm pack/publish) is sufficient.
1 parent 41a047e commit 2f85d9e

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

.bumpy/skill-distribution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
Streamline agent skill distribution and remove the `bumpy ai` command.
66

7-
The canonical `add-change` skill now lives at the repo root (`skills/`) as a single source of truth and is synced into the package on `build`/`prepack` (gitignored copy), so it ships version-pinned in the npm tarball and via the Claude Code plugin (`claude plugin install @varlock/bumpy`).
7+
The canonical `add-change` skill now lives at the repo root (`skills/`) as a single source of truth and is synced into the package on `prepack` (gitignored copy), so it ships version-pinned in the npm tarball and via the Claude Code plugin (`claude plugin install @varlock/bumpy`).
88

99
The `bumpy ai setup` command has been removed. Its file-copying targets (`opencode`, `cursor`, `codex`) duplicated the skill into tool-specific directories that drifted from the canonical copy — and had silently been broken in the published package — while the `claude` target was a thin wrapper around `claude plugin install`. Install the skill via the Claude Code plugin, or reference the bundled `SKILL.md` directly from `node_modules/@varlock/bumpy/skills/add-change/SKILL.md`.

packages/bumpy/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
}
3737
},
3838
"scripts": {
39-
"build": "bun run scripts/sync-skill.ts && tsdown",
39+
"build": "tsdown",
4040
"prepack": "bun run scripts/sync-skill.ts && cp ../../README.md .",
4141
"sync-skill": "bun run scripts/sync-skill.ts",
4242
"check": "bun run tsc --noEmit",

packages/bumpy/scripts/sync-skill.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
*
77
* The canonical copy lives at the repo root so a single source of truth feeds
88
* both the npm bundle and any future discovery endpoints. This package copy is
9-
* a generated artifact (gitignored) and is regenerated on every `build` /
10-
* `prepack` / publish. It is also what the Claude Code plugin manifest
11-
* (`.claude-plugin/plugin.json`) ships to agents.
9+
* a generated artifact (gitignored) and is regenerated on every `prepack` /
10+
* publish (run `bun run sync-skill` to refresh it manually). It is also what
11+
* the Claude Code plugin manifest (`.claude-plugin/plugin.json`) ships to
12+
* agents.
1213
*/
1314
import { existsSync, rmSync, cpSync } from 'node:fs';
1415
import { resolve } from 'node:path';

0 commit comments

Comments
 (0)