@makerx/yoke 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/dist/cli.js +17 -6
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -5,14 +5,18 @@ Claude Code skills for MakerX AI-assisted delivery, and the CLI they call.
|
|
|
5
5
|
## Principles
|
|
6
6
|
|
|
7
7
|
- **Slash-invoked.** Skills may be called directly with slash commands.
|
|
8
|
-
- **Overridable.** A skill of your own with the same name wins.
|
|
8
|
+
- **Overridable.** A skill of your own with the same name wins. yoke's descriptions start with `[yoke]` so you can tell them apart.
|
|
9
9
|
- **Lean.** Few skills, short prompts; the CLI enforces the rules.
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm i -
|
|
15
|
-
|
|
14
|
+
npm i -g @makerx/yoke
|
|
15
|
+
|
|
16
|
+
# then either
|
|
17
|
+
yoke sync # this repo's .claude/skills
|
|
18
|
+
# or
|
|
19
|
+
yoke sync --user # ~/.claude/skills
|
|
16
20
|
```
|
|
17
21
|
|
|
18
22
|
## Skills
|
package/dist/cli.js
CHANGED
|
@@ -7,7 +7,7 @@ import { Command } from "commander";
|
|
|
7
7
|
// package.json
|
|
8
8
|
var package_default = {
|
|
9
9
|
name: "@makerx/yoke",
|
|
10
|
-
version: "0.
|
|
10
|
+
version: "0.5.0",
|
|
11
11
|
description: "Lean, user-invoked Claude Code skills for MakerX AI-assisted delivery, plus the CLI they call.",
|
|
12
12
|
license: "MIT",
|
|
13
13
|
author: "MakerX",
|
|
@@ -52,7 +52,8 @@ var package_default = {
|
|
|
52
52
|
"oxlint-tsgolint": "^7.0.2004",
|
|
53
53
|
tsup: "^9.0.0",
|
|
54
54
|
typescript: "^6.0.3",
|
|
55
|
-
vitest: "^5.0.5"
|
|
55
|
+
vitest: "^5.0.5",
|
|
56
|
+
yaml: "^2.9.1"
|
|
56
57
|
},
|
|
57
58
|
engines: {
|
|
58
59
|
node: ">=24"
|
|
@@ -260,17 +261,27 @@ import { join } from "path";
|
|
|
260
261
|
// src/skill.ts
|
|
261
262
|
var ownerMarker = 'owner: "@makerx/yoke"';
|
|
262
263
|
function renderSkill({ name, description, body }) {
|
|
263
|
-
return [
|
|
264
|
+
return [
|
|
265
|
+
"---",
|
|
266
|
+
`name: ${name}`,
|
|
267
|
+
`description: ${JSON.stringify(`[yoke] ${description}`)}`,
|
|
268
|
+
"metadata:",
|
|
269
|
+
` ${ownerMarker}`,
|
|
270
|
+
"---",
|
|
271
|
+
"",
|
|
272
|
+
body.trim(),
|
|
273
|
+
""
|
|
274
|
+
].join("\n");
|
|
264
275
|
}
|
|
265
276
|
|
|
266
277
|
// src/features/pr/skill.ts
|
|
267
278
|
var prSkill = {
|
|
268
279
|
name: "pr",
|
|
269
|
-
description: "Raise a PR with a concise What/Why/(How) description.
|
|
280
|
+
description: "Raise or rewrite a PR with a concise What/Why/(How) description.",
|
|
270
281
|
body: `
|
|
271
|
-
|
|
282
|
+
Run \`yoke pr raise --help\` and follow it exactly. Do not use \`gh pr create\`.
|
|
272
283
|
|
|
273
|
-
If \`yoke\` is not found, run \`npm
|
|
284
|
+
If \`yoke\` is not found, run \`npm i -g @makerx/yoke\` and retry.
|
|
274
285
|
`
|
|
275
286
|
};
|
|
276
287
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makerx/yoke",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Lean, user-invoked Claude Code skills for MakerX AI-assisted delivery, plus the CLI they call.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "MakerX",
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
"oxlint-tsgolint": "^7.0.2004",
|
|
46
46
|
"tsup": "^9.0.0",
|
|
47
47
|
"typescript": "^6.0.3",
|
|
48
|
-
"vitest": "^5.0.5"
|
|
48
|
+
"vitest": "^5.0.5",
|
|
49
|
+
"yaml": "^2.9.1"
|
|
49
50
|
},
|
|
50
51
|
"engines": {
|
|
51
52
|
"node": ">=24"
|