namnam-skills 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/cli.js +13 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "namnam-skills",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Ultimate AI Skills Installer - Universal support for Claude, Codex, Cursor, Windsurf, Cline, Aider, and more. 150+ agents, workflows, and skills.",
5
5
  "author": "NamNam",
6
6
  "license": "MIT",
@@ -47,7 +47,7 @@
47
47
  "commander": "^12.1.0",
48
48
  "fs-extra": "^11.2.0",
49
49
  "inquirer": "^9.2.15",
50
- "namnam-skills": "^1.0.0",
50
+ "namnam-skills": "^1.0.2",
51
51
  "ora": "^8.0.1"
52
52
  },
53
53
  "engines": {
package/src/cli.js CHANGED
@@ -58,7 +58,7 @@ ${chalk.cyan('╚═════════════════════
58
58
  const SKILL_CATEGORIES = {
59
59
  core: {
60
60
  name: 'Core Skills',
61
- description: 'Essential: /namnam orchestrator, git, code-review, validate-and-fix',
61
+ description: 'Essential: /namnam mega-command (orchestration, git, review, memory)',
62
62
  folder: 'core'
63
63
  },
64
64
  platforms: {
@@ -213,9 +213,17 @@ program
213
213
  const templatesDir = path.join(__dirname, 'templates');
214
214
  let copiedCount = 0;
215
215
 
216
+ // Always copy namnam.md to root (for /namnam command)
217
+ const namnamSrc = path.join(templatesDir, 'namnam.md');
218
+ const namnamDest = path.join(claudeDir, 'namnam.md');
219
+ if (await fs.pathExists(namnamSrc)) {
220
+ await fs.copy(namnamSrc, namnamDest, { overwrite: options.force });
221
+ copiedCount += 1;
222
+ }
223
+
216
224
  if (selectedCategories.includes('all')) {
217
225
  // Copy everything
218
- const folders = ['core', 'platforms', 'official-plugins', 'vercel-skills', 'claudekit', 'bmad', 'cursor-rules', 'system-prompts'];
226
+ const folders = ['platforms', 'official-plugins', 'vercel-skills', 'claudekit', 'bmad', 'cursor-rules', 'system-prompts'];
219
227
  for (const folder of folders) {
220
228
  const srcDir = path.join(templatesDir, folder);
221
229
  if (await fs.pathExists(srcDir)) {
@@ -226,6 +234,9 @@ program
226
234
  } else {
227
235
  // Copy selected categories
228
236
  for (const category of selectedCategories) {
237
+ // Skip 'core' as namnam.md is already copied to root
238
+ if (category === 'core') continue;
239
+
229
240
  const catConfig = SKILL_CATEGORIES[category];
230
241
  if (!catConfig) continue;
231
242