feat(init): support CLERK_SKILL_SOURCE env override#127
feat(init): support CLERK_SKILL_SOURCE env override#127wyattjoh wants to merge 1 commit intofeat/clerk-cli-skill-pinnedfrom
Conversation
|
Stack: init-skills Part of a stacked PR chain. Do not merge manually. |
40b1139 to
2b430c5
Compare
209860b to
266ab75
Compare
2b430c5 to
bd75724
Compare
266ab75 to
b801108
Compare
bd75724 to
510829c
Compare
d7b5c2b to
be3bdaf
Compare
510829c to
dae4ecc
Compare
be3bdaf to
fc91eca
Compare
dae4ecc to
75f79d4
Compare
fc91eca to
d4e2aaf
Compare
2bc5f72 to
c52bc3f
Compare
bd6cc3b to
71fcba0
Compare
27b5058 to
f0d314f
Compare
879a97b to
67098ad
Compare
8e087a7 to
13e75ab
Compare
6be4db9 to
126bdcd
Compare
13e75ab to
7154722
Compare
126bdcd to
4b6ed6b
Compare
625f5ca to
0e12a02
Compare
4b6ed6b to
381ed15
Compare
0e12a02 to
10c68ae
Compare
2a07fe8 to
5d14faf
Compare
f1b8dd0 to
f2fe2c9
Compare
042170c to
caaeef2
Compare
f4dc60b to
2870971
Compare
97cadfd to
9255b9a
Compare
c704342 to
76a3e0f
Compare
998207f to
71e2f9f
Compare
🦋 Changeset detectedLatest commit: e6727c1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
71e2f9f to
8078ef6
Compare
6291f77 to
0fdb815
Compare
7a2025d to
61ddd30
Compare
aebf943 to
1094bac
Compare
Adds an escape hatch for skill authors iterating on the clerk skill without rebuilding the CLI: set CLERK_SKILL_SOURCE to any value the `skills` CLI accepts (github URL, org/repo shorthand, absolute or relative local path), and `clerk init` passes it straight to `<runner> skills add <value>` in place of the bundled source. The override path skips the staged temp dir and the --copy flag, so a local working-tree path installs via the default symlink mode and edits to the source are picked up immediately by already-installed projects. The override has no effect on the upstream framework-pattern skills.
9c7d911 to
61a2b63
Compare
1094bac to
e6727c1
Compare
Summary
Adds a
CLERK_SKILL_SOURCEenv var as an escape hatch for skill authors iterating on theclerkskill without rebuilding the CLI. When set,clerk initpasses the value straight to<runner> skills add <value>in place of the bundled source (#126).Any value the
skillsCLI accepts works:The override path skips the staged temp dir and the
--copyflag introduced in #126, so a local working-tree path installs via the default symlink mode and edits to the source are picked up by already-installed projects without re-runningclerk init.initlogs the value being used so there's no surprise about what got installed.The override has no effect on the upstream framework-pattern skills.
Stacked on #126.
Test plan
bun run testpasses (unit tests cover env-var precedence: unset, empty/whitespace, trimmed / remote / local variants)CLERK_SKILL_SOURCE="$PWD/skills/clerk" bun run dev -- initin a sandbox, confirm the installer logs the override and.claude/skills/clerk/is a symlink into the working treeskills/clerk/SKILL.mdin the working tree, re-open the installed skill, confirm the edit is visible without re-running initCLERK_SKILL_SOURCE="clerk/cli" bun run dev -- initinstalls from the remote shorthand and the upstream framework skills still install normally