skillkit 1.0.3 → 1.2.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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
 
3
- declare const AgentType: z.ZodEnum<["claude-code", "codex", "cursor", "antigravity", "opencode", "gemini-cli", "universal"]>;
3
+ declare const AgentType: z.ZodEnum<["claude-code", "codex", "cursor", "antigravity", "opencode", "gemini-cli", "amp", "clawdbot", "droid", "github-copilot", "goose", "kilo", "kiro-cli", "roo", "trae", "windsurf", "universal"]>;
4
4
  type AgentType = z.infer<typeof AgentType>;
5
5
  declare const GitProvider: z.ZodEnum<["github", "gitlab", "bitbucket", "local"]>;
6
6
  type GitProvider = z.infer<typeof GitProvider>;
@@ -14,7 +14,7 @@ declare const SkillFrontmatter: z.ZodObject<{
14
14
  version: z.ZodOptional<z.ZodString>;
15
15
  author: z.ZodOptional<z.ZodString>;
16
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", "universal"]>, "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
18
  }, "strip", z.ZodTypeAny, {
19
19
  name: string;
20
20
  description: string;
@@ -25,7 +25,7 @@ declare const SkillFrontmatter: z.ZodObject<{
25
25
  version?: string | undefined;
26
26
  author?: string | undefined;
27
27
  tags?: string[] | undefined;
28
- agents?: ("claude-code" | "codex" | "cursor" | "antigravity" | "opencode" | "gemini-cli" | "universal")[] | 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
29
  }, {
30
30
  name: string;
31
31
  description: string;
@@ -36,7 +36,7 @@ declare const SkillFrontmatter: z.ZodObject<{
36
36
  version?: string | undefined;
37
37
  author?: string | undefined;
38
38
  tags?: string[] | undefined;
39
- agents?: ("claude-code" | "codex" | "cursor" | "antigravity" | "opencode" | "gemini-cli" | "universal")[] | 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
40
  }>;
41
41
  type SkillFrontmatter = z.infer<typeof SkillFrontmatter>;
42
42
  declare const SkillMetadata: z.ZodObject<{
@@ -156,21 +156,21 @@ declare const Skill: z.ZodObject<{
156
156
  type Skill = z.infer<typeof Skill>;
157
157
  declare const SkillkitConfig: z.ZodObject<{
158
158
  version: z.ZodLiteral<1>;
159
- agent: z.ZodDefault<z.ZodEnum<["claude-code", "codex", "cursor", "antigravity", "opencode", "gemini-cli", "universal"]>>;
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
160
  skillsDir: z.ZodOptional<z.ZodString>;
161
161
  enabledSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
162
162
  disabledSkills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
163
163
  autoSync: z.ZodDefault<z.ZodBoolean>;
164
164
  }, "strip", z.ZodTypeAny, {
165
165
  version: 1;
166
- agent: "claude-code" | "codex" | "cursor" | "antigravity" | "opencode" | "gemini-cli" | "universal";
166
+ agent: "claude-code" | "codex" | "cursor" | "antigravity" | "opencode" | "gemini-cli" | "amp" | "clawdbot" | "droid" | "github-copilot" | "goose" | "kilo" | "kiro-cli" | "roo" | "trae" | "windsurf" | "universal";
167
167
  autoSync: boolean;
168
168
  skillsDir?: string | undefined;
169
169
  enabledSkills?: string[] | undefined;
170
170
  disabledSkills?: string[] | undefined;
171
171
  }, {
172
172
  version: 1;
173
- agent?: "claude-code" | "codex" | "cursor" | "antigravity" | "opencode" | "gemini-cli" | "universal" | undefined;
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
174
  skillsDir?: string | undefined;
175
175
  enabledSkills?: string[] | undefined;
176
176
  disabledSkills?: string[] | undefined;
@@ -223,7 +223,8 @@ interface CommandResult {
223
223
  data?: unknown;
224
224
  }
225
225
 
226
- declare function discoverSkills(dir: string): Skill[];
226
+ declare const SKILL_DISCOVERY_PATHS: string[];
227
+ declare function discoverSkills(rootDir: string): Skill[];
227
228
  declare function parseSkill(skillPath: string, location?: SkillLocation): Skill | null;
228
229
  declare function extractFrontmatter(content: string): Record<string, unknown> | null;
229
230
  declare function extractField(content: string, field: string): string | null;
@@ -329,6 +330,126 @@ declare class AntigravityAdapter implements AgentAdapter {
329
330
  isDetected(): Promise<boolean>;
330
331
  }
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
+
332
453
  declare class UniversalAdapter implements AgentAdapter {
333
454
  readonly type: AgentType;
334
455
  readonly name = "Universal (Any Agent)";
@@ -443,4 +564,4 @@ declare function parseSource(source: string): {
443
564
  subpath?: string;
444
565
  } | null;
445
566
 
446
- export { type AgentAdapter, AgentType, AntigravityAdapter, BitbucketProvider, ClaudeCodeAdapter, type CloneOptions, type CloneResult, CodexAdapter, type CommandResult, CursorAdapter, type DiscoveredSkill, GeminiCliAdapter, GitHubProvider, GitLabProvider, GitProvider, type GitProviderAdapter, type InstallOptions, LocalProvider, OpenCodeAdapter, type RegistrySkill, Skill, SkillFrontmatter, SkillLocation, SkillMetadata, SkillkitConfig, type SyncOptions, UniversalAdapter, type UpdateOptions, 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 };
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 };