@makerx/yoke 0.2.0 → 0.4.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.
Files changed (3) hide show
  1. package/README.md +3 -7
  2. package/dist/cli.js +7 -17
  3. package/package.json +2 -1
package/README.md CHANGED
@@ -4,19 +4,15 @@ Claude Code skills for MakerX AI-assisted delivery, and the CLI they call.
4
4
 
5
5
  ## Principles
6
6
 
7
- - **User-invoked.** Skills run only when you type their slash command.
7
+ - **Slash-invoked.** Skills may be called directly with slash commands.
8
8
  - **Overridable.** A skill of your own with the same name wins.
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 -g @makerx/yoke
15
-
16
- # then either
17
- yoke sync # this repo's .claude/skills
18
- # or
19
- yoke sync --user # ~/.claude/skills
14
+ npm i -D @makerx/yoke # at the repo root
15
+ npx yoke sync # then commit .claude/skills
20
16
  ```
21
17
 
22
18
  ## 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.2.0",
10
+ version: "0.4.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",
@@ -37,6 +37,7 @@ var package_default = {
37
37
  "verify:complexity": 'verifyx complexity "src/**/*.ts"',
38
38
  "verify:comments": "verifyx comments",
39
39
  "verify:github-actions": "verifyx github-actions",
40
+ "verify:build": "npm run build",
40
41
  prepublishOnly: "npm run build"
41
42
  },
42
43
  dependencies: {
@@ -259,28 +260,17 @@ import { join } from "path";
259
260
  // src/skill.ts
260
261
  var ownerMarker = 'owner: "@makerx/yoke"';
261
262
  function renderSkill({ name, description, body }) {
262
- return [
263
- "---",
264
- `name: ${name}`,
265
- `description: ${description}`,
266
- "disable-model-invocation: true",
267
- "metadata:",
268
- ` ${ownerMarker}`,
269
- "---",
270
- "",
271
- body.trim(),
272
- ""
273
- ].join("\n");
263
+ return ["---", `name: ${name}`, `description: ${description}`, "metadata:", ` ${ownerMarker}`, "---", "", body.trim(), ""].join("\n");
274
264
  }
275
265
 
276
266
  // src/features/pr/skill.ts
277
267
  var prSkill = {
278
268
  name: "pr",
279
- description: "Raise a PR with a concise What/Why/(How) description",
269
+ description: "Raise a PR with a concise What/Why/(How) description. Use when asked to raise, open or create a pull request, or to rewrite a PR description.",
280
270
  body: `
281
- Run \`yoke pr raise --help\` and follow it exactly. Do not use \`gh pr create\`.
271
+ From the repo root, run \`npx yoke pr raise --help\` and follow it exactly. Do not use \`gh pr create\`.
282
272
 
283
- If \`yoke\` is not on PATH, stop and tell the user to run \`npm i -g @makerx/yoke\`.
273
+ If \`yoke\` is not found, run \`npm install\` at the repo root and retry.
284
274
  `
285
275
  };
286
276
 
@@ -310,7 +300,7 @@ function syncSkills(destination, skills = bundledSkills) {
310
300
 
311
301
  // src/cli.ts
312
302
  var { version } = package_default;
313
- var program = new Command("yoke").description("Lean, user-invoked Claude Code skills and the CLI they call.").version(version);
303
+ var program = new Command("yoke").description("Lean Claude Code skills and the CLI they call.").version(version);
314
304
  program.command("sync").description("Write yoke's skills into this repo's .claude/skills, or ~/.claude/skills with --user").option("--user", "write to ~/.claude/skills instead, for every repo").action((options) => {
315
305
  const user = options.user ?? false;
316
306
  const display = (path) => user ? path : relative(process.cwd(), path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makerx/yoke",
3
- "version": "0.2.0",
3
+ "version": "0.4.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",
@@ -30,6 +30,7 @@
30
30
  "verify:complexity": "verifyx complexity \"src/**/*.ts\"",
31
31
  "verify:comments": "verifyx comments",
32
32
  "verify:github-actions": "verifyx github-actions",
33
+ "verify:build": "npm run build",
33
34
  "prepublishOnly": "npm run build"
34
35
  },
35
36
  "dependencies": {