add-skill-kit 1.3.1 → 1.3.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.
@@ -388,6 +388,94 @@ 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
+
463
+ // Install .shared if it exists (contains shared resources like ui-ux-pro-max data)
464
+ const sharedDir = path.join(tmp, ".agent", ".shared");
465
+ const targetSharedDir = path.join(WORKSPACE, "..", ".shared");
466
+ let sharedInstalled = false;
467
+
468
+ if (fs.existsSync(sharedDir) && !fs.existsSync(targetSharedDir)) {
469
+ stepLine();
470
+ const ss = spinner();
471
+ ss.start("Installing shared resources");
472
+
473
+ fs.cpSync(sharedDir, targetSharedDir, { recursive: true });
474
+ sharedInstalled = true;
475
+
476
+ ss.stop("Installed .shared/ (ui-ux-pro-max data)");
477
+ }
478
+
391
479
  // Installation complete step
392
480
  stepLine();
393
481
  step("Installation complete");
@@ -409,14 +497,40 @@ export async function run(spec) {
409
497
  successContent += `${c.cyan("✓")} ${c.dim(`.agent/workflows/ (${workflowsInstalled} files)`)}\n`;
410
498
  }
411
499
 
500
+ // Agents summary
501
+ if (agentsInstalled > 0) {
502
+ successContent += `${c.cyan("✓")} ${c.dim(`.agent/agents/ (${agentsInstalled} files)`)}\n`;
503
+ }
504
+
412
505
  // GEMINI.md summary
413
506
  if (geminiInstalled) {
414
507
  successContent += `${c.cyan("✓")} ${c.dim(".agent/GEMINI.md (Agent Rules)")}\n`;
415
508
  }
416
509
 
510
+ // ARCHITECTURE.md summary
511
+ if (archInstalled) {
512
+ successContent += `${c.cyan("✓")} ${c.dim(".agent/ARCHITECTURE.md")}\n`;
513
+ }
514
+
515
+ // Knowledge summary
516
+ if (knowledgeInstalled) {
517
+ successContent += `${c.cyan("✓")} ${c.dim(".agent/knowledge/")}\n`;
518
+ }
519
+
520
+ // Rules summary
521
+ if (rulesInstalled > 0) {
522
+ successContent += `${c.cyan("✓")} ${c.dim(`.agent/rules/ (${rulesInstalled} files)`)}\n`;
523
+ }
524
+
525
+ // Shared resources summary
526
+ if (sharedInstalled) {
527
+ successContent += `${c.cyan("✓")} ${c.dim(".agent/.shared/ (ui-ux-pro-max data)")}\n`;
528
+ }
529
+
417
530
  // Build title
418
531
  const parts = [`${selectedSkills.length} skills`];
419
532
  if (workflowsInstalled > 0) parts.push(`${workflowsInstalled} workflows`);
533
+ if (agentsInstalled > 0) parts.push(`${agentsInstalled} agents`);
420
534
  if (geminiInstalled) parts.push("GEMINI.md");
421
535
 
422
536
  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.3",
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>",