Repository navigation
fix(skill-check): skip missing template validation for skipped primar… - #2034
dammanhdungvn wants to merge 1 commit into
Conversation
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
|
no comment |
Logic bug: skip guard is unreachable for missing templatesThe guard fires after the Current (broken order): if (!fs.existsSync(tmplPath)) {
console.log(` ⚠️ ${output.padEnd(30)} — no template`);
continue; // exits here before skip guard
}
const dirName = path.dirname(tmpl);
if (dirName !== '.' && claudeSkipSkills.has(dirName)) { // dead for missing templates
...
}Fix — move skip guard above the existence check: const dirName = path.dirname(tmpl);
if (dirName !== '.' && claudeSkipSkills.has(dirName)) {
console.log(` ✅ ${tmpl.padEnd(30)} → (skipped for primary host ${claude.displayName})`);
continue;
}
if (!fs.existsSync(tmplPath)) {
console.log(` ⚠️ ${output.padEnd(30)} — no template`);
continue;
}Two other minor nits while here:
|
|
@dammanhdungvn Please rewrite the validation so skill:check does not require claude/SKILL.md when the Claude host intentionally skips that primary-host output. |
|
Thanks for this, @dammanhdungvn. The fix is now on main: skill:check was rewritten to validate the generator's actual outputs, so it no longer requires templates for host-skipped skills (scripts/skill-check.ts) (fixed in v1.87.6.0, #2898). Closing as superseded; if you still see the problem on the latest gstack, please open an issue with ./setup --status output. |
…y host skills