@lyupro/skillforge-mcp 1.1.1 → 1.3.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.
- package/.claude-plugin/marketplace.json +36 -0
- package/.claude-plugin/plugin.json +28 -0
- package/CHANGELOG.md +43 -0
- package/README.md +94 -12
- package/dist/cli/dispatcher.d.ts.map +1 -1
- package/dist/cli/dispatcher.js +24 -2
- package/dist/cli/dispatcher.js.map +1 -1
- package/dist/cli/folders-format.d.ts +10 -0
- package/dist/cli/folders-format.d.ts.map +1 -0
- package/dist/cli/folders-format.js +41 -0
- package/dist/cli/folders-format.js.map +1 -0
- package/dist/cli/folders-handlers.d.ts +16 -0
- package/dist/cli/folders-handlers.d.ts.map +1 -0
- package/dist/cli/folders-handlers.js +195 -0
- package/dist/cli/folders-handlers.js.map +1 -0
- package/dist/cli/folders-shared.d.ts +29 -0
- package/dist/cli/folders-shared.d.ts.map +1 -0
- package/dist/cli/folders-shared.js +82 -0
- package/dist/cli/folders-shared.js.map +1 -0
- package/dist/cli/folders.d.ts +41 -0
- package/dist/cli/folders.d.ts.map +1 -0
- package/dist/cli/folders.js +100 -0
- package/dist/cli/folders.js.map +1 -0
- package/dist/cli/install.d.ts +2 -0
- package/dist/cli/install.d.ts.map +1 -1
- package/dist/cli/install.js +47 -9
- package/dist/cli/install.js.map +1 -1
- package/dist/cli/tools.d.ts +49 -0
- package/dist/cli/tools.d.ts.map +1 -0
- package/dist/cli/tools.js +177 -0
- package/dist/cli/tools.js.map +1 -0
- package/dist/config/config-schema.d.ts +8 -0
- package/dist/config/config-schema.d.ts.map +1 -1
- package/dist/config/config-schema.js +6 -0
- package/dist/config/config-schema.js.map +1 -1
- package/dist/detect/skill-source-conflict.d.ts +47 -0
- package/dist/detect/skill-source-conflict.d.ts.map +1 -0
- package/dist/detect/skill-source-conflict.js +99 -0
- package/dist/detect/skill-source-conflict.js.map +1 -0
- package/dist/installers/cursor-installer.d.ts +6 -7
- package/dist/installers/cursor-installer.d.ts.map +1 -1
- package/dist/installers/cursor-installer.js +15 -20
- package/dist/installers/cursor-installer.js.map +1 -1
- package/dist/installers/paths.d.ts +28 -6
- package/dist/installers/paths.d.ts.map +1 -1
- package/dist/installers/paths.js +72 -20
- package/dist/installers/paths.js.map +1 -1
- package/dist/installers/registry.d.ts +8 -2
- package/dist/installers/registry.d.ts.map +1 -1
- package/dist/installers/registry.js +14 -7
- package/dist/installers/registry.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +3 -1
- package/dist/server.js.map +1 -1
- package/dist/tools/configure.d.ts +8 -0
- package/dist/tools/configure.d.ts.map +1 -1
- package/dist/tools/configure.js +17 -1
- package/dist/tools/configure.js.map +1 -1
- package/dist/tools/list.d.ts +2 -0
- package/dist/tools/list.d.ts.map +1 -1
- package/dist/tools/list.js +12 -0
- package/dist/tools/list.js.map +1 -1
- package/manifest.json +5 -4
- package/package.json +3 -2
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* SkillForge `tools` subcommand.
|
|
4
|
+
*
|
|
5
|
+
* Prints the 5 MCP tools the stdio server exposes to an LLM client —
|
|
6
|
+
* name, description, parameters, and a short example invocation.
|
|
7
|
+
*
|
|
8
|
+
* Descriptions are NOT hand-written here: they are sourced at runtime
|
|
9
|
+
* from `manifest.json#tools[]` (the authoritative surface). The static
|
|
10
|
+
* PARAM table below carries only parameter metadata + examples; a test
|
|
11
|
+
* (`tools.test.ts`) asserts every entry's `name` lines up with the
|
|
12
|
+
* manifest so the two cannot drift.
|
|
13
|
+
*
|
|
14
|
+
* Usage:
|
|
15
|
+
* skillforge-mcp tools Human-readable reference
|
|
16
|
+
* skillforge-mcp tools --json Machine-readable JSON ({ tools: [...] })
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Parameter metadata for the 5 MCP tools. Sourced from the Zod input
|
|
20
|
+
* schemas in `src/tools/*.ts`. Descriptions are intentionally absent —
|
|
21
|
+
* they come from the manifest at runtime.
|
|
22
|
+
*/
|
|
23
|
+
const TOOL_REFS = [
|
|
24
|
+
{
|
|
25
|
+
name: 'skills__list',
|
|
26
|
+
params: [
|
|
27
|
+
{ name: 'folder', type: 'string', required: false, note: 'Restrict to one configured folder.' },
|
|
28
|
+
{ name: 'search', type: 'string', required: false, note: 'Case-insensitive substring over name + description.' },
|
|
29
|
+
{
|
|
30
|
+
name: 'source',
|
|
31
|
+
type: "'claude' | 'codex' | 'persona' | 'custom'",
|
|
32
|
+
required: false,
|
|
33
|
+
note: 'Filter by skill format.',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
example: '{ "search": "review" }',
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
name: 'skills__get',
|
|
40
|
+
params: [{ name: 'name', type: 'string', required: true, note: 'Exact skill name to retrieve.' }],
|
|
41
|
+
example: '{ "name": "code-review" }',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'skills__invoke',
|
|
45
|
+
params: [
|
|
46
|
+
{ name: 'name', type: 'string', required: true, note: 'Exact skill name to invoke.' },
|
|
47
|
+
{ name: 'input', type: 'string', required: false, note: 'Optional input forwarded to the skill (default "").' },
|
|
48
|
+
],
|
|
49
|
+
example: '{ "name": "code-review", "input": "diff against main" }',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'skills__configure',
|
|
53
|
+
params: [
|
|
54
|
+
{
|
|
55
|
+
name: 'action',
|
|
56
|
+
type: "'add_folder' | 'remove_folder' | 'list_folders' | 'set_blacklist' | 'get_blacklist' | 'reset'",
|
|
57
|
+
required: true,
|
|
58
|
+
note: 'Which configuration action to run.',
|
|
59
|
+
},
|
|
60
|
+
{ name: 'folder', type: 'string', required: false, note: 'Folder path — required by add_folder / remove_folder.' },
|
|
61
|
+
{
|
|
62
|
+
name: 'alias',
|
|
63
|
+
type: 'string',
|
|
64
|
+
required: false,
|
|
65
|
+
note: 'Optional kebab-case alias for the folder — used by add_folder.',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'blacklist',
|
|
69
|
+
type: 'string[]',
|
|
70
|
+
required: false,
|
|
71
|
+
note: 'Blacklist patterns — required by set_blacklist.',
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
example: '{ "action": "add_folder", "folder": "/abs/path/to/skills" }',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'skills__reload',
|
|
78
|
+
params: [
|
|
79
|
+
{
|
|
80
|
+
name: 'folder',
|
|
81
|
+
type: 'string',
|
|
82
|
+
required: false,
|
|
83
|
+
note: 'Validate this folder is configured before the full rescan.',
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
example: '{}',
|
|
87
|
+
},
|
|
88
|
+
];
|
|
89
|
+
/** Resolve manifest.json relative to this module (dist/cli/tools.js → ../../manifest.json). */
|
|
90
|
+
async function readManifestTools() {
|
|
91
|
+
const { readFile } = await import('node:fs/promises');
|
|
92
|
+
const { fileURLToPath } = await import('node:url');
|
|
93
|
+
const { dirname, resolve } = await import('node:path');
|
|
94
|
+
const here = dirname(fileURLToPath(import.meta.url));
|
|
95
|
+
const manifestPath = resolve(here, '..', '..', 'manifest.json');
|
|
96
|
+
const raw = await readFile(manifestPath, 'utf8');
|
|
97
|
+
const parsed = JSON.parse(raw);
|
|
98
|
+
if (!Array.isArray(parsed.tools)) {
|
|
99
|
+
throw new Error('manifest.json missing "tools" array');
|
|
100
|
+
}
|
|
101
|
+
const map = new Map();
|
|
102
|
+
for (const entry of parsed.tools) {
|
|
103
|
+
const t = entry;
|
|
104
|
+
if (typeof t.name !== 'string' || typeof t.description !== 'string') {
|
|
105
|
+
throw new Error('manifest.json tools[] entry missing string name/description');
|
|
106
|
+
}
|
|
107
|
+
map.set(t.name, t.description);
|
|
108
|
+
}
|
|
109
|
+
return map;
|
|
110
|
+
}
|
|
111
|
+
/** Merge the static param refs with manifest descriptions; throws if a tool is missing. */
|
|
112
|
+
export async function resolveTools() {
|
|
113
|
+
const descriptions = await readManifestTools();
|
|
114
|
+
return TOOL_REFS.map((ref) => {
|
|
115
|
+
const description = descriptions.get(ref.name);
|
|
116
|
+
if (description === undefined) {
|
|
117
|
+
throw new Error(`manifest.json has no tools[] entry for "${ref.name}"`);
|
|
118
|
+
}
|
|
119
|
+
return { ...ref, description };
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
function formatHuman(tools) {
|
|
123
|
+
const lines = ['SkillForge MCP — tools exposed to the LLM client.', ''];
|
|
124
|
+
for (const tool of tools) {
|
|
125
|
+
lines.push(tool.name);
|
|
126
|
+
lines.push(` ${tool.description}`);
|
|
127
|
+
lines.push(' Parameters:');
|
|
128
|
+
if (tool.params.length === 0) {
|
|
129
|
+
lines.push(' (none)');
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
for (const p of tool.params) {
|
|
133
|
+
const flag = p.required ? 'required' : 'optional';
|
|
134
|
+
lines.push(` ${p.name} (${p.type}, ${flag}) — ${p.note}`);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
lines.push(` Example: ${tool.example}`);
|
|
138
|
+
lines.push('');
|
|
139
|
+
}
|
|
140
|
+
return `${lines.join('\n').trimEnd()}\n`;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* `tools` subcommand entry. Returns an exit code:
|
|
144
|
+
* - 0 on success
|
|
145
|
+
* - 2 on an unknown flag
|
|
146
|
+
* - 1 on an unexpected failure
|
|
147
|
+
*/
|
|
148
|
+
export async function main(rawArgv, deps = {}) {
|
|
149
|
+
const stdout = deps.stdout ?? ((text) => process.stdout.write(text));
|
|
150
|
+
const stderr = deps.stderr ?? ((text) => process.stderr.write(text));
|
|
151
|
+
let asJson = false;
|
|
152
|
+
for (const arg of rawArgv) {
|
|
153
|
+
if (arg === '--json') {
|
|
154
|
+
asJson = true;
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
stderr(`skillforge-mcp tools: unknown flag: ${arg}\n`);
|
|
158
|
+
return 2;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
try {
|
|
162
|
+
const tools = await resolveTools();
|
|
163
|
+
if (asJson) {
|
|
164
|
+
stdout(`${JSON.stringify({ tools }, null, 2)}\n`);
|
|
165
|
+
}
|
|
166
|
+
else {
|
|
167
|
+
stdout(formatHuman(tools));
|
|
168
|
+
}
|
|
169
|
+
return 0;
|
|
170
|
+
}
|
|
171
|
+
catch (err) {
|
|
172
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
173
|
+
stderr(`skillforge-mcp tools: ${msg}\n`);
|
|
174
|
+
return 1;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
//# sourceMappingURL=tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/cli/tools.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;GAeG;AAiBH;;;;GAIG;AACH,MAAM,SAAS,GAAc;IAC3B;QACE,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,oCAAoC,EAAE;YAC/F,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,qDAAqD,EAAE;YAChH;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,2CAA2C;gBACjD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,yBAAyB;aAChC;SACF;QACD,OAAO,EAAE,wBAAwB;KAClC;IACD;QACE,IAAI,EAAE,aAAa;QACnB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,+BAA+B,EAAE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I,CAAC,CAAC;QACzC,OAAO,CAAC,CAAC;IACX,CAAC;AACH,CAAC"}
|
|
@@ -4,16 +4,19 @@ declare const folderEntrySchema: z.ZodObject<{
|
|
|
4
4
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
5
5
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
6
6
|
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
7
8
|
}, "strip", z.ZodTypeAny, {
|
|
8
9
|
path: string;
|
|
9
10
|
priority: number;
|
|
10
11
|
enabled: boolean;
|
|
11
12
|
tags: string[];
|
|
13
|
+
alias?: string | undefined;
|
|
12
14
|
}, {
|
|
13
15
|
path: string;
|
|
14
16
|
priority?: number | undefined;
|
|
15
17
|
enabled?: boolean | undefined;
|
|
16
18
|
tags?: string[] | undefined;
|
|
19
|
+
alias?: string | undefined;
|
|
17
20
|
}>;
|
|
18
21
|
export declare const configSchema: z.ZodObject<{
|
|
19
22
|
version: z.ZodDefault<z.ZodLiteral<"1.0">>;
|
|
@@ -22,16 +25,19 @@ export declare const configSchema: z.ZodObject<{
|
|
|
22
25
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
23
26
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
24
27
|
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
25
29
|
}, "strip", z.ZodTypeAny, {
|
|
26
30
|
path: string;
|
|
27
31
|
priority: number;
|
|
28
32
|
enabled: boolean;
|
|
29
33
|
tags: string[];
|
|
34
|
+
alias?: string | undefined;
|
|
30
35
|
}, {
|
|
31
36
|
path: string;
|
|
32
37
|
priority?: number | undefined;
|
|
33
38
|
enabled?: boolean | undefined;
|
|
34
39
|
tags?: string[] | undefined;
|
|
40
|
+
alias?: string | undefined;
|
|
35
41
|
}>, "many">>;
|
|
36
42
|
blacklist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
37
43
|
security: z.ZodDefault<z.ZodObject<{
|
|
@@ -106,6 +112,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
106
112
|
priority: number;
|
|
107
113
|
enabled: boolean;
|
|
108
114
|
tags: string[];
|
|
115
|
+
alias?: string | undefined;
|
|
109
116
|
}[];
|
|
110
117
|
blacklist: string[];
|
|
111
118
|
security: {
|
|
@@ -140,6 +147,7 @@ export declare const configSchema: z.ZodObject<{
|
|
|
140
147
|
priority?: number | undefined;
|
|
141
148
|
enabled?: boolean | undefined;
|
|
142
149
|
tags?: string[] | undefined;
|
|
150
|
+
alias?: string | undefined;
|
|
143
151
|
}[] | undefined;
|
|
144
152
|
blacklist?: string[] | undefined;
|
|
145
153
|
security?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-schema.d.ts","sourceRoot":"","sources":["../../src/config/config-schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"config-schema.d.ts","sourceRoot":"","sources":["../../src/config/config-schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EAWrB,CAAC;AAkCH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASvB,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAC3D,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,wBAAgB,aAAa,IAAI,eAAe,CAE/C"}
|
|
@@ -5,6 +5,12 @@ const folderEntrySchema = z.object({
|
|
|
5
5
|
priority: z.number().int().default(100),
|
|
6
6
|
enabled: z.boolean().default(true),
|
|
7
7
|
tags: z.array(z.string()).default([]),
|
|
8
|
+
// Optional kebab-case handle to address the folder from the CLI. Optional
|
|
9
|
+
// so configs written before this field still validate.
|
|
10
|
+
alias: z
|
|
11
|
+
.string()
|
|
12
|
+
.regex(/^[a-z0-9]+(-[a-z0-9]+)*$/)
|
|
13
|
+
.optional(),
|
|
8
14
|
});
|
|
9
15
|
const securitySchema = z.object({
|
|
10
16
|
autoAudit: z.boolean().default(true),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-schema.js","sourceRoot":"","sources":["../../src/config/config-schema.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACvB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAClC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"config-schema.js","sourceRoot":"","sources":["../../src/config/config-schema.ts"],"names":[],"mappings":"AAAA,iGAAiG;AACjG,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CA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CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1C,QAAQ,EAAE,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC;IACpC,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;IAC9B,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;IAClC,OAAO,EAAE,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC;IAClC,UAAU,EAAE,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC;CACzC,CAAC,CAAC;AAKH,MAAM,UAAU,aAAa;IAC3B,OAAO,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill-source conflict detection.
|
|
3
|
+
*
|
|
4
|
+
* When a skill folder is registered that ALSO lives inside a host CLI's
|
|
5
|
+
* native plugin/extension store, the same skills load twice — wasted tokens
|
|
6
|
+
* and skill-name collisions. SkillForge detects this and prints a hint so the
|
|
7
|
+
* user can disable one source. We NEVER mutate another tool's config: this is
|
|
8
|
+
* detection + hint only.
|
|
9
|
+
*
|
|
10
|
+
* Detection is pure path logic — no host config file is read or written.
|
|
11
|
+
* The home directory is injectable so tests can supply a fake root.
|
|
12
|
+
*/
|
|
13
|
+
/** A host CLI whose native plugin/extension system can double-load skills. */
|
|
14
|
+
export type ConflictHost = 'claude' | 'gemini';
|
|
15
|
+
export interface SkillSourceConflict {
|
|
16
|
+
/** The host CLI that natively serves skills from this path. */
|
|
17
|
+
host: ConflictHost;
|
|
18
|
+
/** Native unit kind: Claude Code has plugins, Gemini CLI has extensions. */
|
|
19
|
+
kind: 'plugin' | 'extension';
|
|
20
|
+
/** Human-readable plugin/extension name derived from the path. */
|
|
21
|
+
name: string;
|
|
22
|
+
/** The absolute folder path that triggered the conflict. */
|
|
23
|
+
folderPath: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Detect whether `folderPath` is served by a host CLI's native plugin or
|
|
27
|
+
* extension system.
|
|
28
|
+
*
|
|
29
|
+
* - Claude Code — `~/.claude/plugins/cache/<marketplace>/<plugin>/<version>/...`
|
|
30
|
+
* The plugin name is the `<plugin>` segment (the marketplace prefix is
|
|
31
|
+
* included when present for a clearer label).
|
|
32
|
+
* - Gemini CLI — `~/.gemini/extensions/<extension>/...`
|
|
33
|
+
* The extension name is the first segment after `extensions/`.
|
|
34
|
+
*
|
|
35
|
+
* Codex and Cursor have no native skill system — they never conflict.
|
|
36
|
+
*
|
|
37
|
+
* @param folderPath Absolute folder path being registered.
|
|
38
|
+
* @param home Home directory root, injectable for tests.
|
|
39
|
+
* @returns A conflict descriptor, or null when there is no conflict.
|
|
40
|
+
*/
|
|
41
|
+
export declare function detectSkillSourceConflict(folderPath: string, home?: string): SkillSourceConflict | null;
|
|
42
|
+
/**
|
|
43
|
+
* Build the user-facing warning for a detected conflict. SkillForge prints
|
|
44
|
+
* this as an informational hint — it does not disable anything itself.
|
|
45
|
+
*/
|
|
46
|
+
export declare function formatConflictHint(conflict: SkillSourceConflict): string;
|
|
47
|
+
//# sourceMappingURL=skill-source-conflict.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-source-conflict.d.ts","sourceRoot":"","sources":["../../src/detect/skill-source-conflict.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,8EAA8E;AAC9E,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE/C,MAAM,WAAW,mBAAmB;IAClC,+DAA+D;IAC/D,IAAI,EAAE,YAAY,CAAC;IACnB,4EAA4E;IAC5E,IAAI,EAAE,QAAQ,GAAG,WAAW,CAAC;IAC7B,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAC;CACpB;AAuBD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,EAClB,IAAI,GAAE,MAAkB,GACvB,mBAAmB,GAAG,IAAI,CA6B5B;AAeD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,mBAAmB,GAAG,MAAM,CAMxE"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Skill-source conflict detection.
|
|
3
|
+
*
|
|
4
|
+
* When a skill folder is registered that ALSO lives inside a host CLI's
|
|
5
|
+
* native plugin/extension store, the same skills load twice — wasted tokens
|
|
6
|
+
* and skill-name collisions. SkillForge detects this and prints a hint so the
|
|
7
|
+
* user can disable one source. We NEVER mutate another tool's config: this is
|
|
8
|
+
* detection + hint only.
|
|
9
|
+
*
|
|
10
|
+
* Detection is pure path logic — no host config file is read or written.
|
|
11
|
+
* The home directory is injectable so tests can supply a fake root.
|
|
12
|
+
*/
|
|
13
|
+
import { homedir } from 'node:os';
|
|
14
|
+
import { resolve, sep } from 'node:path';
|
|
15
|
+
/** Normalise to an absolute path with consistent separators for prefix tests. */
|
|
16
|
+
function normalize(p) {
|
|
17
|
+
return resolve(p);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Return the path segments of `child` that follow `root`, or null when
|
|
21
|
+
* `child` is not inside `root`. Comparison is done on resolved absolute
|
|
22
|
+
* paths; segment splitting uses the platform separator.
|
|
23
|
+
*/
|
|
24
|
+
function segmentsUnder(child, root) {
|
|
25
|
+
const absChild = normalize(child);
|
|
26
|
+
const absRoot = normalize(root);
|
|
27
|
+
const rootWithSep = absRoot.endsWith(sep) ? absRoot : absRoot + sep;
|
|
28
|
+
if (!absChild.startsWith(rootWithSep))
|
|
29
|
+
return null;
|
|
30
|
+
return absChild
|
|
31
|
+
.slice(rootWithSep.length)
|
|
32
|
+
.split(sep)
|
|
33
|
+
.filter((s) => s.length > 0);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Detect whether `folderPath` is served by a host CLI's native plugin or
|
|
37
|
+
* extension system.
|
|
38
|
+
*
|
|
39
|
+
* - Claude Code — `~/.claude/plugins/cache/<marketplace>/<plugin>/<version>/...`
|
|
40
|
+
* The plugin name is the `<plugin>` segment (the marketplace prefix is
|
|
41
|
+
* included when present for a clearer label).
|
|
42
|
+
* - Gemini CLI — `~/.gemini/extensions/<extension>/...`
|
|
43
|
+
* The extension name is the first segment after `extensions/`.
|
|
44
|
+
*
|
|
45
|
+
* Codex and Cursor have no native skill system — they never conflict.
|
|
46
|
+
*
|
|
47
|
+
* @param folderPath Absolute folder path being registered.
|
|
48
|
+
* @param home Home directory root, injectable for tests.
|
|
49
|
+
* @returns A conflict descriptor, or null when there is no conflict.
|
|
50
|
+
*/
|
|
51
|
+
export function detectSkillSourceConflict(folderPath, home = homedir()) {
|
|
52
|
+
const claudeCacheRoot = resolve(home, '.claude', 'plugins', 'cache');
|
|
53
|
+
const claudeSegments = segmentsUnder(folderPath, claudeCacheRoot);
|
|
54
|
+
if (claudeSegments !== null && claudeSegments.length > 0) {
|
|
55
|
+
// cache/<marketplace>/<plugin>/<version>/... — prefer "marketplace/plugin"
|
|
56
|
+
// as the label; fall back to whatever single segment exists.
|
|
57
|
+
const marketplace = claudeSegments[0];
|
|
58
|
+
const plugin = claudeSegments[1];
|
|
59
|
+
const name = plugin !== undefined ? `${marketplace}/${plugin}` : marketplace;
|
|
60
|
+
return {
|
|
61
|
+
host: 'claude',
|
|
62
|
+
kind: 'plugin',
|
|
63
|
+
name,
|
|
64
|
+
folderPath: normalize(folderPath),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
const geminiExtRoot = resolve(home, '.gemini', 'extensions');
|
|
68
|
+
const geminiSegments = segmentsUnder(folderPath, geminiExtRoot);
|
|
69
|
+
if (geminiSegments !== null && geminiSegments.length > 0) {
|
|
70
|
+
return {
|
|
71
|
+
host: 'gemini',
|
|
72
|
+
kind: 'extension',
|
|
73
|
+
name: geminiSegments[0],
|
|
74
|
+
folderPath: normalize(folderPath),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
/** Human-readable host label for the hint text. */
|
|
80
|
+
function hostLabel(host) {
|
|
81
|
+
return host === 'claude' ? 'Claude Code' : 'Gemini CLI';
|
|
82
|
+
}
|
|
83
|
+
/** The host-specific command the user runs to disable the conflicting source. */
|
|
84
|
+
function disableCommand(conflict) {
|
|
85
|
+
if (conflict.host === 'claude') {
|
|
86
|
+
return `run /plugin and disable the "${conflict.name}" plugin`;
|
|
87
|
+
}
|
|
88
|
+
return `/extensions disable ${conflict.name}`;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Build the user-facing warning for a detected conflict. SkillForge prints
|
|
92
|
+
* this as an informational hint — it does not disable anything itself.
|
|
93
|
+
*/
|
|
94
|
+
export function formatConflictHint(conflict) {
|
|
95
|
+
return (`Warning: ${conflict.folderPath} is also loaded by the ` +
|
|
96
|
+
`${hostLabel(conflict.host)} ${conflict.kind} "${conflict.name}". ` +
|
|
97
|
+
`To avoid loading these skills twice, disable it: ${disableCommand(conflict)}`);
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=skill-source-conflict.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-source-conflict.js","sourceRoot":"","sources":["../../src/detect/skill-source-conflict.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAgBzC,iFAAiF;AACjF,SAAS,SAAS,CAAC,CAAS;IAC1B,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAED;;;;GAIG;AACH,SAAS,aAAa,CAAC,KAAa,EAAE,IAAY;IAChD,MAAM,QAAQ,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC;IAClC,MAA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/User/settings.json
|
|
4
|
+
* Cursor reads MCP servers from `~/.cursor/mcp.json` (global) and
|
|
5
|
+
* `<project>/.cursor/mcp.json` (project) — uniform across all OSes. It
|
|
6
|
+
* does NOT read MCP servers from Cursor's VS Code-style `settings.json`.
|
|
8
7
|
*
|
|
9
|
-
* The MCP server registry lives under `
|
|
10
|
-
* { command, args, env? } shape used by Claude Code.
|
|
8
|
+
* The MCP server registry lives under the top-level `mcpServers.<name>`
|
|
9
|
+
* key with the same { command, args, env? } shape used by Claude Code.
|
|
11
10
|
*/
|
|
12
11
|
import type { Installer, InstallOptions, InstallResult, PreviewResult, UninstallResult } from './types.js';
|
|
13
12
|
export interface CursorInstallerPathOverrides {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor-installer.d.ts","sourceRoot":"","sources":["../../src/installers/cursor-installer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"cursor-installer.d.ts","sourceRoot":"","sources":["../../src/installers/cursor-installer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,KAAK,EACV,SAAS,EACT,cAAc,EACd,aAAa,EACb,aAAa,EACb,eAAe,EAChB,MAAM,YAAY,CAAC;AAKpB,MAAM,WAAW,4BAA4B;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,OAAO,CAAC;CAC7B;AAsDD,qBAAa,eAAgB,YAAW,SAAS;;IAC/C,QAAQ,CAAC,IAAI,YAAY;gBAKb,SAAS,GAAE,4BAAiC;IAMlD,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC;IAK1B,OAAO,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAuBrD,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IAUrC,OAAO,CAAC,IAAI,EAAE,cAAc,GAAG;QAAE,MAAM,EAAE,SAAS,GAAG,WAAW,CAAA;KAAE,GAAG,OAAO,CAAC,aAAa,CAAC;CAsBlG"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Cursor installer — edits Cursor's
|
|
2
|
+
* Cursor installer — edits Cursor's mcp.json `mcpServers.skillforge`.
|
|
3
3
|
*
|
|
4
|
-
* Cursor
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* Linux: ~/.config/Cursor/User/settings.json
|
|
4
|
+
* Cursor reads MCP servers from `~/.cursor/mcp.json` (global) and
|
|
5
|
+
* `<project>/.cursor/mcp.json` (project) — uniform across all OSes. It
|
|
6
|
+
* does NOT read MCP servers from Cursor's VS Code-style `settings.json`.
|
|
8
7
|
*
|
|
9
|
-
* The MCP server registry lives under `
|
|
10
|
-
* { command, args, env? } shape used by Claude Code.
|
|
8
|
+
* The MCP server registry lives under the top-level `mcpServers.<name>`
|
|
9
|
+
* key with the same { command, args, env? } shape used by Claude Code.
|
|
11
10
|
*/
|
|
12
11
|
import { spawnSync } from 'node:child_process';
|
|
13
12
|
import { access } from 'node:fs/promises';
|
|
14
13
|
import { readJsonSafe, writeJsonAtomic } from './atomic-write.js';
|
|
15
|
-
import {
|
|
14
|
+
import { cursorConfigPath, defaultBinaryPath } from './paths.js';
|
|
16
15
|
const SKILL_KEY = 'skillforge';
|
|
17
16
|
const NPX_PKG = '@lyupro/skillforge-mcp';
|
|
18
17
|
function buildEntry(opts, binaryFallback) {
|
|
@@ -40,22 +39,18 @@ async function fileExists(path) {
|
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
41
|
function readSkillforge(cfg) {
|
|
43
|
-
return cfg.
|
|
42
|
+
return cfg.mcpServers?.[SKILL_KEY];
|
|
44
43
|
}
|
|
45
44
|
function mergeInstall(existing, entry) {
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
return {
|
|
49
|
-
...existing,
|
|
50
|
-
mcp: { ...mcp, servers: { ...servers, [SKILL_KEY]: entry } },
|
|
51
|
-
};
|
|
45
|
+
const servers = existing.mcpServers ?? {};
|
|
46
|
+
return { ...existing, mcpServers: { ...servers, [SKILL_KEY]: entry } };
|
|
52
47
|
}
|
|
53
48
|
function mergeUninstall(existing) {
|
|
54
|
-
const
|
|
55
|
-
if (
|
|
49
|
+
const servers = existing.mcpServers;
|
|
50
|
+
if (servers === undefined)
|
|
56
51
|
return existing;
|
|
57
|
-
const { [SKILL_KEY]: _drop, ...rest } =
|
|
58
|
-
return { ...existing,
|
|
52
|
+
const { [SKILL_KEY]: _drop, ...rest } = servers;
|
|
53
|
+
return { ...existing, mcpServers: rest };
|
|
59
54
|
}
|
|
60
55
|
export class CursorInstaller {
|
|
61
56
|
name = 'cursor';
|
|
@@ -63,7 +58,7 @@ export class CursorInstaller {
|
|
|
63
58
|
#binaryFallback;
|
|
64
59
|
#probe;
|
|
65
60
|
constructor(overrides = {}) {
|
|
66
|
-
this.#configPath = overrides.configPath ??
|
|
61
|
+
this.#configPath = overrides.configPath ?? cursorConfigPath();
|
|
67
62
|
this.#binaryFallback = overrides.binaryPath ?? defaultBinaryPath();
|
|
68
63
|
this.#probe = overrides.binaryProbe ?? probeCursorBinary;
|
|
69
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor-installer.js","sourceRoot":"","sources":["../../src/installers/cursor-installer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"cursor-installer.js","sourceRoot":"","sources":["../../src/installers/cursor-installer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AASjE,MAAM,SAAS,GAAG,YAAY,CAAC;AAC/B,M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C,CAAC,CAAC;QAE5E,IAAI,SAAuB,CAAC;QAC5B,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,GAAG,QAAQ,IAAI,EAAE,CAAC;YAC5B,MAAM,KAAK,GAAG,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;YACrD,SAAS,GAAG,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACxC,CAAC;aAAM,CAAC;YACN,SAAS,GAAG,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;QAChE,CAAC;QAED,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,UAAU,EAAE,IAAI,CAAC,WAAW;YAC5B,UAAU,EAAE,QAAQ,KAAK,IAAI;YAC7B,MAAM;YACN,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;YACzC,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,20 +1,42 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Config path helpers for host tools.
|
|
3
3
|
*
|
|
4
4
|
* Per repo convention, all SkillForge config paths use `os.homedir()`
|
|
5
|
-
* exclusively — no platform branching.
|
|
6
|
-
*
|
|
7
|
-
* control, so the platform-specific dispatch here is rubric-exempt.
|
|
5
|
+
* exclusively — no platform branching. Every host (Claude Code, Codex CLI,
|
|
6
|
+
* Cursor) stores its MCP config in a homedir-rooted file uniform across OSes.
|
|
8
7
|
*/
|
|
9
8
|
export interface PathOverrides {
|
|
10
9
|
claudeConfigPath: string;
|
|
11
10
|
codexConfigPath: string;
|
|
12
|
-
|
|
11
|
+
cursorConfigPath: string;
|
|
13
12
|
defaultBinaryPath: string;
|
|
14
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Install scope. `global` edits the host's home-directory config (the
|
|
16
|
+
* historical default); `project` edits a config file rooted at the current
|
|
17
|
+
* working directory so a single repo can opt into SkillForge.
|
|
18
|
+
*/
|
|
19
|
+
export type Scope = 'global' | 'project';
|
|
20
|
+
export type HostName = 'claude' | 'codex' | 'cursor';
|
|
15
21
|
export declare function claudeConfigPath(): string;
|
|
16
22
|
export declare function codexConfigPath(): string;
|
|
17
|
-
export declare function
|
|
23
|
+
export declare function cursorConfigPath(): string;
|
|
18
24
|
export declare function defaultBinaryPath(): string;
|
|
19
25
|
export declare function defaultPaths(): PathOverrides;
|
|
26
|
+
export declare function claudeProjectConfigPath(projectRoot: string): string;
|
|
27
|
+
export declare function codexProjectConfigPath(projectRoot: string): string;
|
|
28
|
+
export declare function cursorProjectConfigPath(projectRoot: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* Validate that `projectRoot` is a usable directory for `--scope project`.
|
|
31
|
+
* Throws a clear error otherwise (caller maps this to a non-zero exit).
|
|
32
|
+
*/
|
|
33
|
+
export declare function assertProjectRoot(projectRoot: string): void;
|
|
34
|
+
/**
|
|
35
|
+
* Resolve the config path for a host under the given scope.
|
|
36
|
+
*
|
|
37
|
+
* - `global` → the host's home-directory config (historical default).
|
|
38
|
+
* - `project` → the host's repo-local config rooted at `projectRoot`
|
|
39
|
+
* (defaults to `process.cwd()`). Validates the root first.
|
|
40
|
+
*/
|
|
41
|
+
export declare function resolveConfigPath(host: HostName, scope: Scope, projectRoot?: string): string;
|
|
20
42
|
//# sourceMappingURL=paths.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/installers/paths.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/installers/paths.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,MAAM,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEzC,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAErD,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAMD,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAKD,wBAAgB,iBAAiB,IAAI,MAAM,CAK1C;AAED,wBAAgB,YAAY,IAAI,aAAa,CAO5C;AAWD,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAEnE;AAID,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAElE;AAKD,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAEnE;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAc3D;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,KAAK,EACZ,WAAW,GAAE,MAAsB,GAClC,MAAM,CAUR"}
|