feat: define skill placement and provenance policy (#748)

This commit is contained in:
Neha Prasad
2026-03-23 04:09:48 +05:30
committed by GitHub
parent 09efd68228
commit 4df960c9d5
6 changed files with 148 additions and 6 deletions

View File

@@ -99,13 +99,14 @@ function validateCommands() {
}
// Check skill directory references (e.g., "skills/tdd-workflow/")
// learned and imported are reserved roots (~/.claude/skills/); no local dir expected
const reservedSkillRoots = new Set(['learned', 'imported']);
const skillRefs = contentNoCodeBlocks.matchAll(/skills\/([a-z][-a-z0-9]*)\//g);
for (const match of skillRefs) {
const refName = match[1];
if (!validSkills.has(refName)) {
console.warn(`WARN: ${file} - references skill directory skills/${refName}/ (not found locally)`);
warnCount++;
}
if (reservedSkillRoots.has(refName) || validSkills.has(refName)) continue;
console.warn(`WARN: ${file} - references skill directory skills/${refName}/ (not found locally)`);
warnCount++;
}
// Check agent name references in workflow diagrams (e.g., "planner -> tdd-guide")