Skip to content

Commit d171689

Browse files
committed
1.2.1: All skill files are copied
1 parent 0512c0f commit d171689

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lenne.tech/cli",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "lenne.Tech CLI: lt",
55
"keywords": [
66
"lenne.Tech",

src/commands/claude/install-skills.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,14 @@ async function installSingleSkill(
139139
filesystem.dir(skillsDir);
140140
}
141141

142-
// Copy all skill files with version checking
143-
const skillFiles = ['SKILL.md', 'examples.md', 'reference.md'];
142+
// Dynamically get all files from the skill template directory
143+
const allItems = filesystem.list(templatesDir) || [];
144+
const skillFiles = allItems.filter((item: string) => {
145+
const itemPath = join(templatesDir, item);
146+
// Only include files (not directories)
147+
return !filesystem.isDirectory(itemPath);
148+
});
149+
144150
let copiedCount = 0;
145151
let skippedCount = 0;
146152
let updatedCount = 0;
@@ -152,11 +158,6 @@ async function installSingleSkill(
152158
const sourcePath = join(templatesDir, file);
153159
const targetPath = join(skillsDir, file);
154160

155-
if (!filesystem.exists(sourcePath)) {
156-
info(` Warning: ${file} not found in templates, skipping...`);
157-
continue;
158-
}
159-
160161
const sourceContent = filesystem.read(sourcePath);
161162

162163
// Check if target file exists

0 commit comments

Comments
 (0)