skissue 0.1.19 → 0.1.20

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 CHANGED
@@ -18,7 +18,6 @@
18
18
  <a href="https://www.npmjs.com/package/skissue"><img src="https://img.shields.io/npm/v/skissue?style=flat-square&logo=npm&color=CB3837" alt="npm version"></a>
19
19
  <a href="https://www.npmjs.com/package/skissue"><img src="https://img.shields.io/npm/dm/skissue?style=flat-square&logo=npm&color=CB3837" alt="npm downloads"></a>
20
20
  <a href="https://github.com/midyan/skill-issue/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow?style=flat-square" alt="License MIT"></a>
21
- <a href="https://github.com/midyan/skill-issue"><img src="https://img.shields.io/github/stars/midyan/skill-issue?style=flat-square&logo=github&color=8B5CF6" alt="GitHub stars"></a>
22
21
  <img src="https://img.shields.io/badge/node-%3E%3D24-brightgreen?style=flat-square&logo=nodedotjs" alt="Node 24+">
23
22
  <img src="https://img.shields.io/badge/TypeScript-5.7-blue?style=flat-square&logo=typescript" alt="TypeScript">
24
23
  </p>
@@ -136,7 +135,7 @@ Skills are in `.agents/skills/`. Your agents can find them. Commit the folder. S
136
135
 
137
136
  A skill registry is just a Git repo with a specific layout. Here's how to build one from scratch.
138
137
 
139
- **Shortcut:** run `npx skissue init-registry` to create `registry.json`, `registry/<sample-skill>/SKILL.md`, and optionally `git init` in the current directory or a path you choose.
138
+ **Shortcut:** run `npx skissue init-registry` to create `registry.json`, `registry/<skill-id>/SKILL.md` (default skill id `validate-links`), and optionally `git init` in the current directory or a path you choose.
140
139
 
141
140
  ### Registry structure
142
141
 
package/dist/entry.js CHANGED
@@ -357,6 +357,7 @@ function requiredTrimmed(v) {
357
357
  }
358
358
 
359
359
  // src/commands/init-registry.ts
360
+ var DEFAULT_REGISTRY_SKILL_ID = "validate-links";
360
361
  function validateSkillId(raw) {
361
362
  const id = raw.trim();
362
363
  if (!id) return "Skill id is required";
@@ -388,10 +389,23 @@ function registryLayoutExists(root) {
388
389
  }
389
390
  }
390
391
  function skillMarkdown(skillId) {
392
+ if (skillId === DEFAULT_REGISTRY_SKILL_ID) {
393
+ return `---
394
+ name: validate-links
395
+ description: Scan markdown for broken relative links across the repo.
396
+ ---
397
+
398
+ # validate-links (soft)
399
+
400
+ Use before large doc moves or when CI reports broken links. A **hard** implementation walks \`*.md\` files and checks that \`[text](relative)\` targets resolve.
401
+
402
+ Add a \`hard/\` directory when you want automated checks (for example a small script or \`npm run check:links\` wired to the same rules).
403
+ `;
404
+ }
391
405
  const title = skillId.split(/[-_]/).map((w) => w.charAt(0).toUpperCase() + w.slice(1)).join(" ");
392
406
  return `---
393
407
  name: ${skillId}
394
- description: Sample skill scaffolded by skissue init-registry. Replace this description.
408
+ description: Starter skill scaffolded by skissue init-registry. Replace this description.
395
409
  ---
396
410
 
397
411
  # ${title}
@@ -400,7 +414,7 @@ A minimal starter skill for your registry.
400
414
 
401
415
  ## When to use
402
416
 
403
- Use when the user works with this sample capability (customize this section).
417
+ Describe when an agent should apply this skill (customize this section).
404
418
 
405
419
  ## Instructions
406
420
 
@@ -457,8 +471,8 @@ async function promptMinimalRegistryScaffold(root) {
457
471
  }
458
472
  }
459
473
  const idRaw = await p.text({
460
- message: "Sample skill id (folder name under registry/)",
461
- initialValue: "sample-skill",
474
+ message: "Skill id (folder name under registry/)",
475
+ initialValue: DEFAULT_REGISTRY_SKILL_ID,
462
476
  validate: validateSkillIdPrompt
463
477
  });
464
478
  if (p.isCancel(idRaw)) {
@@ -588,7 +602,7 @@ async function runLocalBootstrapFlow(cwd, resolvedRoot) {
588
602
  if (atConsumerRoot && !registryLayoutExists(resolvedRoot)) {
589
603
  const okRoot = await p2.confirm({
590
604
  message: "This adds registry.json and registry/ at your project root. Continue?",
591
- initialValue: false
605
+ initialValue: true
592
606
  });
593
607
  if (p2.isCancel(okRoot) || !okRoot) {
594
608
  p2.cancel("Aborted.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skissue",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",