@skillkit/core

Core engine for SkillKit - skill discovery, cross-agent translation, recommendations, session memory, testing, and workflow orchestration.
Installation
npm install @skillkit/core
Key Features
- Skill Discovery: Find and parse SKILL.md files from any source
- Cross-Agent Translation: Convert skills between 17 agent formats (Claude Code, Cursor, Windsurf, etc.)
- Project Context Detection: Analyze project stack, dependencies, and configurations
- Smart Recommendations: AI-powered skill suggestions based on project profile
- Session Memory: Capture and persist learnings across AI coding sessions
- Skill Testing: Test framework with assertions for skill validation
- Workflow Orchestration: Compose skills into multi-step workflows
- Marketplace Aggregation: Browse and search curated skill repositories
- Team Collaboration: Share skill bundles with Git-based remote sync
- Plugin System: Extend with custom translators, providers, and commands
- Methodologies: 5 development frameworks (Agile, TDD, DevOps, Design Thinking, Feature Flags)
- Multi-Agent Orchestration: Coordinate teams of AI agents with task assignment
- Plan System: Parse, validate, and execute structured development plans
- Hooks & Automation: Auto-trigger skills on file changes, git events
Usage
Skill Discovery
import { findAllSkills, discoverSkills, parseSkill } from '@skillkit/core';
const skills = findAllSkills(['.claude/skills', '.cursor/skills']);
const repoSkills = await discoverSkills('anthropics/skills');
const skill = parseSkill('./my-skill/SKILL.md');
Cross-Agent Translation
import { translateSkill, translateSkillFile, TranslatorRegistry } from '@skillkit/core';
const result = translateSkill(skillContent, 'cursor');
console.log(result.content);
const translated = await translateSkillFile('./skill.md', 'windsurf');
const registry = new TranslatorRegistry();
const formats = registry.getSupportedFormats();
Project Context & Recommendations
import { ProjectDetector, RecommendationEngine, ContextManager } from '@skillkit/core';
const detector = new ProjectDetector();
const profile = await detector.analyze('./my-project');
const engine = new RecommendationEngine();
const recommendations = engine.recommend(profile, availableSkills);
const ctx = new ContextManager('./my-project');
await ctx.init();
const context = ctx.getContext();
Session Memory
import {
createMemoryCompressor,
createMemoryInjector,
LearningStore,
ObservationStore,
} from '@skillkit/core';
const compressor = createMemoryCompressor('./my-project');
const learnings = compressor.compress();
const injector = createMemoryInjector('./my-project');
const memories = injector.search('authentication patterns');
const store = new LearningStore('./my-project');
const learning = store.add({
title: 'React hooks best practices',
content: 'Always cleanup effects...',
tags: ['react', 'hooks'],
});
Skill Testing
import { SkillTestRunner, parseTestCases } from '@skillkit/core';
const runner = new SkillTestRunner('./my-project');
const results = await runner.runAll();
const result = await runner.run('./my-skill', {
tags: ['unit'],
verbose: true,
});
const testCases = parseTestCases(skillContent);
Workflow Orchestration
import { WorkflowOrchestrator, parseWorkflow, WorkflowStore } from '@skillkit/core';
const workflow = parseWorkflow('./workflow.yaml');
const orchestrator = new WorkflowOrchestrator(workflow);
await orchestrator.execute();
const store = new WorkflowStore('./my-project');
const workflows = store.list();
Marketplace
import { createMarketplaceAggregator, MarketplaceSource } from '@skillkit/core';
const marketplace = createMarketplaceAggregator();
const results = await marketplace.search({ query: 'react' });
const filtered = await marketplace.search({
query: 'authentication',
tags: ['security', 'auth'],
limit: 10,
});
Team Collaboration
import { TeamManager, SkillBundle } from '@skillkit/core';
const teamManager = new TeamManager('./my-project');
await teamManager.init('Engineering Team');
const bundle = await teamManager.createBundle('onboarding', {
skills: ['git-workflow', 'code-review'],
description: 'New developer onboarding',
});
await teamManager.shareBundle(bundle);
await teamManager.syncWithRemote('https://github.com/myorg/skills');
Plugin System
import { PluginManager, TranslatorPlugin } from '@skillkit/core';
const pluginManager = new PluginManager('./my-project');
await pluginManager.loadAll();
await pluginManager.install('custom-translator');
const myPlugin: TranslatorPlugin = {
name: 'my-agent',
parse: async (content) => ({ }),
generate: async (skill) => '/* custom format */',
};
Methodologies
import { MethodologyManager } from '@skillkit/core';
const methodologies = await MethodologyManager.list();
const tdd = await MethodologyManager.load('tdd');
Multi-Agent Orchestration
import { TeamOrchestrator, TaskManager } from '@skillkit/core';
const orchestrator = new TeamOrchestrator();
const team = await orchestrator.createTeam({
name: 'feature-dev',
leader: { id: 'architect', name: 'System Architect' },
teammates: [
{ id: 'frontend', name: 'Frontend Dev', capabilities: ['react'] },
{ id: 'backend', name: 'Backend Dev', capabilities: ['api'] },
],
});
const taskManager = new TaskManager();
const task = taskManager.createTask('Build login', 'Create login endpoint', spec);
await taskManager.assignTask(task.id, 'backend');
const stats = taskManager.getStats();
Plan System
import { PlanParser, PlanValidator, PlanExecutor } from '@skillkit/core';
const parser = new PlanParser();
const plan = await parser.parseFile('./plan.md');
const validator = new PlanValidator();
const validation = validator.validate(plan);
const executor = new PlanExecutor();
const result = await executor.execute(plan, { dryRun: false });
Hooks & Automation
import { HookRegistry } from '@skillkit/core';
const hooks = new HookRegistry('./my-project');
await hooks.register('pre-commit', {
event: 'pre-commit',
skill: 'code-review',
enabled: true,
});
await hooks.trigger('pre-commit', { files: ['src/index.ts'] });
Supported Agents
The translator supports all 17 SkillKit-compatible agents:
| Claude Code | SKILL.md |
| Cursor | MDC (.mdc) |
| Codex | SKILL.md |
| Gemini CLI | SKILL.md |
| Windsurf | Markdown |
| GitHub Copilot | Markdown |
| OpenCode, Antigravity, Amp, Goose, Kilo, Kiro, Roo, Trae | SKILL.md |
| Universal | SKILL.md |
API Reference
Skill Types
interface CanonicalSkill {
name: string;
description?: string;
version?: string;
author?: string;
tags?: string[];
globs?: string[];
alwaysApply?: boolean;
content: string;
metadata?: Record<string, unknown>;
}
interface TranslationResult {
content: string;
format: string;
warnings?: string[];
}
Context Types
interface ProjectProfile {
name: string;
type: 'web-app' | 'api' | 'cli' | 'library' | 'unknown';
stack: {
languages: Detection[];
frameworks: Detection[];
libraries: Detection[];
testing: Detection[];
databases: Detection[];
};
}
Documentation
Full documentation: https://github.com/rohitg00/skillkit
License
Apache-2.0