claude-code: fix skills implementation

Claude skills are only found when using `SKILL.md` entrypoints.
Attribute names should be used for the directory structure, not the
filename.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2026-02-18 20:51:14 -06:00
parent 167e0b6837
commit 91be7cce76
7 changed files with 34 additions and 16 deletions

View file

@ -38,14 +38,14 @@
assertFileExists home-files/.claude/commands/path-command.md
assertFileExists home-files/.claude/agents/inline-agent.md
assertFileExists home-files/.claude/agents/path-agent.md
assertFileExists home-files/.claude/skills/inline-skill.md
assertFileExists home-files/.claude/skills/path-skill.md
assertFileExists home-files/.claude/skills/inline-skill/SKILL.md
assertFileExists home-files/.claude/skills/path-skill/SKILL.md
assertFileContent home-files/.claude/commands/path-command.md \
${./test-command.md}
assertFileContent home-files/.claude/agents/path-agent.md \
${./test-agent.md}
assertFileContent home-files/.claude/skills/path-skill.md \
assertFileContent home-files/.claude/skills/path-skill/SKILL.md \
${./test-skill.md}
'';
}

View file

@ -0,0 +1,12 @@
---
name: data-processing
description: Process and transform structured data files.
---
# Data Processing Skill
Use this skill for data-processing tasks.
## Supporting files
- `extract.md`: extraction workflow details
- `convert.md`: conversion workflow details

View file

@ -5,10 +5,10 @@
};
nmt.script = ''
assertFileExists home-files/.claude/skills/test-skill.md
assertLinkExists home-files/.claude/skills/test-skill.md
assertFileExists home-files/.claude/skills/test-skill/SKILL.md
assertLinkExists home-files/.claude/skills/test-skill/SKILL.md
assertFileContent \
home-files/.claude/skills/test-skill.md \
${./skills/test-skill.md}
home-files/.claude/skills/test-skill/SKILL.md \
${./skills/test-skill/SKILL.md}
'';
}

View file

@ -7,8 +7,8 @@
};
nmt.script = ''
assertFileExists home-files/.claude/skills/test-skill.md
assertFileContent home-files/.claude/skills/test-skill.md \
assertFileExists home-files/.claude/skills/test-skill/SKILL.md
assertFileContent home-files/.claude/skills/test-skill/SKILL.md \
${./test-skill.md}
'';
}

View file

@ -7,10 +7,15 @@
};
nmt.script = ''
assertFileExists home-files/.claude/skills/data-processing/SKILL.md
assertFileExists home-files/.claude/skills/data-processing/extract.md
assertFileExists home-files/.claude/skills/data-processing/convert.md
assertLinkExists home-files/.claude/skills/data-processing/SKILL.md
assertLinkExists home-files/.claude/skills/data-processing/extract.md
assertLinkExists home-files/.claude/skills/data-processing/convert.md
assertFileContent \
home-files/.claude/skills/data-processing/SKILL.md \
${./skill-subdir/SKILL.md}
assertFileContent \
home-files/.claude/skills/data-processing/extract.md \
${./skill-subdir/extract.md}