@skillkit/core
Advanced tools
+3
-1
| { | ||
| "name": "@skillkit/core", | ||
| "version": "1.5.0", | ||
| "version": "1.6.0", | ||
| "description": "Core functionality for SkillKit - skill discovery, parsing, and translation", | ||
@@ -42,2 +42,4 @@ "type": "module", | ||
| "dependencies": { | ||
| "@types/minimatch": "^6.0.0", | ||
| "minimatch": "^10.1.1", | ||
| "yaml": "^2.6.1", | ||
@@ -44,0 +46,0 @@ "zod": "^3.24.1" |
+121
-0
@@ -24,2 +24,8 @@ # @skillkit/core | ||
| - **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 | ||
@@ -159,2 +165,117 @@ ## Usage | ||
| ### Team Collaboration | ||
| ```typescript | ||
| import { TeamManager, SkillBundle } from '@skillkit/core'; | ||
| // Initialize team | ||
| const teamManager = new TeamManager('./my-project'); | ||
| await teamManager.init('Engineering Team'); | ||
| // Create skill bundle | ||
| const bundle = await teamManager.createBundle('onboarding', { | ||
| skills: ['git-workflow', 'code-review'], | ||
| description: 'New developer onboarding', | ||
| }); | ||
| // Share bundle | ||
| await teamManager.shareBundle(bundle); | ||
| // Sync with remote registry | ||
| await teamManager.syncWithRemote('https://github.com/myorg/skills'); | ||
| ``` | ||
| ### Plugin System | ||
| ```typescript | ||
| import { PluginManager, TranslatorPlugin } from '@skillkit/core'; | ||
| // Load plugins | ||
| const pluginManager = new PluginManager('./my-project'); | ||
| await pluginManager.loadAll(); | ||
| // Install plugin | ||
| await pluginManager.install('custom-translator'); | ||
| // Create custom plugin | ||
| const myPlugin: TranslatorPlugin = { | ||
| name: 'my-agent', | ||
| parse: async (content) => ({ /* canonical skill */ }), | ||
| generate: async (skill) => '/* custom format */', | ||
| }; | ||
| ``` | ||
| ### Methodologies | ||
| ```typescript | ||
| import { MethodologyManager } from '@skillkit/core'; | ||
| // List available methodologies | ||
| const methodologies = await MethodologyManager.list(); | ||
| // Load methodology | ||
| const tdd = await MethodologyManager.load('tdd'); | ||
| // Returns: { name: 'TDD', skills: ['red-green-refactor', 'test-first'], ... } | ||
| ``` | ||
| ### Multi-Agent Orchestration | ||
| ```typescript | ||
| import { TeamOrchestrator, TaskManager } from '@skillkit/core'; | ||
| // Create agent team | ||
| 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'] }, | ||
| ], | ||
| }); | ||
| // Manage tasks | ||
| const taskManager = new TaskManager(); | ||
| const task = taskManager.createTask('Build login', 'Create login endpoint', spec); | ||
| await taskManager.assignTask(task.id, 'backend'); | ||
| // Get stats | ||
| const stats = taskManager.getStats(); | ||
| ``` | ||
| ### Plan System | ||
| ```typescript | ||
| import { PlanParser, PlanValidator, PlanExecutor } from '@skillkit/core'; | ||
| // Parse plan from markdown | ||
| const parser = new PlanParser(); | ||
| const plan = await parser.parseFile('./plan.md'); | ||
| // Validate plan | ||
| const validator = new PlanValidator(); | ||
| const validation = validator.validate(plan); | ||
| // Execute plan | ||
| const executor = new PlanExecutor(); | ||
| const result = await executor.execute(plan, { dryRun: false }); | ||
| ``` | ||
| ### Hooks & Automation | ||
| ```typescript | ||
| import { HookRegistry } from '@skillkit/core'; | ||
| // Register hooks | ||
| const hooks = new HookRegistry('./my-project'); | ||
| await hooks.register('pre-commit', { | ||
| event: 'pre-commit', | ||
| skill: 'code-review', | ||
| enabled: true, | ||
| }); | ||
| // Trigger hook | ||
| await hooks.trigger('pre-commit', { files: ['src/index.ts'] }); | ||
| ``` | ||
| ## Supported Agents | ||
@@ -161,0 +282,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1678665
47.39%23420
51.68%341
55%4
100%139
46.32%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added