feat(skills): implement linking for agent skills (#18295)

This commit is contained in:
Grant McCloskey
2026-02-04 14:11:01 -08:00
committed by GitHub
parent 821355c429
commit a3af4a8cae
16 changed files with 584 additions and 8 deletions
@@ -254,4 +254,21 @@ description:no-space-desc
expect(skills[0].name).toBe('no-space-name');
expect(skills[0].description).toBe('no-space-desc');
});
it('should sanitize skill names containing invalid filename characters', async () => {
const skillFile = path.join(testRootDir, 'SKILL.md');
await fs.writeFile(
skillFile,
`---
name: gke:prs-troubleshooter
description: Test sanitization
---
`,
);
const skills = await loadSkillsFromDir(testRootDir);
expect(skills).toHaveLength(1);
expect(skills[0].name).toBe('gke-prs-troubleshooter');
});
});