Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(skills): require a When it fails section linking AGENT_OPERATOR_v1.md; no Uncategorized placeholder in RESOLVER
garrytanf0f015ed4412
diff --git a/test/skills-conformance.test.ts b/test/skills-conformance.test.tsindex a656b8b2ca..bae718fd37 100644--- a/test/skills-conformance.test.ts+++ b/test/skills-conformance.test.ts@@ -88,9 +88,20 @@ describe("skills conformance", () => {test("has an Output Format section", () => {expect(content).toContain("## Output Format");});++ test("has a When it fails section that links the agent operator protocol", () => {+ const section = content.split(/^## When it fails\s*$/m)[1]?.split(/^## /m)[0];+ expect(section).toBeDefined();+ expect(section).toContain("AGENT_OPERATOR_v1.md");+ });});}+ test("RESOLVER.md has no generator placeholder Uncategorized section", () => {+ const resolver = readFileSync(join(SKILLS_DIR, "RESOLVER.md"), "utf-8");+ expect(resolver).not.toMatch(/^## Uncategorized\s*$/m);+ });+test("no duplicate skill names in frontmatter", () => {const names: string[] = [];for (const dir of skillDirs) {