@kood/claude-code 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +17 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -144,15 +144,24 @@ var listAvailableTemplates = async () => {
|
|
|
144
144
|
}
|
|
145
145
|
return templates;
|
|
146
146
|
};
|
|
147
|
-
var
|
|
147
|
+
var FRAMEWORK_SPECIFIC_SKILLS_MAP = {
|
|
148
148
|
nextjs: ["nextjs-react-best-practices", "korea-uiux-design", "figma-to-code"],
|
|
149
149
|
"tanstack-start": [
|
|
150
150
|
"tanstack-start-react-best-practices",
|
|
151
151
|
"korea-uiux-design",
|
|
152
152
|
"figma-to-code"
|
|
153
153
|
]
|
|
154
|
-
// hono와 npx는 스킬 없음
|
|
154
|
+
// hono와 npx는 프레임워크별 스킬 없음
|
|
155
155
|
};
|
|
156
|
+
var COMMON_SKILLS = [
|
|
157
|
+
"global-uiux-design",
|
|
158
|
+
"docs-creator",
|
|
159
|
+
"docs-refactor",
|
|
160
|
+
"plan",
|
|
161
|
+
"prd",
|
|
162
|
+
"ralph",
|
|
163
|
+
"execute"
|
|
164
|
+
];
|
|
156
165
|
var copySkills = async (templates, targetDir) => {
|
|
157
166
|
const counter = { files: 0, directories: 0 };
|
|
158
167
|
const targetSkillsDir = path.join(targetDir, ".claude", "skills");
|
|
@@ -162,8 +171,9 @@ var copySkills = async (templates, targetDir) => {
|
|
|
162
171
|
}
|
|
163
172
|
await fs.ensureDir(targetSkillsDir);
|
|
164
173
|
const skillsToCopy = /* @__PURE__ */ new Set();
|
|
174
|
+
COMMON_SKILLS.forEach((skill) => skillsToCopy.add(skill));
|
|
165
175
|
for (const template of templates) {
|
|
166
|
-
const skills =
|
|
176
|
+
const skills = FRAMEWORK_SPECIFIC_SKILLS_MAP[template] || [];
|
|
167
177
|
skills.forEach((skill) => skillsToCopy.add(skill));
|
|
168
178
|
}
|
|
169
179
|
for (const skill of skillsToCopy) {
|
|
@@ -237,10 +247,11 @@ var checkAllExtrasExist = async (templates) => {
|
|
|
237
247
|
const commandsSrc = path.join(claudeDir, "commands");
|
|
238
248
|
const agentsSrc = path.join(claudeDir, "agents");
|
|
239
249
|
const instructionsSrc = path.join(claudeDir, "instructions");
|
|
240
|
-
const
|
|
241
|
-
const skills =
|
|
250
|
+
const hasFrameworkSkills = templates.some((template) => {
|
|
251
|
+
const skills = FRAMEWORK_SPECIFIC_SKILLS_MAP[template];
|
|
242
252
|
return skills && skills.length > 0;
|
|
243
253
|
});
|
|
254
|
+
const hasSkills = COMMON_SKILLS.length > 0 || hasFrameworkSkills;
|
|
244
255
|
const hasCommands = await hasFiles(commandsSrc);
|
|
245
256
|
const hasAgents = await hasFiles(agentsSrc);
|
|
246
257
|
const hasInstructions = await hasFiles(instructionsSrc);
|
|
@@ -481,7 +492,7 @@ var init = async (options) => {
|
|
|
481
492
|
|
|
482
493
|
// src/index.ts
|
|
483
494
|
var program = new Command();
|
|
484
|
-
program.name("claude-code").description("Claude Code documentation installer for projects").version("0.5.
|
|
495
|
+
program.name("claude-code").description("Claude Code documentation installer for projects").version("0.5.1");
|
|
485
496
|
program.option(
|
|
486
497
|
"-t, --template <names>",
|
|
487
498
|
"template names (comma-separated: tanstack-start,hono)"
|