This commit is contained in:
Dam Manh Dung 2026-07-14 19:16:21 -07:00 committed by GitHub
commit f5eee1b5a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import { discoverTemplates, discoverSkillFiles } from './discover-skills';
import * as fs from 'fs';
import * as path from 'path';
import { execSync } from 'child_process';
import { claude } from '../hosts/index';
const ROOT = path.resolve(import.meta.dir, '..');
const ROOT_REALPATH = fs.realpathSync(ROOT);
@ -64,6 +65,7 @@ for (const file of SKILL_FILES) {
console.log('\n Templates:');
const TEMPLATES = discoverTemplates(ROOT);
const claudeSkipSkills = new Set(claude.generation.skipSkills || []);
for (const { tmpl, output } of TEMPLATES) {
const tmplPath = path.join(ROOT, tmpl);
@ -72,6 +74,11 @@ for (const { tmpl, output } of TEMPLATES) {
console.log(` \u26a0\ufe0f ${output.padEnd(30)} — no template`);
continue;
}
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(outPath)) {
hasErrors = true;
console.log(` \u274c ${output.padEnd(30)} — generated file missing! Run: bun run gen:skill-docs`);