skillkit 1.2.0 → 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/LICENSE +190 -21
- package/dist/cli.d.ts +3 -0
- package/dist/cli.js +29 -4004
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +3 -567
- package/dist/index.js +5 -2045
- package/dist/index.js.map +1 -1
- package/package.json +15 -27
- package/README.md +0 -407
- package/schemas/skill.schema.json +0 -62
package/dist/index.d.ts
CHANGED
|
@@ -1,567 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type AgentType = z.infer<typeof AgentType>;
|
|
5
|
-
declare const GitProvider: z.ZodEnum<["github", "gitlab", "bitbucket", "local"]>;
|
|
6
|
-
type GitProvider = z.infer<typeof GitProvider>;
|
|
7
|
-
declare const SkillFrontmatter: z.ZodObject<{
|
|
8
|
-
name: z.ZodString;
|
|
9
|
-
description: z.ZodString;
|
|
10
|
-
license: z.ZodOptional<z.ZodString>;
|
|
11
|
-
compatibility: z.ZodOptional<z.ZodString>;
|
|
12
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13
|
-
'allowed-tools': z.ZodOptional<z.ZodString>;
|
|
14
|
-
version: z.ZodOptional<z.ZodString>;
|
|
15
|
-
author: z.ZodOptional<z.ZodString>;
|
|
16
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
17
|
-
agents: z.ZodOptional<z.ZodArray<z.ZodEnum<["claude-code", "codex", "cursor", "antigravity", "opencode", "gemini-cli", "amp", "clawdbot", "droid", "github-copilot", "goose", "kilo", "kiro-cli", "roo", "trae", "windsurf", "universal"]>, "many">>;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
name: string;
|
|
20
|
-
description: string;
|
|
21
|
-
license?: string | undefined;
|
|
22
|
-
compatibility?: string | undefined;
|
|
23
|
-
metadata?: Record<string, string> | undefined;
|
|
24
|
-
'allowed-tools'?: string | undefined;
|
|
25
|
-
version?: string | undefined;
|
|
26
|
-
author?: string | undefined;
|
|
27
|
-
tags?: string[] | undefined;
|
|
28
|
-
agents?: ("claude-code" | "codex" | "cursor" | "antigravity" | "opencode" | "gemini-cli" | "amp" | "clawdbot" | "droid" | "github-copilot" | "goose" | "kilo" | "kiro-cli" | "roo" | "trae" | "windsurf" | "universal")[] | undefined;
|
|
29
|
-
}, {
|
|
30
|
-
name: string;
|
|
31
|
-
description: string;
|
|
32
|
-
license?: string | undefined;
|
|
33
|
-
compatibility?: string | undefined;
|
|
34
|
-
metadata?: Record<string, string> | undefined;
|
|
35
|
-
'allowed-tools'?: string | undefined;
|
|
36
|
-
version?: string | undefined;
|
|
37
|
-
author?: string | undefined;
|
|
38
|
-
tags?: string[] | undefined;
|
|
39
|
-
agents?: ("claude-code" | "codex" | "cursor" | "antigravity" | "opencode" | "gemini-cli" | "amp" | "clawdbot" | "droid" | "github-copilot" | "goose" | "kilo" | "kiro-cli" | "roo" | "trae" | "windsurf" | "universal")[] | undefined;
|
|
40
|
-
}>;
|
|
41
|
-
type SkillFrontmatter = z.infer<typeof SkillFrontmatter>;
|
|
42
|
-
declare const SkillMetadata: z.ZodObject<{
|
|
43
|
-
name: z.ZodString;
|
|
44
|
-
description: z.ZodString;
|
|
45
|
-
source: z.ZodString;
|
|
46
|
-
sourceType: z.ZodEnum<["github", "gitlab", "bitbucket", "local"]>;
|
|
47
|
-
subpath: z.ZodOptional<z.ZodString>;
|
|
48
|
-
installedAt: z.ZodString;
|
|
49
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
50
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
51
|
-
version: z.ZodOptional<z.ZodString>;
|
|
52
|
-
checksum: z.ZodOptional<z.ZodString>;
|
|
53
|
-
}, "strip", z.ZodTypeAny, {
|
|
54
|
-
name: string;
|
|
55
|
-
description: string;
|
|
56
|
-
source: string;
|
|
57
|
-
sourceType: "github" | "gitlab" | "bitbucket" | "local";
|
|
58
|
-
installedAt: string;
|
|
59
|
-
enabled: boolean;
|
|
60
|
-
version?: string | undefined;
|
|
61
|
-
subpath?: string | undefined;
|
|
62
|
-
updatedAt?: string | undefined;
|
|
63
|
-
checksum?: string | undefined;
|
|
64
|
-
}, {
|
|
65
|
-
name: string;
|
|
66
|
-
description: string;
|
|
67
|
-
source: string;
|
|
68
|
-
sourceType: "github" | "gitlab" | "bitbucket" | "local";
|
|
69
|
-
installedAt: string;
|
|
70
|
-
version?: string | undefined;
|
|
71
|
-
subpath?: string | undefined;
|
|
72
|
-
updatedAt?: string | undefined;
|
|
73
|
-
enabled?: boolean | undefined;
|
|
74
|
-
checksum?: string | undefined;
|
|
75
|
-
}>;
|
|
76
|
-
type SkillMetadata = z.infer<typeof SkillMetadata>;
|
|
77
|
-
declare const SkillLocation: z.ZodEnum<["project", "global"]>;
|
|
78
|
-
type SkillLocation = z.infer<typeof SkillLocation>;
|
|
79
|
-
declare const Skill: z.ZodObject<{
|
|
80
|
-
name: z.ZodString;
|
|
81
|
-
description: z.ZodString;
|
|
82
|
-
path: z.ZodString;
|
|
83
|
-
location: z.ZodEnum<["project", "global"]>;
|
|
84
|
-
metadata: z.ZodOptional<z.ZodObject<{
|
|
85
|
-
name: z.ZodString;
|
|
86
|
-
description: z.ZodString;
|
|
87
|
-
source: z.ZodString;
|
|
88
|
-
sourceType: z.ZodEnum<["github", "gitlab", "bitbucket", "local"]>;
|
|
89
|
-
subpath: z.ZodOptional<z.ZodString>;
|
|
90
|
-
installedAt: z.ZodString;
|
|
91
|
-
updatedAt: z.ZodOptional<z.ZodString>;
|
|
92
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
93
|
-
version: z.ZodOptional<z.ZodString>;
|
|
94
|
-
checksum: z.ZodOptional<z.ZodString>;
|
|
95
|
-
}, "strip", z.ZodTypeAny, {
|
|
96
|
-
name: string;
|
|
97
|
-
description: string;
|
|
98
|
-
source: string;
|
|
99
|
-
sourceType: "github" | "gitlab" | "bitbucket" | "local";
|
|
100
|
-
installedAt: string;
|
|
101
|
-
enabled: boolean;
|
|
102
|
-
version?: string | undefined;
|
|
103
|
-
subpath?: string | undefined;
|
|
104
|
-
updatedAt?: string | undefined;
|
|
105
|
-
checksum?: string | undefined;
|
|
106
|
-
}, {
|
|
107
|
-
name: string;
|
|
108
|
-
description: string;
|
|
109
|
-
source: string;
|
|
110
|
-
sourceType: "github" | "gitlab" | "bitbucket" | "local";
|
|
111
|
-
installedAt: string;
|
|
112
|
-
version?: string | undefined;
|
|
113
|
-
subpath?: string | undefined;
|
|
114
|
-
updatedAt?: string | undefined;
|
|
115
|
-
enabled?: boolean | undefined;
|
|
116
|
-
checksum?: string | undefined;
|
|
117
|
-
}>>;
|
|
118
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
119
|
-
}, "strip", z.ZodTypeAny, {
|
|
120
|
-
path: string;
|
|
121
|
-
name: string;
|
|
122
|
-
description: string;
|
|
123
|
-
enabled: boolean;
|
|
124
|
-
location: "project" | "global";
|
|
125
|
-
metadata?: {
|
|
126
|
-
name: string;
|
|
127
|
-
description: string;
|
|
128
|
-
source: string;
|
|
129
|
-
sourceType: "github" | "gitlab" | "bitbucket" | "local";
|
|
130
|
-
installedAt: string;
|
|
131
|
-
enabled: boolean;
|
|
132
|
-
version?: string | undefined;
|
|
133
|
-
subpath?: string | undefined;
|
|
134
|
-
updatedAt?: string | undefined;
|
|
135
|
-
checksum?: string | undefined;
|
|
136
|
-
} | undefined;
|
|
137
|
-
}, {
|
|
138
|
-
path: string;
|
|
139
|
-
name: string;
|
|
140
|
-
description: string;
|
|
141
|
-
location: "project" | "global";
|
|
142
|
-
metadata?: {
|
|
143
|
-
name: string;
|
|
144
|
-
description: string;
|
|
145
|
-
source: string;
|
|
146
|
-
sourceType: "github" | "gitlab" | "bitbucket" | "local";
|
|
147
|
-
installedAt: string;
|
|
148
|
-
version?: string | undefined;
|
|
149
|
-
subpath?: string | undefined;
|
|
150
|
-
updatedAt?: string | undefined;
|
|
151
|
-
enabled?: boolean | undefined;
|
|
152
|
-
checksum?: string | undefined;
|
|
153
|
-
} | undefined;
|
|
154
|
-
enabled?: boolean | undefined;
|
|
155
|
-
}>;
|
|
156
|
-
type Skill = z.infer<typeof Skill>;
|
|
157
|
-
declare const SkillkitConfig: z.ZodObject<{
|
|
158
|
-
version: z.ZodLiteral<1>;
|
|
159
|
-
agent: z.ZodDefault<z.ZodEnum<["claude-code", "codex", "cursor", "antigravity", "opencode", "gemini-cli", "amp", "clawdbot", "droid", "github-copilot", "goose", "kilo", "kiro-cli", "roo", "trae", "windsurf", "universal"]>>;
|
|
160
|
-
skillsDir: z.ZodOptional<z.ZodString>;
|
|
161
|
-
enabledSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
162
|
-
disabledSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
163
|
-
autoSync: z.ZodDefault<z.ZodBoolean>;
|
|
164
|
-
}, "strip", z.ZodTypeAny, {
|
|
165
|
-
version: 1;
|
|
166
|
-
agent: "claude-code" | "codex" | "cursor" | "antigravity" | "opencode" | "gemini-cli" | "amp" | "clawdbot" | "droid" | "github-copilot" | "goose" | "kilo" | "kiro-cli" | "roo" | "trae" | "windsurf" | "universal";
|
|
167
|
-
autoSync: boolean;
|
|
168
|
-
skillsDir?: string | undefined;
|
|
169
|
-
enabledSkills?: string[] | undefined;
|
|
170
|
-
disabledSkills?: string[] | undefined;
|
|
171
|
-
}, {
|
|
172
|
-
version: 1;
|
|
173
|
-
agent?: "claude-code" | "codex" | "cursor" | "antigravity" | "opencode" | "gemini-cli" | "amp" | "clawdbot" | "droid" | "github-copilot" | "goose" | "kilo" | "kiro-cli" | "roo" | "trae" | "windsurf" | "universal" | undefined;
|
|
174
|
-
skillsDir?: string | undefined;
|
|
175
|
-
enabledSkills?: string[] | undefined;
|
|
176
|
-
disabledSkills?: string[] | undefined;
|
|
177
|
-
autoSync?: boolean | undefined;
|
|
178
|
-
}>;
|
|
179
|
-
type SkillkitConfig = z.infer<typeof SkillkitConfig>;
|
|
180
|
-
interface InstallOptions {
|
|
181
|
-
global?: boolean;
|
|
182
|
-
skills?: string[];
|
|
183
|
-
provider?: GitProvider;
|
|
184
|
-
yes?: boolean;
|
|
185
|
-
force?: boolean;
|
|
186
|
-
}
|
|
187
|
-
interface SyncOptions {
|
|
188
|
-
output?: string;
|
|
189
|
-
agent?: AgentType;
|
|
190
|
-
yes?: boolean;
|
|
191
|
-
enabledOnly?: boolean;
|
|
192
|
-
}
|
|
193
|
-
interface UpdateOptions {
|
|
194
|
-
skills?: string[];
|
|
195
|
-
all?: boolean;
|
|
196
|
-
force?: boolean;
|
|
197
|
-
}
|
|
198
|
-
interface RegistrySkill {
|
|
199
|
-
name: string;
|
|
200
|
-
description: string;
|
|
201
|
-
source: string;
|
|
202
|
-
provider: GitProvider;
|
|
203
|
-
downloads?: number;
|
|
204
|
-
stars?: number;
|
|
205
|
-
tags?: string[];
|
|
206
|
-
}
|
|
207
|
-
interface DiscoveredSkill {
|
|
208
|
-
name: string;
|
|
209
|
-
dirName: string;
|
|
210
|
-
path: string;
|
|
211
|
-
}
|
|
212
|
-
interface CloneResult {
|
|
213
|
-
success: boolean;
|
|
214
|
-
path?: string;
|
|
215
|
-
tempRoot?: string;
|
|
216
|
-
error?: string;
|
|
217
|
-
skills?: string[];
|
|
218
|
-
discoveredSkills?: DiscoveredSkill[];
|
|
219
|
-
}
|
|
220
|
-
interface CommandResult {
|
|
221
|
-
success: boolean;
|
|
222
|
-
message: string;
|
|
223
|
-
data?: unknown;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
declare const SKILL_DISCOVERY_PATHS: string[];
|
|
227
|
-
declare function discoverSkills(rootDir: string): Skill[];
|
|
228
|
-
declare function parseSkill(skillPath: string, location?: SkillLocation): Skill | null;
|
|
229
|
-
declare function extractFrontmatter(content: string): Record<string, unknown> | null;
|
|
230
|
-
declare function extractField(content: string, field: string): string | null;
|
|
231
|
-
declare function loadMetadata(skillPath: string): SkillMetadata | null;
|
|
232
|
-
declare function readSkillContent(skillPath: string): string | null;
|
|
233
|
-
declare function findSkill(name: string, searchDirs: string[]): Skill | null;
|
|
234
|
-
declare function findAllSkills(searchDirs: string[]): Skill[];
|
|
235
|
-
declare function validateSkill(skillPath: string): {
|
|
236
|
-
valid: boolean;
|
|
237
|
-
errors: string[];
|
|
238
|
-
warnings?: string[];
|
|
239
|
-
};
|
|
240
|
-
declare function isPathInside(child: string, parent: string): boolean;
|
|
241
|
-
|
|
242
|
-
declare function getProjectConfigPath(): string;
|
|
243
|
-
declare function getGlobalConfigPath(): string;
|
|
244
|
-
declare function loadConfig(): SkillkitConfig;
|
|
245
|
-
declare function saveConfig(config: SkillkitConfig, global?: boolean): void;
|
|
246
|
-
declare function getSearchDirs(agentType?: AgentType): string[];
|
|
247
|
-
declare function getInstallDir(global?: boolean, agentType?: AgentType): string;
|
|
248
|
-
declare function getAgentConfigPath(agentType?: AgentType): string;
|
|
249
|
-
declare function saveSkillMetadata(skillPath: string, metadata: SkillMetadata): void;
|
|
250
|
-
declare function loadSkillMetadata(skillPath: string): SkillMetadata | null;
|
|
251
|
-
declare function setSkillEnabled(skillPath: string, enabled: boolean): boolean;
|
|
252
|
-
declare function initProject(agentType?: AgentType): Promise<void>;
|
|
253
|
-
|
|
254
|
-
interface AgentAdapter {
|
|
255
|
-
readonly type: AgentType;
|
|
256
|
-
readonly name: string;
|
|
257
|
-
readonly skillsDir: string;
|
|
258
|
-
readonly configFile: string;
|
|
259
|
-
generateConfig(skills: Skill[]): string;
|
|
260
|
-
parseConfig(content: string): string[];
|
|
261
|
-
getInvokeCommand(skillName: string): string;
|
|
262
|
-
isDetected(): Promise<boolean>;
|
|
263
|
-
}
|
|
264
|
-
declare function createSkillXml(skill: Skill): string;
|
|
265
|
-
declare function escapeXml(text: string): string;
|
|
266
|
-
|
|
267
|
-
declare class ClaudeCodeAdapter implements AgentAdapter {
|
|
268
|
-
readonly type: AgentType;
|
|
269
|
-
readonly name = "Claude Code";
|
|
270
|
-
readonly skillsDir = ".claude/skills";
|
|
271
|
-
readonly configFile = "AGENTS.md";
|
|
272
|
-
generateConfig(skills: Skill[]): string;
|
|
273
|
-
parseConfig(content: string): string[];
|
|
274
|
-
getInvokeCommand(skillName: string): string;
|
|
275
|
-
isDetected(): Promise<boolean>;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
declare class CursorAdapter implements AgentAdapter {
|
|
279
|
-
readonly type: AgentType;
|
|
280
|
-
readonly name = "Cursor";
|
|
281
|
-
readonly skillsDir = ".cursor/skills";
|
|
282
|
-
readonly configFile = ".cursorrules";
|
|
283
|
-
generateConfig(skills: Skill[]): string;
|
|
284
|
-
parseConfig(content: string): string[];
|
|
285
|
-
getInvokeCommand(skillName: string): string;
|
|
286
|
-
isDetected(): Promise<boolean>;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
declare class CodexAdapter implements AgentAdapter {
|
|
290
|
-
readonly type: AgentType;
|
|
291
|
-
readonly name = "OpenAI Codex CLI";
|
|
292
|
-
readonly skillsDir = ".codex/skills";
|
|
293
|
-
readonly configFile = "AGENTS.md";
|
|
294
|
-
generateConfig(skills: Skill[]): string;
|
|
295
|
-
parseConfig(content: string): string[];
|
|
296
|
-
getInvokeCommand(skillName: string): string;
|
|
297
|
-
isDetected(): Promise<boolean>;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
declare class GeminiCliAdapter implements AgentAdapter {
|
|
301
|
-
readonly type: AgentType;
|
|
302
|
-
readonly name = "Gemini CLI";
|
|
303
|
-
readonly skillsDir = ".gemini/skills";
|
|
304
|
-
readonly configFile = "GEMINI.md";
|
|
305
|
-
generateConfig(skills: Skill[]): string;
|
|
306
|
-
parseConfig(content: string): string[];
|
|
307
|
-
getInvokeCommand(skillName: string): string;
|
|
308
|
-
isDetected(): Promise<boolean>;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
declare class OpenCodeAdapter implements AgentAdapter {
|
|
312
|
-
readonly type: AgentType;
|
|
313
|
-
readonly name = "OpenCode";
|
|
314
|
-
readonly skillsDir = ".opencode/skills";
|
|
315
|
-
readonly configFile = "AGENTS.md";
|
|
316
|
-
generateConfig(skills: Skill[]): string;
|
|
317
|
-
parseConfig(content: string): string[];
|
|
318
|
-
getInvokeCommand(skillName: string): string;
|
|
319
|
-
isDetected(): Promise<boolean>;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
declare class AntigravityAdapter implements AgentAdapter {
|
|
323
|
-
readonly type: AgentType;
|
|
324
|
-
readonly name = "Antigravity";
|
|
325
|
-
readonly skillsDir = ".antigravity/skills";
|
|
326
|
-
readonly configFile = "AGENTS.md";
|
|
327
|
-
generateConfig(skills: Skill[]): string;
|
|
328
|
-
parseConfig(content: string): string[];
|
|
329
|
-
getInvokeCommand(skillName: string): string;
|
|
330
|
-
isDetected(): Promise<boolean>;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
declare class AmpAdapter implements AgentAdapter {
|
|
334
|
-
readonly type: AgentType;
|
|
335
|
-
readonly name = "Amp";
|
|
336
|
-
readonly skillsDir = ".agents/skills";
|
|
337
|
-
readonly configFile = "AGENTS.md";
|
|
338
|
-
readonly globalSkillsDir: string;
|
|
339
|
-
generateConfig(skills: Skill[]): string;
|
|
340
|
-
parseConfig(content: string): string[];
|
|
341
|
-
getInvokeCommand(skillName: string): string;
|
|
342
|
-
isDetected(): Promise<boolean>;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
declare class ClawdbotAdapter implements AgentAdapter {
|
|
346
|
-
readonly type: AgentType;
|
|
347
|
-
readonly name = "Clawdbot";
|
|
348
|
-
readonly skillsDir = "skills";
|
|
349
|
-
readonly configFile = "AGENTS.md";
|
|
350
|
-
readonly globalSkillsDir: string;
|
|
351
|
-
generateConfig(skills: Skill[]): string;
|
|
352
|
-
parseConfig(content: string): string[];
|
|
353
|
-
getInvokeCommand(skillName: string): string;
|
|
354
|
-
isDetected(): Promise<boolean>;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
declare class DroidAdapter implements AgentAdapter {
|
|
358
|
-
readonly type: AgentType;
|
|
359
|
-
readonly name = "Droid (Factory)";
|
|
360
|
-
readonly skillsDir = ".factory/skills";
|
|
361
|
-
readonly configFile = "AGENTS.md";
|
|
362
|
-
readonly globalSkillsDir: string;
|
|
363
|
-
generateConfig(skills: Skill[]): string;
|
|
364
|
-
parseConfig(content: string): string[];
|
|
365
|
-
getInvokeCommand(skillName: string): string;
|
|
366
|
-
isDetected(): Promise<boolean>;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
declare class GitHubCopilotAdapter implements AgentAdapter {
|
|
370
|
-
readonly type: AgentType;
|
|
371
|
-
readonly name = "GitHub Copilot";
|
|
372
|
-
readonly skillsDir = ".github/skills";
|
|
373
|
-
readonly configFile = "AGENTS.md";
|
|
374
|
-
readonly globalSkillsDir: string;
|
|
375
|
-
generateConfig(skills: Skill[]): string;
|
|
376
|
-
parseConfig(content: string): string[];
|
|
377
|
-
getInvokeCommand(skillName: string): string;
|
|
378
|
-
isDetected(): Promise<boolean>;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
declare class GooseAdapter implements AgentAdapter {
|
|
382
|
-
readonly type: AgentType;
|
|
383
|
-
readonly name = "Goose";
|
|
384
|
-
readonly skillsDir = ".goose/skills";
|
|
385
|
-
readonly configFile = "AGENTS.md";
|
|
386
|
-
readonly globalSkillsDir: string;
|
|
387
|
-
generateConfig(skills: Skill[]): string;
|
|
388
|
-
parseConfig(content: string): string[];
|
|
389
|
-
getInvokeCommand(skillName: string): string;
|
|
390
|
-
isDetected(): Promise<boolean>;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
declare class KiloAdapter implements AgentAdapter {
|
|
394
|
-
readonly type: AgentType;
|
|
395
|
-
readonly name = "Kilo Code";
|
|
396
|
-
readonly skillsDir = ".kilocode/skills";
|
|
397
|
-
readonly configFile = "AGENTS.md";
|
|
398
|
-
readonly globalSkillsDir: string;
|
|
399
|
-
generateConfig(skills: Skill[]): string;
|
|
400
|
-
parseConfig(content: string): string[];
|
|
401
|
-
getInvokeCommand(skillName: string): string;
|
|
402
|
-
isDetected(): Promise<boolean>;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
declare class KiroCliAdapter implements AgentAdapter {
|
|
406
|
-
readonly type: AgentType;
|
|
407
|
-
readonly name = "Kiro CLI";
|
|
408
|
-
readonly skillsDir = ".kiro/skills";
|
|
409
|
-
readonly configFile = "AGENTS.md";
|
|
410
|
-
readonly globalSkillsDir: string;
|
|
411
|
-
generateConfig(skills: Skill[]): string;
|
|
412
|
-
parseConfig(content: string): string[];
|
|
413
|
-
getInvokeCommand(skillName: string): string;
|
|
414
|
-
isDetected(): Promise<boolean>;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
declare class RooAdapter implements AgentAdapter {
|
|
418
|
-
readonly type: AgentType;
|
|
419
|
-
readonly name = "Roo Code";
|
|
420
|
-
readonly skillsDir = ".roo/skills";
|
|
421
|
-
readonly configFile = "AGENTS.md";
|
|
422
|
-
readonly globalSkillsDir: string;
|
|
423
|
-
generateConfig(skills: Skill[]): string;
|
|
424
|
-
parseConfig(content: string): string[];
|
|
425
|
-
getInvokeCommand(skillName: string): string;
|
|
426
|
-
isDetected(): Promise<boolean>;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
declare class TraeAdapter implements AgentAdapter {
|
|
430
|
-
readonly type: AgentType;
|
|
431
|
-
readonly name = "Trae";
|
|
432
|
-
readonly skillsDir = ".trae/skills";
|
|
433
|
-
readonly configFile = "AGENTS.md";
|
|
434
|
-
readonly globalSkillsDir: string;
|
|
435
|
-
generateConfig(skills: Skill[]): string;
|
|
436
|
-
parseConfig(content: string): string[];
|
|
437
|
-
getInvokeCommand(skillName: string): string;
|
|
438
|
-
isDetected(): Promise<boolean>;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
declare class WindsurfAdapter implements AgentAdapter {
|
|
442
|
-
readonly type: AgentType;
|
|
443
|
-
readonly name = "Windsurf";
|
|
444
|
-
readonly skillsDir = ".windsurf/skills";
|
|
445
|
-
readonly configFile = "AGENTS.md";
|
|
446
|
-
readonly globalSkillsDir: string;
|
|
447
|
-
generateConfig(skills: Skill[]): string;
|
|
448
|
-
parseConfig(content: string): string[];
|
|
449
|
-
getInvokeCommand(skillName: string): string;
|
|
450
|
-
isDetected(): Promise<boolean>;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
declare class UniversalAdapter implements AgentAdapter {
|
|
454
|
-
readonly type: AgentType;
|
|
455
|
-
readonly name = "Universal (Any Agent)";
|
|
456
|
-
readonly skillsDir = ".agent/skills";
|
|
457
|
-
readonly configFile = "AGENTS.md";
|
|
458
|
-
generateConfig(skills: Skill[]): string;
|
|
459
|
-
parseConfig(content: string): string[];
|
|
460
|
-
getInvokeCommand(skillName: string): string;
|
|
461
|
-
isDetected(): Promise<boolean>;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
declare function getAdapter(type: AgentType): AgentAdapter;
|
|
465
|
-
declare function getAllAdapters(): AgentAdapter[];
|
|
466
|
-
declare function detectAgent(): Promise<AgentType>;
|
|
467
|
-
declare function getSkillsDir(type: AgentType): string;
|
|
468
|
-
declare function getConfigFile(type: AgentType): string;
|
|
469
|
-
|
|
470
|
-
interface GitProviderAdapter {
|
|
471
|
-
readonly type: GitProvider;
|
|
472
|
-
readonly name: string;
|
|
473
|
-
readonly baseUrl: string;
|
|
474
|
-
parseSource(source: string): {
|
|
475
|
-
owner: string;
|
|
476
|
-
repo: string;
|
|
477
|
-
subpath?: string;
|
|
478
|
-
} | null;
|
|
479
|
-
matches(source: string): boolean;
|
|
480
|
-
getCloneUrl(owner: string, repo: string): string;
|
|
481
|
-
getSshUrl(owner: string, repo: string): string;
|
|
482
|
-
clone(source: string, targetDir: string, options?: CloneOptions): Promise<CloneResult>;
|
|
483
|
-
}
|
|
484
|
-
interface CloneOptions {
|
|
485
|
-
depth?: number;
|
|
486
|
-
branch?: string;
|
|
487
|
-
ssh?: boolean;
|
|
488
|
-
}
|
|
489
|
-
declare function parseShorthand(source: string): {
|
|
490
|
-
owner: string;
|
|
491
|
-
repo: string;
|
|
492
|
-
subpath?: string;
|
|
493
|
-
} | null;
|
|
494
|
-
declare function isLocalPath(source: string): boolean;
|
|
495
|
-
declare function isGitUrl(source: string): boolean;
|
|
496
|
-
|
|
497
|
-
declare class GitHubProvider implements GitProviderAdapter {
|
|
498
|
-
readonly type: GitProvider;
|
|
499
|
-
readonly name = "GitHub";
|
|
500
|
-
readonly baseUrl = "https://github.com";
|
|
501
|
-
parseSource(source: string): {
|
|
502
|
-
owner: string;
|
|
503
|
-
repo: string;
|
|
504
|
-
subpath?: string;
|
|
505
|
-
} | null;
|
|
506
|
-
matches(source: string): boolean;
|
|
507
|
-
getCloneUrl(owner: string, repo: string): string;
|
|
508
|
-
getSshUrl(owner: string, repo: string): string;
|
|
509
|
-
clone(source: string, _targetDir: string, options?: CloneOptions): Promise<CloneResult>;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
declare class GitLabProvider implements GitProviderAdapter {
|
|
513
|
-
readonly type: GitProvider;
|
|
514
|
-
readonly name = "GitLab";
|
|
515
|
-
readonly baseUrl = "https://gitlab.com";
|
|
516
|
-
parseSource(source: string): {
|
|
517
|
-
owner: string;
|
|
518
|
-
repo: string;
|
|
519
|
-
subpath?: string;
|
|
520
|
-
} | null;
|
|
521
|
-
matches(source: string): boolean;
|
|
522
|
-
getCloneUrl(owner: string, repo: string): string;
|
|
523
|
-
getSshUrl(owner: string, repo: string): string;
|
|
524
|
-
clone(source: string, _targetDir: string, options?: CloneOptions): Promise<CloneResult>;
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
declare class BitbucketProvider implements GitProviderAdapter {
|
|
528
|
-
readonly type: GitProvider;
|
|
529
|
-
readonly name = "Bitbucket";
|
|
530
|
-
readonly baseUrl = "https://bitbucket.org";
|
|
531
|
-
parseSource(source: string): {
|
|
532
|
-
owner: string;
|
|
533
|
-
repo: string;
|
|
534
|
-
subpath?: string;
|
|
535
|
-
} | null;
|
|
536
|
-
matches(source: string): boolean;
|
|
537
|
-
getCloneUrl(owner: string, repo: string): string;
|
|
538
|
-
getSshUrl(owner: string, repo: string): string;
|
|
539
|
-
clone(source: string, _targetDir: string, options?: CloneOptions): Promise<CloneResult>;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
declare class LocalProvider implements GitProviderAdapter {
|
|
543
|
-
readonly type: GitProvider;
|
|
544
|
-
readonly name = "Local Filesystem";
|
|
545
|
-
readonly baseUrl = "";
|
|
546
|
-
parseSource(source: string): {
|
|
547
|
-
owner: string;
|
|
548
|
-
repo: string;
|
|
549
|
-
subpath?: string;
|
|
550
|
-
} | null;
|
|
551
|
-
matches(source: string): boolean;
|
|
552
|
-
getCloneUrl(_owner: string, _repo: string): string;
|
|
553
|
-
getSshUrl(_owner: string, _repo: string): string;
|
|
554
|
-
clone(source: string, _targetDir: string, _options?: CloneOptions): Promise<CloneResult>;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
declare function getProvider(type: GitProvider): GitProviderAdapter | undefined;
|
|
558
|
-
declare function getAllProviders(): GitProviderAdapter[];
|
|
559
|
-
declare function detectProvider(source: string): GitProviderAdapter | undefined;
|
|
560
|
-
declare function parseSource(source: string): {
|
|
561
|
-
provider: GitProviderAdapter;
|
|
562
|
-
owner: string;
|
|
563
|
-
repo: string;
|
|
564
|
-
subpath?: string;
|
|
565
|
-
} | null;
|
|
566
|
-
|
|
567
|
-
export { type AgentAdapter, AgentType, AmpAdapter, AntigravityAdapter, BitbucketProvider, ClaudeCodeAdapter, ClawdbotAdapter, type CloneOptions, type CloneResult, CodexAdapter, type CommandResult, CursorAdapter, type DiscoveredSkill, DroidAdapter, GeminiCliAdapter, GitHubCopilotAdapter, GitHubProvider, GitLabProvider, GitProvider, type GitProviderAdapter, GooseAdapter, type InstallOptions, KiloAdapter, KiroCliAdapter, LocalProvider, OpenCodeAdapter, type RegistrySkill, RooAdapter, SKILL_DISCOVERY_PATHS, Skill, SkillFrontmatter, SkillLocation, SkillMetadata, SkillkitConfig, type SyncOptions, TraeAdapter, UniversalAdapter, type UpdateOptions, WindsurfAdapter, createSkillXml, detectAgent, detectProvider, discoverSkills, escapeXml, extractField, extractFrontmatter, findAllSkills, findSkill, getAdapter, getAgentConfigPath, getAllAdapters, getAllProviders, getConfigFile, getGlobalConfigPath, getInstallDir, getProjectConfigPath, getProvider, getSearchDirs, getSkillsDir, initProject, isGitUrl, isLocalPath, isPathInside, loadConfig, loadMetadata, loadSkillMetadata, parseShorthand, parseSkill, parseSource, readSkillContent, saveConfig, saveSkillMetadata, setSkillEnabled, validateSkill };
|
|
1
|
+
export * from '@skillkit/core';
|
|
2
|
+
export * from '@skillkit/agents';
|
|
3
|
+
export { startTUI } from '@skillkit/tui';
|