@agentskillkit/agent-skills 3.2.2 → 3.2.5

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 (51) hide show
  1. package/.agent/skills/mobile-design/scripts/mobile_audit.js +333 -0
  2. package/.agent/skills/typescript-expert/scripts/ts_diagnostic.js +227 -0
  3. package/README.md +197 -720
  4. package/package.json +4 -4
  5. package/packages/cli/lib/audit.js +2 -2
  6. package/packages/cli/lib/auto-learn.js +8 -8
  7. package/packages/cli/lib/eslint-fix.js +1 -1
  8. package/packages/cli/lib/fix.js +5 -5
  9. package/packages/cli/lib/hooks/install-hooks.js +4 -4
  10. package/packages/cli/lib/hooks/lint-learn.js +4 -4
  11. package/packages/cli/lib/knowledge-index.js +4 -4
  12. package/packages/cli/lib/knowledge-metrics.js +2 -2
  13. package/packages/cli/lib/knowledge-retention.js +3 -3
  14. package/packages/cli/lib/knowledge-validator.js +3 -3
  15. package/packages/cli/lib/learn.js +10 -10
  16. package/packages/cli/lib/recall.js +1 -1
  17. package/packages/cli/lib/skill-learn.js +2 -2
  18. package/packages/cli/lib/stats.js +3 -3
  19. package/packages/cli/lib/ui/dashboard-ui.js +222 -0
  20. package/packages/cli/lib/ui/help-ui.js +41 -18
  21. package/packages/cli/lib/ui/index.js +57 -5
  22. package/packages/cli/lib/ui/settings-ui.js +292 -14
  23. package/packages/cli/lib/ui/stats-ui.js +93 -43
  24. package/packages/cli/lib/watcher.js +2 -2
  25. package/packages/kit/kit.js +89 -0
  26. package/packages/kit/lib/agents.js +208 -0
  27. package/packages/kit/lib/commands/analyze.js +70 -0
  28. package/packages/kit/lib/commands/cache.js +65 -0
  29. package/packages/kit/lib/commands/doctor.js +75 -0
  30. package/packages/kit/lib/commands/help.js +155 -0
  31. package/packages/kit/lib/commands/info.js +38 -0
  32. package/packages/kit/lib/commands/init.js +39 -0
  33. package/packages/kit/lib/commands/install.js +803 -0
  34. package/packages/kit/lib/commands/list.js +43 -0
  35. package/packages/kit/lib/commands/lock.js +57 -0
  36. package/packages/kit/lib/commands/uninstall.js +307 -0
  37. package/packages/kit/lib/commands/update.js +55 -0
  38. package/packages/kit/lib/commands/validate.js +69 -0
  39. package/packages/kit/lib/commands/verify.js +56 -0
  40. package/packages/kit/lib/config.js +81 -0
  41. package/packages/kit/lib/helpers.js +196 -0
  42. package/packages/kit/lib/helpers.test.js +60 -0
  43. package/packages/kit/lib/installer.js +164 -0
  44. package/packages/kit/lib/skills.js +119 -0
  45. package/packages/kit/lib/skills.test.js +109 -0
  46. package/packages/kit/lib/types.js +82 -0
  47. package/packages/kit/lib/ui.js +329 -0
  48. package/.agent/skills/mobile-design/scripts/mobile_audit.py +0 -670
  49. package/.agent/skills/requirements-python.txt +0 -25
  50. package/.agent/skills/requirements.txt +0 -96
  51. package/.agent/skills/typescript-expert/scripts/ts_diagnostic.py +0 -203
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @fileoverview Info command
3
+ */
4
+
5
+ import fs from "fs";
6
+ import path from "path";
7
+ import { resolveScope, formatDate } from "../helpers.js";
8
+ import { step, stepLine, S, c, fatal } from "../ui.js";
9
+
10
+ /**
11
+ * Show skill info
12
+ * @param {string} name
13
+ */
14
+ export async function run(name) {
15
+ if (!name) fatal("Missing skill name");
16
+
17
+ const scope = resolveScope();
18
+ const localDir = path.join(scope, name);
19
+
20
+ stepLine();
21
+
22
+ if (fs.existsSync(localDir)) {
23
+ step(`${c.bold(name)} ${c.green("(installed)")}`, S.diamondFilled, "cyan");
24
+ console.log(`${c.gray(S.branch)} ${c.dim("Path: " + localDir)}`);
25
+
26
+ const mf = path.join(localDir, ".skill-source.json");
27
+ if (fs.existsSync(mf)) {
28
+ const m = JSON.parse(fs.readFileSync(mf, "utf-8"));
29
+ console.log(`${c.gray(S.branch)} Repo: ${m.repo || "local"}`);
30
+ console.log(`${c.gray(S.branch)} Installed: ${formatDate(m.installedAt)}`);
31
+ }
32
+ stepLine();
33
+ return;
34
+ }
35
+
36
+ step(`Skill not installed: ${name}`, S.diamond, "yellow");
37
+ stepLine();
38
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @fileoverview Init command
3
+ */
4
+
5
+ import fs from "fs";
6
+ import { step, stepLine, S, success } from "../ui.js";
7
+ import { GLOBAL, GLOBAL_DIR, WORKSPACE, DRY, cwd } from "../config.js";
8
+ import path from "path";
9
+
10
+ /**
11
+ * Initialize skills directory
12
+ */
13
+ export async function run() {
14
+ stepLine();
15
+
16
+ const targetDir = GLOBAL ? GLOBAL_DIR : WORKSPACE;
17
+
18
+ if (fs.existsSync(targetDir)) {
19
+ step(`Skills directory already exists: ${targetDir}`, S.check, "green");
20
+ return;
21
+ }
22
+
23
+ if (DRY) {
24
+ step(`Would create: ${targetDir}`, S.diamond);
25
+ return;
26
+ }
27
+
28
+ fs.mkdirSync(targetDir, { recursive: true });
29
+
30
+ // Create .gitignore if workspace
31
+ if (!GLOBAL) {
32
+ const gi = path.join(cwd, ".agent", ".gitignore");
33
+ if (!fs.existsSync(gi)) {
34
+ fs.writeFileSync(gi, "# Skill caches\nskills/*/.skill-source.json\n");
35
+ }
36
+ }
37
+
38
+ success(`Initialized: ${targetDir}`);
39
+ }