@skillkit/agents 1.3.0 → 1.4.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/README.md +206 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
# @skillkit/agents
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@skillkit/agents)
|
|
4
|
+
[](https://opensource.org/licenses/Apache-2.0)
|
|
5
|
+
|
|
6
|
+
**Agent adapters for SkillKit** - configuration and detection for 17 AI coding agents.
|
|
7
|
+
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @skillkit/agents
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Supported Agents (17)
|
|
15
|
+
|
|
16
|
+
| Agent | Config Format | Project Skills | Global Skills |
|
|
17
|
+
|-------|--------------|----------------|---------------|
|
|
18
|
+
| Claude Code | SKILL.md | `.claude/skills/` | `~/.claude/skills/` |
|
|
19
|
+
| Cursor | MDC (.mdc) | `.cursor/skills/` | `~/.cursor/skills/` |
|
|
20
|
+
| Codex | SKILL.md | `.codex/skills/` | `~/.codex/skills/` |
|
|
21
|
+
| Gemini CLI | SKILL.md | `.gemini/skills/` | `~/.gemini/skills/` |
|
|
22
|
+
| OpenCode | SKILL.md | `.opencode/skills/` | `~/.config/opencode/skills/` |
|
|
23
|
+
| Antigravity | SKILL.md | `.antigravity/skills/` | `~/.gemini/antigravity/skills/` |
|
|
24
|
+
| Amp | SKILL.md | `.agents/skills/` | `~/.config/agents/skills/` |
|
|
25
|
+
| Clawdbot | SKILL.md | `skills/` | `~/.clawdbot/skills/` |
|
|
26
|
+
| Droid (Factory) | SKILL.md | `.factory/skills/` | `~/.factory/skills/` |
|
|
27
|
+
| GitHub Copilot | Markdown | `.github/skills/` | `~/.copilot/skills/` |
|
|
28
|
+
| Goose | SKILL.md | `.goose/skills/` | `~/.config/goose/skills/` |
|
|
29
|
+
| Kilo Code | SKILL.md | `.kilocode/skills/` | `~/.kilocode/skills/` |
|
|
30
|
+
| Kiro CLI | SKILL.md | `.kiro/skills/` | `~/.kiro/skills/` |
|
|
31
|
+
| Roo Code | SKILL.md | `.roo/skills/` | `~/.roo/skills/` |
|
|
32
|
+
| Trae | SKILL.md | `.trae/skills/` | `~/.trae/skills/` |
|
|
33
|
+
| Windsurf | Markdown | `.windsurf/skills/` | `~/.codeium/windsurf/skills/` |
|
|
34
|
+
| Universal | SKILL.md | `skills/` | `~/.agent/skills/` |
|
|
35
|
+
|
|
36
|
+
## Usage
|
|
37
|
+
|
|
38
|
+
### Get Agent Adapter
|
|
39
|
+
|
|
40
|
+
```typescript
|
|
41
|
+
import { getAdapter, AgentType } from '@skillkit/agents';
|
|
42
|
+
|
|
43
|
+
// Get adapter for specific agent
|
|
44
|
+
const adapter = getAdapter('claude-code');
|
|
45
|
+
|
|
46
|
+
console.log(adapter.name); // 'claude-code'
|
|
47
|
+
console.log(adapter.skillsDir); // '.claude/skills/'
|
|
48
|
+
console.log(adapter.globalSkillsDir); // '~/.claude/skills/'
|
|
49
|
+
console.log(adapter.configFile); // 'AGENTS.md'
|
|
50
|
+
console.log(adapter.format); // 'skill-md'
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Detect Installed Agents
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
import { detectAgent, detectAllAgents } from '@skillkit/agents';
|
|
57
|
+
|
|
58
|
+
// Detect primary agent in current directory
|
|
59
|
+
const primary = await detectAgent();
|
|
60
|
+
console.log(primary); // 'claude-code'
|
|
61
|
+
|
|
62
|
+
// Detect all installed agents
|
|
63
|
+
const all = await detectAllAgents();
|
|
64
|
+
console.log(all); // ['claude-code', 'cursor', 'windsurf']
|
|
65
|
+
|
|
66
|
+
// Detect in specific directory
|
|
67
|
+
const agents = await detectAllAgents('./my-project');
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### List All Adapters
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import { listAdapters, getAdapterNames } from '@skillkit/agents';
|
|
74
|
+
|
|
75
|
+
// Get all adapter configurations
|
|
76
|
+
const adapters = listAdapters();
|
|
77
|
+
adapters.forEach(adapter => {
|
|
78
|
+
console.log(`${adapter.name}: ${adapter.skillsDir}`);
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
// Get just the names
|
|
82
|
+
const names = getAdapterNames();
|
|
83
|
+
console.log(names); // ['claude-code', 'cursor', 'codex', ...]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Generate Agent Config
|
|
87
|
+
|
|
88
|
+
```typescript
|
|
89
|
+
import { getAdapter } from '@skillkit/agents';
|
|
90
|
+
import { findAllSkills } from '@skillkit/core';
|
|
91
|
+
|
|
92
|
+
const adapter = getAdapter('cursor');
|
|
93
|
+
const skills = findAllSkills([adapter.skillsDir]);
|
|
94
|
+
|
|
95
|
+
// Generate config file content
|
|
96
|
+
const config = adapter.generateConfig(skills);
|
|
97
|
+
console.log(config);
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Get Skills Directory
|
|
101
|
+
|
|
102
|
+
```typescript
|
|
103
|
+
import { getAdapter } from '@skillkit/agents';
|
|
104
|
+
import { homedir } from 'os';
|
|
105
|
+
|
|
106
|
+
const adapter = getAdapter('claude-code');
|
|
107
|
+
|
|
108
|
+
// Project-local skills directory
|
|
109
|
+
const projectDir = adapter.skillsDir; // '.claude/skills/'
|
|
110
|
+
|
|
111
|
+
// Global skills directory
|
|
112
|
+
const globalDir = adapter.globalSkillsDir.replace('~', homedir());
|
|
113
|
+
// '/Users/you/.claude/skills/'
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
## Adapter Interface
|
|
117
|
+
|
|
118
|
+
```typescript
|
|
119
|
+
interface AgentAdapter {
|
|
120
|
+
// Agent identifier
|
|
121
|
+
name: AgentType;
|
|
122
|
+
|
|
123
|
+
// Display name
|
|
124
|
+
displayName: string;
|
|
125
|
+
|
|
126
|
+
// Skill file format
|
|
127
|
+
format: 'skill-md' | 'mdc' | 'markdown';
|
|
128
|
+
|
|
129
|
+
// Project skills directory (relative)
|
|
130
|
+
skillsDir: string;
|
|
131
|
+
|
|
132
|
+
// Global skills directory (with ~)
|
|
133
|
+
globalSkillsDir: string;
|
|
134
|
+
|
|
135
|
+
// Config file name
|
|
136
|
+
configFile: string;
|
|
137
|
+
|
|
138
|
+
// Generate config from skills
|
|
139
|
+
generateConfig(skills: Skill[]): string;
|
|
140
|
+
|
|
141
|
+
// Parse existing config
|
|
142
|
+
parseConfig(content: string): Skill[];
|
|
143
|
+
}
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## Agent Types
|
|
147
|
+
|
|
148
|
+
```typescript
|
|
149
|
+
type AgentType =
|
|
150
|
+
| 'claude-code'
|
|
151
|
+
| 'cursor'
|
|
152
|
+
| 'codex'
|
|
153
|
+
| 'gemini-cli'
|
|
154
|
+
| 'opencode'
|
|
155
|
+
| 'antigravity'
|
|
156
|
+
| 'amp'
|
|
157
|
+
| 'clawdbot'
|
|
158
|
+
| 'droid'
|
|
159
|
+
| 'github-copilot'
|
|
160
|
+
| 'goose'
|
|
161
|
+
| 'kilo'
|
|
162
|
+
| 'kiro-cli'
|
|
163
|
+
| 'roo'
|
|
164
|
+
| 'trae'
|
|
165
|
+
| 'windsurf'
|
|
166
|
+
| 'universal';
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
## Format Details
|
|
170
|
+
|
|
171
|
+
### SKILL.md Format
|
|
172
|
+
Used by most agents. YAML frontmatter + Markdown content:
|
|
173
|
+
```markdown
|
|
174
|
+
---
|
|
175
|
+
name: my-skill
|
|
176
|
+
description: What this skill does
|
|
177
|
+
---
|
|
178
|
+
# My Skill
|
|
179
|
+
Instructions...
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
### MDC Format (Cursor)
|
|
183
|
+
Cursor-specific format with globs and alwaysApply:
|
|
184
|
+
```
|
|
185
|
+
---
|
|
186
|
+
description: What this skill does
|
|
187
|
+
globs: ["**/*.tsx"]
|
|
188
|
+
alwaysApply: false
|
|
189
|
+
---
|
|
190
|
+
Instructions...
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Markdown Format
|
|
194
|
+
Plain markdown used by Windsurf and Copilot:
|
|
195
|
+
```markdown
|
|
196
|
+
# Skill Name
|
|
197
|
+
Instructions for the agent...
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
## Documentation
|
|
201
|
+
|
|
202
|
+
Full documentation: https://github.com/rohitg00/skillkit
|
|
203
|
+
|
|
204
|
+
## License
|
|
205
|
+
|
|
206
|
+
Apache-2.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skillkit/agents",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "Agent adapters for SkillKit - supports 17+ AI coding agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@skillkit/core": "1.
|
|
18
|
+
"@skillkit/core": "1.4.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/node": "^22.10.5",
|