@ichintansoni/skills-master 0.1.13 → 0.1.14
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/dist/bin.js +11 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
|
|
6
6
|
// package.json
|
|
7
|
-
var version = "0.1.
|
|
7
|
+
var version = "0.1.14";
|
|
8
8
|
|
|
9
9
|
// src/schema/projectConfig.ts
|
|
10
10
|
import { z } from "zod";
|
|
@@ -1714,6 +1714,7 @@ var CANONICAL_HEADINGS = [
|
|
|
1714
1714
|
];
|
|
1715
1715
|
var MAX_BODY_LINES = 500;
|
|
1716
1716
|
var WARN_BODY_LINES = 450;
|
|
1717
|
+
var XML_TAG_RE = /<[A-Za-z/]/;
|
|
1717
1718
|
function today() {
|
|
1718
1719
|
return (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
1719
1720
|
}
|
|
@@ -1794,6 +1795,15 @@ function lintSkills(skillsRoot) {
|
|
|
1794
1795
|
if (!/use when/i.test(fm.description)) {
|
|
1795
1796
|
push("warn", `description should include a "Use when ..." trigger clause`);
|
|
1796
1797
|
}
|
|
1798
|
+
const tagAt = fm.description.search(XML_TAG_RE);
|
|
1799
|
+
if (tagAt !== -1) {
|
|
1800
|
+
const end = fm.description.indexOf(">", tagAt);
|
|
1801
|
+
const snippet = fm.description.slice(tagAt, end === -1 ? tagAt + 20 : end + 1);
|
|
1802
|
+
push(
|
|
1803
|
+
"warn",
|
|
1804
|
+
`description contains XML-tag-shaped text "${snippet}" \u2014 Claude's skill validation rejects tags; reword it (e.g. "a VerificationResult of Transaction")`
|
|
1805
|
+
);
|
|
1806
|
+
}
|
|
1797
1807
|
if (xm.snapshot_date > todayStr) {
|
|
1798
1808
|
push("error", `snapshot_date ${xm.snapshot_date} is in the future`);
|
|
1799
1809
|
}
|
package/package.json
CHANGED