claude-skill-lord 2.0.5 → 2.0.6

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-skill-lord",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Curated Claude Code plugin — 43 agents, 170 skills, 114 commands, 11 language rules",
5
5
  "author": {
6
6
  "name": "Dong Anh",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-skill-lord",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Curated Claude Code plugin — 43 agents, 170 skills, 114 commands, 11 language rules",
5
5
  "author": {
6
6
  "name": "Dong Anh",
@@ -115,6 +115,19 @@ const pluginJson = buildPluginJson('full', filesToCopy, pkg.version);
115
115
  fs.writeFileSync(pluginJsonPath, JSON.stringify(pluginJson, null, 2));
116
116
  console.log(`\n Generated: .claude/plugin.json`);
117
117
 
118
+ // Copy CLAUDE.md to project root (Claude Code reads this automatically)
119
+ const claudeMdSrc = path.join(skillLordRoot, 'CLAUDE.md');
120
+ const claudeMdDest = path.join(targetDir, 'CLAUDE.md');
121
+ if (fs.existsSync(claudeMdSrc)) {
122
+ if (fs.existsSync(claudeMdDest)) {
123
+ console.log(` Skipped: CLAUDE.md (already exists in project root)`);
124
+ } else {
125
+ fs.copyFileSync(claudeMdSrc, claudeMdDest);
126
+ console.log(` Copied: CLAUDE.md → project root`);
127
+ copied++;
128
+ }
129
+ }
130
+
118
131
  console.log(`\n Installation complete!`);
119
132
  console.log(` Copied: ${copied} files`);
120
133
  if (skipped > 0) console.log(` Skipped: ${skipped} files (already exist)`);
package/scripts/sl.js CHANGED
@@ -184,6 +184,28 @@ const commands = {
184
184
  console.log(` Rebuilt plugin.json (${rebuilt.agents.length} agents, ${rebuilt.skills.length} skill dirs)`);
185
185
  }
186
186
 
187
+ // Migrate CLAUDE.md to project root
188
+ const claudeMdSrc = path.join(rootDir, 'CLAUDE.md');
189
+ const claudeMdDest = path.join(targetDir, 'CLAUDE.md');
190
+ if (fs.existsSync(claudeMdSrc)) {
191
+ if (!fs.existsSync(claudeMdDest)) {
192
+ if (dryRun) console.log(` + NEW: CLAUDE.md (project root)`);
193
+ else {
194
+ fs.copyFileSync(claudeMdSrc, claudeMdDest);
195
+ console.log(` Copied CLAUDE.md → project root`);
196
+ }
197
+ added++;
198
+ } else {
199
+ const srcBuf = fs.readFileSync(claudeMdSrc);
200
+ const destBuf = fs.readFileSync(claudeMdDest);
201
+ if (!srcBuf.equals(destBuf)) {
202
+ if (dryRun) console.log(` ~ UPDATED: CLAUDE.md (project root)`);
203
+ else fs.copyFileSync(claudeMdSrc, claudeMdDest);
204
+ updated++;
205
+ }
206
+ }
207
+ }
208
+
187
209
  console.log(`\n ${dryRun ? '[DRY RUN] ' : ''}Results:`);
188
210
  console.log(` New files: ${added}`);
189
211
  console.log(` Updated: ${updated}`);