skilldex-cli 0.1.0

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 (111) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +318 -0
  3. package/dist/cli/commands/install-action.d.ts +7 -0
  4. package/dist/cli/commands/install-action.d.ts.map +1 -0
  5. package/dist/cli/commands/install-action.js +85 -0
  6. package/dist/cli/commands/install-action.js.map +1 -0
  7. package/dist/cli/commands/install.d.ts +3 -0
  8. package/dist/cli/commands/install.d.ts.map +1 -0
  9. package/dist/cli/commands/install.js +13 -0
  10. package/dist/cli/commands/install.js.map +1 -0
  11. package/dist/cli/commands/list-action.d.ts +6 -0
  12. package/dist/cli/commands/list-action.d.ts.map +1 -0
  13. package/dist/cli/commands/list-action.js +46 -0
  14. package/dist/cli/commands/list-action.js.map +1 -0
  15. package/dist/cli/commands/list.d.ts +3 -0
  16. package/dist/cli/commands/list.d.ts.map +1 -0
  17. package/dist/cli/commands/list.js +12 -0
  18. package/dist/cli/commands/list.js.map +1 -0
  19. package/dist/cli/commands/publish.d.ts +3 -0
  20. package/dist/cli/commands/publish.d.ts.map +1 -0
  21. package/dist/cli/commands/publish.js +10 -0
  22. package/dist/cli/commands/publish.js.map +1 -0
  23. package/dist/cli/commands/suggest-action.d.ts +6 -0
  24. package/dist/cli/commands/suggest-action.d.ts.map +1 -0
  25. package/dist/cli/commands/suggest-action.js +51 -0
  26. package/dist/cli/commands/suggest-action.js.map +1 -0
  27. package/dist/cli/commands/suggest.d.ts +3 -0
  28. package/dist/cli/commands/suggest.d.ts.map +1 -0
  29. package/dist/cli/commands/suggest.js +13 -0
  30. package/dist/cli/commands/suggest.js.map +1 -0
  31. package/dist/cli/commands/uninstall-action.d.ts +6 -0
  32. package/dist/cli/commands/uninstall-action.d.ts.map +1 -0
  33. package/dist/cli/commands/uninstall-action.js +21 -0
  34. package/dist/cli/commands/uninstall-action.js.map +1 -0
  35. package/dist/cli/commands/uninstall.d.ts +3 -0
  36. package/dist/cli/commands/uninstall.d.ts.map +1 -0
  37. package/dist/cli/commands/uninstall.js +12 -0
  38. package/dist/cli/commands/uninstall.js.map +1 -0
  39. package/dist/cli/commands/validate-action.d.ts +4 -0
  40. package/dist/cli/commands/validate-action.d.ts.map +1 -0
  41. package/dist/cli/commands/validate-action.js +22 -0
  42. package/dist/cli/commands/validate-action.js.map +1 -0
  43. package/dist/cli/commands/validate.d.ts +3 -0
  44. package/dist/cli/commands/validate.d.ts.map +1 -0
  45. package/dist/cli/commands/validate.js +11 -0
  46. package/dist/cli/commands/validate.js.map +1 -0
  47. package/dist/cli/index.d.ts +3 -0
  48. package/dist/cli/index.d.ts.map +1 -0
  49. package/dist/cli/index.js +31 -0
  50. package/dist/cli/index.js.map +1 -0
  51. package/dist/cli/ui/output.d.ts +9 -0
  52. package/dist/cli/ui/output.d.ts.map +1 -0
  53. package/dist/cli/ui/output.js +43 -0
  54. package/dist/cli/ui/output.js.map +1 -0
  55. package/dist/cli/ui/prompts.d.ts +8 -0
  56. package/dist/cli/ui/prompts.d.ts.map +1 -0
  57. package/dist/cli/ui/prompts.js +28 -0
  58. package/dist/cli/ui/prompts.js.map +1 -0
  59. package/dist/core/installer.d.ts +18 -0
  60. package/dist/core/installer.d.ts.map +1 -0
  61. package/dist/core/installer.js +68 -0
  62. package/dist/core/installer.js.map +1 -0
  63. package/dist/core/manifest.d.ts +8 -0
  64. package/dist/core/manifest.d.ts.map +1 -0
  65. package/dist/core/manifest.js +62 -0
  66. package/dist/core/manifest.js.map +1 -0
  67. package/dist/core/resolver.d.ts +5 -0
  68. package/dist/core/resolver.d.ts.map +1 -0
  69. package/dist/core/resolver.js +68 -0
  70. package/dist/core/resolver.js.map +1 -0
  71. package/dist/core/suggest-agent.d.ts +10 -0
  72. package/dist/core/suggest-agent.d.ts.map +1 -0
  73. package/dist/core/suggest-agent.js +108 -0
  74. package/dist/core/suggest-agent.js.map +1 -0
  75. package/dist/core/validator.d.ts +4 -0
  76. package/dist/core/validator.d.ts.map +1 -0
  77. package/dist/core/validator.js +347 -0
  78. package/dist/core/validator.js.map +1 -0
  79. package/dist/index.d.ts +3 -0
  80. package/dist/index.d.ts.map +1 -0
  81. package/dist/index.js +5 -0
  82. package/dist/index.js.map +1 -0
  83. package/dist/mcp/server.d.ts +2 -0
  84. package/dist/mcp/server.d.ts.map +1 -0
  85. package/dist/mcp/server.js +109 -0
  86. package/dist/mcp/server.js.map +1 -0
  87. package/dist/registry/index.d.ts +2 -0
  88. package/dist/registry/index.d.ts.map +1 -0
  89. package/dist/registry/index.js +4 -0
  90. package/dist/registry/index.js.map +1 -0
  91. package/dist/registry/sources/github.d.ts +10 -0
  92. package/dist/registry/sources/github.d.ts.map +1 -0
  93. package/dist/registry/sources/github.js +78 -0
  94. package/dist/registry/sources/github.js.map +1 -0
  95. package/dist/types/manifest.d.ts +19 -0
  96. package/dist/types/manifest.d.ts.map +1 -0
  97. package/dist/types/manifest.js +2 -0
  98. package/dist/types/manifest.js.map +1 -0
  99. package/dist/types/registry.d.ts +17 -0
  100. package/dist/types/registry.d.ts.map +1 -0
  101. package/dist/types/registry.js +2 -0
  102. package/dist/types/registry.js.map +1 -0
  103. package/dist/types/scope.d.ts +8 -0
  104. package/dist/types/scope.d.ts.map +1 -0
  105. package/dist/types/scope.js +2 -0
  106. package/dist/types/scope.js.map +1 -0
  107. package/dist/types/skill.d.ts +34 -0
  108. package/dist/types/skill.d.ts.map +1 -0
  109. package/dist/types/skill.js +2 -0
  110. package/dist/types/skill.js.map +1 -0
  111. package/package.json +56 -0
@@ -0,0 +1,10 @@
1
+ import type { ScopeConfig } from '../../types/scope.js';
2
+ import type { InstallOptions, InstallResult } from '../../core/installer.js';
3
+ export interface ParsedGitUrl {
4
+ repoUrl: string;
5
+ branch?: string;
6
+ subPath?: string;
7
+ }
8
+ export declare function parseGitUrl(raw: string): ParsedGitUrl;
9
+ export declare function installFromGitUrl(rawUrl: string, targetScopeConfig: ScopeConfig, options: InstallOptions): Promise<InstallResult>;
10
+ //# sourceMappingURL=github.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github.d.ts","sourceRoot":"","sources":["../../../src/registry/sources/github.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAG5E,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAerD;AAED,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,WAAW,EAC9B,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,aAAa,CAAC,CA6BxB"}
@@ -0,0 +1,78 @@
1
+ import { mkdtemp, rm, readdir, stat } from 'node:fs/promises';
2
+ import path from 'node:path';
3
+ import os from 'node:os';
4
+ import { simpleGit } from 'simple-git';
5
+ import { installFromPath } from '../../core/installer.js';
6
+ export function parseGitUrl(raw) {
7
+ // Remove git+ prefix
8
+ let url = raw.replace(/^git\+/, '');
9
+ // Handle tree/branch/path syntax: https://github.com/user/repo/tree/branch/path
10
+ const treeMatch = url.match(/^(https?:\/\/[^/]+\/[^/]+\/[^/]+)\/tree\/([^/]+)(\/.*)?$/);
11
+ if (treeMatch) {
12
+ return {
13
+ repoUrl: treeMatch[1],
14
+ branch: treeMatch[2],
15
+ subPath: treeMatch[3]?.replace(/^\//, ''),
16
+ };
17
+ }
18
+ return { repoUrl: url };
19
+ }
20
+ export async function installFromGitUrl(rawUrl, targetScopeConfig, options) {
21
+ const parsed = parseGitUrl(rawUrl);
22
+ const tmpDir = await mkdtemp(path.join(os.tmpdir(), 'skilldex-'));
23
+ try {
24
+ const git = simpleGit();
25
+ const cloneOptions = parsed.branch ? ['--branch', parsed.branch, '--depth', '1'] : ['--depth', '1'];
26
+ await git.clone(parsed.repoUrl, tmpDir, cloneOptions);
27
+ const searchRoot = parsed.subPath ? path.join(tmpDir, parsed.subPath) : tmpDir;
28
+ // Find skill folders (directories containing SKILL.md)
29
+ const skillFolders = await findSkillFolders(searchRoot);
30
+ if (skillFolders.length === 0) {
31
+ throw new Error(`No skill folders (directories with SKILL.md) found in ${rawUrl}`);
32
+ }
33
+ // If exactly one skill found, install it directly
34
+ if (skillFolders.length === 1) {
35
+ return installFromPath(skillFolders[0], { ...options, sourceUrl: rawUrl });
36
+ }
37
+ // Multiple skills — install all (or first, for simplicity in MVP)
38
+ // TODO: In a future version, prompt the user to select which ones
39
+ return installFromPath(skillFolders[0], { ...options, sourceUrl: rawUrl });
40
+ }
41
+ finally {
42
+ await rm(tmpDir, { recursive: true, force: true });
43
+ }
44
+ }
45
+ async function findSkillFolders(root) {
46
+ const results = [];
47
+ // Check if root itself is a skill folder
48
+ try {
49
+ await stat(path.join(root, 'SKILL.md'));
50
+ results.push(root);
51
+ return results;
52
+ }
53
+ catch {
54
+ // root is not a skill folder itself — search children
55
+ }
56
+ try {
57
+ const entries = await readdir(root, { withFileTypes: true });
58
+ for (const entry of entries) {
59
+ if (!entry.isDirectory())
60
+ continue;
61
+ if (entry.name.startsWith('.'))
62
+ continue;
63
+ const childPath = path.join(root, entry.name);
64
+ try {
65
+ await stat(path.join(childPath, 'SKILL.md'));
66
+ results.push(childPath);
67
+ }
68
+ catch {
69
+ // not a skill folder
70
+ }
71
+ }
72
+ }
73
+ catch {
74
+ // Can't read directory
75
+ }
76
+ return results;
77
+ }
78
+ //# sourceMappingURL=github.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github.js","sourceRoot":"","sources":["../../../src/registry/sources/github.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,C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AAO,GAAG,MAAM,OAAO,CAAC,IAAI,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAA;QAC5D,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;YAC5B,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE;gBAAE,SAAQ;YAClC,IAAI,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC;gBAAE,SAAQ;YAExC,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAA;YAC7C,IAAI,CAAC;gBACH,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAA;gBAC5C,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;YACzB,CAAC;YAAC,MAAM,CAAC;gBACP,qBAAqB;YACvB,CAAC;QACH,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,uBAAuB;IACzB,CAAC;IAED,OAAO,OAAO,CAAA;AAChB,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { ScopeLevel } from './scope.js';
2
+ export type SkillSource = 'official' | 'community' | 'local';
3
+ export interface InstalledSkill {
4
+ name: string;
5
+ version: string;
6
+ source: SkillSource;
7
+ sourceUrl?: string;
8
+ installedAt: string;
9
+ specVersion: string;
10
+ score: number;
11
+ path: string;
12
+ }
13
+ export interface SkillManifest {
14
+ skilldexVersion: string;
15
+ scope: ScopeLevel;
16
+ skills: Record<string, InstalledSkill>;
17
+ updatedAt: string;
18
+ }
19
+ //# sourceMappingURL=manifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../src/types/manifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,CAAA;AAE5D,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,WAAW,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,aAAa;IAC5B,eAAe,EAAE,MAAM,CAAA;IACvB,KAAK,EAAE,UAAU,CAAA;IACjB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAA;IACtC,SAAS,EAAE,MAAM,CAAA;CAClB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../../src/types/manifest.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import type { SkillSource } from './manifest.js';
2
+ export interface RegistryEntry {
3
+ name: string;
4
+ description: string;
5
+ source: SkillSource;
6
+ sourceUrl: string;
7
+ score: number;
8
+ specVersion: string;
9
+ tags: string[];
10
+ publishedAt: string;
11
+ }
12
+ export interface SearchResult {
13
+ entries: RegistryEntry[];
14
+ query: string;
15
+ total: number;
16
+ }
17
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/types/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAEhD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,WAAW,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,aAAa,EAAE,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=registry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../../src/types/registry.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export type ScopeLevel = 'global' | 'shared' | 'project';
2
+ export interface ScopeConfig {
3
+ level: ScopeLevel;
4
+ rootPath: string;
5
+ manifestPath: string;
6
+ skillsDir: string;
7
+ }
8
+ //# sourceMappingURL=scope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../src/types/scope.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAA;AAExD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,UAAU,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;CAClB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=scope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scope.js","sourceRoot":"","sources":["../../src/types/scope.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
1
+ export interface SkillFrontmatter {
2
+ name: string;
3
+ description: string;
4
+ version?: string;
5
+ tags?: string[];
6
+ author?: string;
7
+ specVersion?: string;
8
+ }
9
+ export interface SkillPackage {
10
+ name: string;
11
+ path: string;
12
+ frontmatter: SkillFrontmatter;
13
+ lineCount: number;
14
+ hasScripts: boolean;
15
+ hasReferences: boolean;
16
+ hasAssets: boolean;
17
+ }
18
+ export type ValidationSeverity = 'error' | 'warning' | 'pass';
19
+ export interface ValidationDiagnostic {
20
+ severity: ValidationSeverity;
21
+ line?: number;
22
+ message: string;
23
+ check: string;
24
+ }
25
+ export interface ValidationResult {
26
+ skill: string;
27
+ score: number;
28
+ diagnostics: ValidationDiagnostic[];
29
+ specVersion: string;
30
+ passCount: number;
31
+ warnCount: number;
32
+ errorCount: number;
33
+ }
34
+ //# sourceMappingURL=skill.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../src/types/skill.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,gBAAgB,CAAA;IAC7B,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,OAAO,CAAA;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;AAE7D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,oBAAoB,EAAE,CAAA;IACnC,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;CACnB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=skill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill.js","sourceRoot":"","sources":["../../src/types/skill.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "skilldex-cli",
3
+ "version": "0.1.0",
4
+ "description": "Package manager and registry for Claude skill packages",
5
+ "type": "module",
6
+ "main": "./dist/index.js",
7
+ "bin": {
8
+ "skillpm": "./dist/index.js",
9
+ "spm": "./dist/index.js"
10
+ },
11
+ "scripts": {
12
+ "build": "tsc -p tsconfig.build.json",
13
+ "build:watch": "tsc -p tsconfig.build.json --watch",
14
+ "test": "vitest run",
15
+ "test:watch": "vitest",
16
+ "test:coverage": "vitest run --coverage",
17
+ "lint": "eslint src tests",
18
+ "format": "prettier --write src tests",
19
+ "dev": "tsx src/index.ts",
20
+ "mcp": "node dist/mcp/server.js"
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "README.md",
25
+ "LICENSE"
26
+ ],
27
+ "dependencies": {
28
+ "@anthropic-ai/sdk": "^0.51.0",
29
+ "@modelcontextprotocol/sdk": "^1.10.0",
30
+ "chalk": "^5.4.1",
31
+ "commander": "^13.1.0",
32
+ "inquirer": "^12.5.2",
33
+ "ora": "^8.2.0",
34
+ "simple-git": "^3.33.0",
35
+ "yaml": "^2.7.0",
36
+ "zod": "^3.24.2"
37
+ },
38
+ "devDependencies": {
39
+ "@types/node": "^20.17.30",
40
+ "@vitest/coverage-v8": "^3.1.1",
41
+ "eslint": "^9.24.0",
42
+ "prettier": "^3.5.3",
43
+ "tsx": "^4.19.3",
44
+ "typescript": "^5.8.3",
45
+ "vitest": "^3.1.1"
46
+ },
47
+ "engines": {
48
+ "node": ">=20.0.0"
49
+ },
50
+ "license": "MIT",
51
+ "repository": {
52
+ "type": "git",
53
+ "url": "https://github.com/Pandemonium-Research/Skilldex"
54
+ },
55
+ "keywords": ["claude", "skills", "package-manager", "anthropic", "ai"]
56
+ }