@uinaf/skillcheck 1.6.1 → 1.6.2

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.
@@ -34,8 +34,8 @@ function skillEvidence(context) {
34
34
  const target = real(named);
35
35
  return inside && target !== void 0 && installed.has(target);
36
36
  })) return `read of the installed ${skill}/SKILL.md`;
37
- const nameLine = new RegExp(`^name:\\s*["']?${skill.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}["']?\\s*$`, "m");
38
- if (calls(metadata?.toolCalls).find((c) => c.name === "Bash" && c.is_error === false && typeof c.input?.command === "string" && c.input.command.includes("SKILL.md") && typeof c.output === "string" && nameLine.test(c.output))) return `shell read of the installed ${skill}/SKILL.md`;
37
+ const opening = [...installed].map((p) => fs.readFileSync(p, "utf8").slice(0, 300).trim()).filter((t) => t.length >= 40);
38
+ if (calls(metadata?.toolCalls).find((c) => c.name === "Bash" && c.is_error === false && typeof c.output === "string" && opening.some((t) => c.output.includes(t)))) return `shell read of the installed ${skill}/SKILL.md`;
39
39
  }
40
40
  function assertSkillUsed(_output, context) {
41
41
  const evidence = skillEvidence(context);
package/docs/scenarios.md CHANGED
@@ -58,7 +58,7 @@ that aggregate, so a run that produces good output without ever loading the
58
58
  skill still fails. The skill counts as loaded when the harness reports a skill
59
59
  call for it, or when the agent completed a read of the installed
60
60
  `<config-root>/skills/<skill>/SKILL.md` in its workdir, or a successful shell
61
- command that names `SKILL.md` and printed this skill's frontmatter `name`.
61
+ command whose output carries the installed file's opening text.
62
62
  Claude Code often reads the file directly instead of calling its Skill tool,
63
63
  sometimes from a shell, and either way the same instructions reach its context.
64
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uinaf/skillcheck",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "Lint and eval harness for agent skills",
5
5
  "homepage": "https://github.com/uinaf/skillcheck#readme",
6
6
  "bugs": {