mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 02:54:31 -07:00
feat(skills): implement linking for agent skills (#18295)
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user