@skillkit/core 1.5.0 → 1.6.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 +121 -0
- package/dist/index.d.ts +2657 -1
- package/dist/index.js +5433 -28
- package/dist/index.js.map +1 -1
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -21,6 +21,12 @@ npm install @skillkit/core
|
|
|
21
21
|
- **Skill Testing**: Test framework with assertions for skill validation
|
|
22
22
|
- **Workflow Orchestration**: Compose skills into multi-step workflows
|
|
23
23
|
- **Marketplace Aggregation**: Browse and search curated skill repositories
|
|
24
|
+
- **Team Collaboration**: Share skill bundles with Git-based remote sync
|
|
25
|
+
- **Plugin System**: Extend with custom translators, providers, and commands
|
|
26
|
+
- **Methodologies**: 5 development frameworks (Agile, TDD, DevOps, Design Thinking, Feature Flags)
|
|
27
|
+
- **Multi-Agent Orchestration**: Coordinate teams of AI agents with task assignment
|
|
28
|
+
- **Plan System**: Parse, validate, and execute structured development plans
|
|
29
|
+
- **Hooks & Automation**: Auto-trigger skills on file changes, git events
|
|
24
30
|
|
|
25
31
|
## Usage
|
|
26
32
|
|
|
@@ -155,6 +161,121 @@ const filtered = await marketplace.search({
|
|
|
155
161
|
});
|
|
156
162
|
```
|
|
157
163
|
|
|
164
|
+
### Team Collaboration
|
|
165
|
+
|
|
166
|
+
```typescript
|
|
167
|
+
import { TeamManager, SkillBundle } from '@skillkit/core';
|
|
168
|
+
|
|
169
|
+
// Initialize team
|
|
170
|
+
const teamManager = new TeamManager('./my-project');
|
|
171
|
+
await teamManager.init('Engineering Team');
|
|
172
|
+
|
|
173
|
+
// Create skill bundle
|
|
174
|
+
const bundle = await teamManager.createBundle('onboarding', {
|
|
175
|
+
skills: ['git-workflow', 'code-review'],
|
|
176
|
+
description: 'New developer onboarding',
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
// Share bundle
|
|
180
|
+
await teamManager.shareBundle(bundle);
|
|
181
|
+
|
|
182
|
+
// Sync with remote registry
|
|
183
|
+
await teamManager.syncWithRemote('https://github.com/myorg/skills');
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
### Plugin System
|
|
187
|
+
|
|
188
|
+
```typescript
|
|
189
|
+
import { PluginManager, TranslatorPlugin } from '@skillkit/core';
|
|
190
|
+
|
|
191
|
+
// Load plugins
|
|
192
|
+
const pluginManager = new PluginManager('./my-project');
|
|
193
|
+
await pluginManager.loadAll();
|
|
194
|
+
|
|
195
|
+
// Install plugin
|
|
196
|
+
await pluginManager.install('custom-translator');
|
|
197
|
+
|
|
198
|
+
// Create custom plugin
|
|
199
|
+
const myPlugin: TranslatorPlugin = {
|
|
200
|
+
name: 'my-agent',
|
|
201
|
+
parse: async (content) => ({ /* canonical skill */ }),
|
|
202
|
+
generate: async (skill) => '/* custom format */',
|
|
203
|
+
};
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### Methodologies
|
|
207
|
+
|
|
208
|
+
```typescript
|
|
209
|
+
import { MethodologyManager } from '@skillkit/core';
|
|
210
|
+
|
|
211
|
+
// List available methodologies
|
|
212
|
+
const methodologies = await MethodologyManager.list();
|
|
213
|
+
|
|
214
|
+
// Load methodology
|
|
215
|
+
const tdd = await MethodologyManager.load('tdd');
|
|
216
|
+
// Returns: { name: 'TDD', skills: ['red-green-refactor', 'test-first'], ... }
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### Multi-Agent Orchestration
|
|
220
|
+
|
|
221
|
+
```typescript
|
|
222
|
+
import { TeamOrchestrator, TaskManager } from '@skillkit/core';
|
|
223
|
+
|
|
224
|
+
// Create agent team
|
|
225
|
+
const orchestrator = new TeamOrchestrator();
|
|
226
|
+
const team = await orchestrator.createTeam({
|
|
227
|
+
name: 'feature-dev',
|
|
228
|
+
leader: { id: 'architect', name: 'System Architect' },
|
|
229
|
+
teammates: [
|
|
230
|
+
{ id: 'frontend', name: 'Frontend Dev', capabilities: ['react'] },
|
|
231
|
+
{ id: 'backend', name: 'Backend Dev', capabilities: ['api'] },
|
|
232
|
+
],
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
// Manage tasks
|
|
236
|
+
const taskManager = new TaskManager();
|
|
237
|
+
const task = taskManager.createTask('Build login', 'Create login endpoint', spec);
|
|
238
|
+
await taskManager.assignTask(task.id, 'backend');
|
|
239
|
+
|
|
240
|
+
// Get stats
|
|
241
|
+
const stats = taskManager.getStats();
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Plan System
|
|
245
|
+
|
|
246
|
+
```typescript
|
|
247
|
+
import { PlanParser, PlanValidator, PlanExecutor } from '@skillkit/core';
|
|
248
|
+
|
|
249
|
+
// Parse plan from markdown
|
|
250
|
+
const parser = new PlanParser();
|
|
251
|
+
const plan = await parser.parseFile('./plan.md');
|
|
252
|
+
|
|
253
|
+
// Validate plan
|
|
254
|
+
const validator = new PlanValidator();
|
|
255
|
+
const validation = validator.validate(plan);
|
|
256
|
+
|
|
257
|
+
// Execute plan
|
|
258
|
+
const executor = new PlanExecutor();
|
|
259
|
+
const result = await executor.execute(plan, { dryRun: false });
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
### Hooks & Automation
|
|
263
|
+
|
|
264
|
+
```typescript
|
|
265
|
+
import { HookRegistry } from '@skillkit/core';
|
|
266
|
+
|
|
267
|
+
// Register hooks
|
|
268
|
+
const hooks = new HookRegistry('./my-project');
|
|
269
|
+
await hooks.register('pre-commit', {
|
|
270
|
+
event: 'pre-commit',
|
|
271
|
+
skill: 'code-review',
|
|
272
|
+
enabled: true,
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
// Trigger hook
|
|
276
|
+
await hooks.trigger('pre-commit', { files: ['src/index.ts'] });
|
|
277
|
+
```
|
|
278
|
+
|
|
158
279
|
## Supported Agents
|
|
159
280
|
|
|
160
281
|
The translator supports all 17 SkillKit-compatible agents:
|