add-skill-kit 1.3.1 → 1.3.2

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.
@@ -388,6 +388,78 @@ export async function run(spec) {
388
388
  geminiInstalled = true;
389
389
  }
390
390
 
391
+ // Install agents if they exist
392
+ const agentsDir = path.join(tmp, ".agent", "agents");
393
+ const targetAgentsDir = path.join(WORKSPACE, "..", "agents");
394
+ let agentsInstalled = 0;
395
+
396
+ if (fs.existsSync(agentsDir)) {
397
+ stepLine();
398
+ const as = spinner();
399
+ as.start("Installing agents");
400
+
401
+ fs.mkdirSync(targetAgentsDir, { recursive: true });
402
+ const agents = fs.readdirSync(agentsDir).filter(f => f.endsWith(".md"));
403
+
404
+ for (const agent of agents) {
405
+ const src = path.join(agentsDir, agent);
406
+ const dest = path.join(targetAgentsDir, agent);
407
+
408
+ if (!fs.existsSync(dest)) {
409
+ fs.copyFileSync(src, dest);
410
+ agentsInstalled++;
411
+ }
412
+ }
413
+
414
+ as.stop(`Installed ${agentsInstalled} agents`);
415
+ }
416
+
417
+ // Install ARCHITECTURE.md if it exists
418
+ const archSrc = path.join(tmp, ".agent", "ARCHITECTURE.md");
419
+ const archDest = path.join(WORKSPACE, "..", "ARCHITECTURE.md");
420
+ let archInstalled = false;
421
+
422
+ if (fs.existsSync(archSrc) && !fs.existsSync(archDest)) {
423
+ fs.copyFileSync(archSrc, archDest);
424
+ step("Installed ARCHITECTURE.md");
425
+ archInstalled = true;
426
+ }
427
+
428
+ // Install knowledge if it exists
429
+ const knowledgeDir = path.join(tmp, ".agent", "knowledge");
430
+ const targetKnowledgeDir = path.join(WORKSPACE, "..", "knowledge");
431
+ let knowledgeInstalled = false;
432
+
433
+ if (fs.existsSync(knowledgeDir) && !fs.existsSync(targetKnowledgeDir)) {
434
+ fs.cpSync(knowledgeDir, targetKnowledgeDir, { recursive: true });
435
+ step("Installed knowledge/");
436
+ knowledgeInstalled = true;
437
+ }
438
+
439
+ // Install rules if they exist
440
+ const rulesDir = path.join(tmp, ".agent", "rules");
441
+ const targetRulesDir = path.join(WORKSPACE, "..", "rules");
442
+ let rulesInstalled = 0;
443
+
444
+ if (fs.existsSync(rulesDir)) {
445
+ fs.mkdirSync(targetRulesDir, { recursive: true });
446
+ const rules = fs.readdirSync(rulesDir).filter(f => f.endsWith(".md"));
447
+
448
+ for (const rule of rules) {
449
+ const src = path.join(rulesDir, rule);
450
+ const dest = path.join(targetRulesDir, rule);
451
+
452
+ if (!fs.existsSync(dest)) {
453
+ fs.copyFileSync(src, dest);
454
+ rulesInstalled++;
455
+ }
456
+ }
457
+
458
+ if (rulesInstalled > 0) {
459
+ step(`Installed ${rulesInstalled} rules`);
460
+ }
461
+ }
462
+
391
463
  // Installation complete step
392
464
  stepLine();
393
465
  step("Installation complete");
@@ -409,14 +481,35 @@ export async function run(spec) {
409
481
  successContent += `${c.cyan("✓")} ${c.dim(`.agent/workflows/ (${workflowsInstalled} files)`)}\n`;
410
482
  }
411
483
 
484
+ // Agents summary
485
+ if (agentsInstalled > 0) {
486
+ successContent += `${c.cyan("✓")} ${c.dim(`.agent/agents/ (${agentsInstalled} files)`)}\n`;
487
+ }
488
+
412
489
  // GEMINI.md summary
413
490
  if (geminiInstalled) {
414
491
  successContent += `${c.cyan("✓")} ${c.dim(".agent/GEMINI.md (Agent Rules)")}\n`;
415
492
  }
416
493
 
494
+ // ARCHITECTURE.md summary
495
+ if (archInstalled) {
496
+ successContent += `${c.cyan("✓")} ${c.dim(".agent/ARCHITECTURE.md")}\n`;
497
+ }
498
+
499
+ // Knowledge summary
500
+ if (knowledgeInstalled) {
501
+ successContent += `${c.cyan("✓")} ${c.dim(".agent/knowledge/")}\n`;
502
+ }
503
+
504
+ // Rules summary
505
+ if (rulesInstalled > 0) {
506
+ successContent += `${c.cyan("✓")} ${c.dim(`.agent/rules/ (${rulesInstalled} files)`)}\n`;
507
+ }
508
+
417
509
  // Build title
418
510
  const parts = [`${selectedSkills.length} skills`];
419
511
  if (workflowsInstalled > 0) parts.push(`${workflowsInstalled} workflows`);
512
+ if (agentsInstalled > 0) parts.push(`${agentsInstalled} agents`);
420
513
  if (geminiInstalled) parts.push("GEMINI.md");
421
514
 
422
515
  console.log(boxen(successContent.trim(), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "add-skill-kit",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Enterprise-grade Agent Skill Manager with Antigravity Skills support, Progressive Disclosure detection, and semantic routing validation",
5
5
  "license": "MIT",
6
6
  "author": "agentskillkit <agentskillkit@gmail.com>",