mirror of
https://github.com/rohitg00/skillkit.git
synced 2026-11-19 02:13:58 +00:00
Compare commits
23
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9f0eabc876 | ||
|
|
ceeae304b5 | ||
|
|
bb97e9b747 | ||
|
|
8b4f207fa1 | ||
|
|
c533d6f3bc | ||
|
|
e7dbaeb2b3 | ||
|
|
05b566c0df | ||
|
|
56c565bc65 | ||
|
|
b4582c465d | ||
|
|
d929fe3af0 | ||
|
|
696db60cb4 | ||
|
|
da14f329fd | ||
|
|
dc3f9ba330 | ||
|
|
4206b8aab1 | ||
|
|
a4540c5fc1 | ||
|
|
8cfae7e105 | ||
|
|
f2183b8e14 | ||
|
|
573bbbeed7 | ||
|
|
7003fd3372 | ||
|
|
c611e70764 | ||
|
|
73f95c0b6e | ||
|
|
25556d15d9 | ||
|
|
dfa8d12c65 |
@@ -0,0 +1,324 @@
|
||||
name: Auto-Publish Skill Submission
|
||||
|
||||
on:
|
||||
issues:
|
||||
types: [labeled]
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
contents: write
|
||||
|
||||
concurrency:
|
||||
group: auto-publish-${{ github.event.issue.number }}
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
auto-publish:
|
||||
if: github.event.label.name == 'skill-submission'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'pnpm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
|
||||
- name: Extract and validate submission
|
||||
id: validate
|
||||
uses: actions/github-script@v7
|
||||
env:
|
||||
ISSUE_BODY: ${{ github.event.issue.body }}
|
||||
with:
|
||||
script: |
|
||||
const { execSync } = require('child_process');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const body = process.env.ISSUE_BODY || '';
|
||||
|
||||
const jsonMatch = body.match(/```json\s*\n([\s\S]*?)\n```/);
|
||||
if (!jsonMatch) {
|
||||
core.setOutput('status', 'error');
|
||||
core.setOutput('message', 'No JSON block found in issue body. Please include your source entry between \\`\\`\\`json and \\`\\`\\` fences.');
|
||||
return;
|
||||
}
|
||||
|
||||
let entry;
|
||||
try {
|
||||
entry = JSON.parse(jsonMatch[1].trim());
|
||||
} catch (e) {
|
||||
core.setOutput('status', 'error');
|
||||
core.setOutput('message', `Invalid JSON in submission: ${e.message}`);
|
||||
return;
|
||||
}
|
||||
|
||||
const source = entry.source || (entry.owner && entry.repo ? `${entry.owner}/${entry.repo}` : null);
|
||||
const name = entry.name;
|
||||
const description = entry.description || '';
|
||||
|
||||
if (!source || !name) {
|
||||
core.setOutput('status', 'error');
|
||||
core.setOutput('message', 'Missing required fields. JSON must include `source` (owner/repo) and `name`.');
|
||||
return;
|
||||
}
|
||||
|
||||
const parts = source.split('/');
|
||||
if (parts.length !== 2 || !parts[0] || !parts[1]) {
|
||||
core.setOutput('status', 'error');
|
||||
core.setOutput('message', `Invalid source format "${source}". Must be "owner/repo".`);
|
||||
return;
|
||||
}
|
||||
|
||||
const [owner, repo] = parts;
|
||||
|
||||
const sourcesData = JSON.parse(fs.readFileSync('marketplace/sources.json', 'utf-8'));
|
||||
const existing = sourcesData.sources.find(s => s.source === source);
|
||||
if (existing) {
|
||||
core.setOutput('status', 'error');
|
||||
core.setOutput('message', `Source "${source}" already exists in sources.json as "${existing.name}".`);
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const repoCheck = await github.rest.repos.get({ owner, repo });
|
||||
if (repoCheck.status !== 200) throw new Error('not found');
|
||||
} catch (e) {
|
||||
core.setOutput('status', 'error');
|
||||
core.setOutput('message', `Repository "${source}" does not exist or is not accessible on GitHub.`);
|
||||
return;
|
||||
}
|
||||
|
||||
const cloneDir = `/tmp/skill-check-${owner}-${repo}`;
|
||||
try {
|
||||
execSync(`git clone --depth 1 https://github.com/${owner}/${repo}.git ${cloneDir}`, {
|
||||
timeout: 60000,
|
||||
stdio: 'pipe',
|
||||
});
|
||||
} catch (e) {
|
||||
core.setOutput('status', 'error');
|
||||
core.setOutput('message', `Failed to clone repository "${source}".`);
|
||||
return;
|
||||
}
|
||||
|
||||
let scanVerdict = 'pass';
|
||||
let scanSummary = '';
|
||||
let qualityScore = 0;
|
||||
let qualitySummary = '';
|
||||
|
||||
try {
|
||||
const scanScript = `
|
||||
const { SkillScanner } = require('./packages/core/dist/scanner/scanner.js');
|
||||
const scanner = new SkillScanner();
|
||||
scanner.scan('${cloneDir}').then(result => {
|
||||
console.log(JSON.stringify({
|
||||
verdict: result.verdict,
|
||||
stats: result.stats,
|
||||
findings: result.findings.length,
|
||||
}));
|
||||
});
|
||||
`;
|
||||
|
||||
const scanOutput = execSync(`node -e "${scanScript.replace(/\n/g, ' ')}"`, {
|
||||
cwd: process.cwd(),
|
||||
timeout: 30000,
|
||||
stdio: 'pipe',
|
||||
}).toString().trim();
|
||||
|
||||
const scanResult = JSON.parse(scanOutput);
|
||||
scanVerdict = scanResult.verdict;
|
||||
scanSummary = `Verdict: ${scanResult.verdict}, Findings: ${scanResult.findings}, Critical: ${scanResult.stats.critical}, High: ${scanResult.stats.high}`;
|
||||
} catch (e) {
|
||||
scanSummary = 'Scanner completed with warnings';
|
||||
}
|
||||
|
||||
const skillMdCandidates = ['SKILL.md', 'skill.md', 'README.md'];
|
||||
let skillContent = null;
|
||||
|
||||
for (const candidate of skillMdCandidates) {
|
||||
try {
|
||||
const found = execSync(`find ${cloneDir} -name "${candidate}" -maxdepth 3 -type f`, {
|
||||
stdio: 'pipe',
|
||||
}).toString().trim().split('\n').filter(Boolean);
|
||||
|
||||
if (found.length > 0) {
|
||||
skillContent = fs.readFileSync(found[0], 'utf-8');
|
||||
break;
|
||||
}
|
||||
} catch {}
|
||||
}
|
||||
|
||||
if (skillContent) {
|
||||
try {
|
||||
const qualityScript = `
|
||||
const { evaluateSkillContent } = require('./packages/core/dist/quality/index.js');
|
||||
const fs = require('fs');
|
||||
const content = fs.readFileSync('${cloneDir}/.skill-content.tmp', 'utf-8');
|
||||
const result = evaluateSkillContent(content);
|
||||
console.log(JSON.stringify({ overall: result.overall, warnings: result.warnings }));
|
||||
`;
|
||||
|
||||
fs.writeFileSync(`${cloneDir}/.skill-content.tmp`, skillContent);
|
||||
|
||||
const qualityOutput = execSync(`node -e "${qualityScript.replace(/\n/g, ' ')}"`, {
|
||||
cwd: process.cwd(),
|
||||
timeout: 30000,
|
||||
stdio: 'pipe',
|
||||
}).toString().trim();
|
||||
|
||||
const qualityResult = JSON.parse(qualityOutput);
|
||||
qualityScore = qualityResult.overall;
|
||||
qualitySummary = `Score: ${qualityResult.overall}/100, Warnings: ${qualityResult.warnings.length}`;
|
||||
} catch (e) {
|
||||
qualityScore = 50;
|
||||
qualitySummary = 'Quality evaluation encountered an error; defaulting to 50';
|
||||
}
|
||||
} else {
|
||||
qualityScore = 50;
|
||||
qualitySummary = 'No SKILL.md or README.md found; defaulting to score 50';
|
||||
}
|
||||
|
||||
const scanPassed = scanVerdict !== 'fail';
|
||||
const qualityPassed = qualityScore >= 75;
|
||||
|
||||
core.setOutput('source', source);
|
||||
core.setOutput('name', name);
|
||||
core.setOutput('description', description);
|
||||
core.setOutput('official', entry.official === true ? 'true' : 'false');
|
||||
core.setOutput('scan_verdict', scanVerdict);
|
||||
core.setOutput('scan_summary', scanSummary);
|
||||
core.setOutput('quality_score', String(qualityScore));
|
||||
core.setOutput('quality_summary', qualitySummary);
|
||||
|
||||
if (scanPassed && qualityPassed) {
|
||||
core.setOutput('status', 'pass');
|
||||
core.setOutput('message', `Validation passed. Security: ${scanSummary}. Quality: ${qualitySummary}.`);
|
||||
} else {
|
||||
const reasons = [];
|
||||
if (!scanPassed) reasons.push(`Security scan failed: ${scanSummary}`);
|
||||
if (!qualityPassed) reasons.push(`Quality score ${qualityScore}/100 is below threshold of 75`);
|
||||
core.setOutput('status', 'reject');
|
||||
core.setOutput('message', reasons.join('. '));
|
||||
}
|
||||
|
||||
- name: Add source and commit
|
||||
if: steps.validate.outputs.status == 'pass'
|
||||
env:
|
||||
SKILL_SOURCE: ${{ steps.validate.outputs.source }}
|
||||
SKILL_NAME: ${{ steps.validate.outputs.name }}
|
||||
SKILL_DESCRIPTION: ${{ steps.validate.outputs.description }}
|
||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||
run: |
|
||||
node -e "
|
||||
const fs = require('fs');
|
||||
const data = JSON.parse(fs.readFileSync('marketplace/sources.json', 'utf-8'));
|
||||
|
||||
const newEntry = { source: process.env.SKILL_SOURCE, name: process.env.SKILL_NAME };
|
||||
|
||||
if (process.env.SKILL_DESCRIPTION) {
|
||||
newEntry.description = process.env.SKILL_DESCRIPTION;
|
||||
}
|
||||
|
||||
const skillsSh = data.sources.pop();
|
||||
data.sources.push(newEntry);
|
||||
if (skillsSh && skillsSh.registry === 'skills-sh') {
|
||||
data.sources.push(skillsSh);
|
||||
}
|
||||
|
||||
data.updatedAt = new Date().toISOString().split('T')[0];
|
||||
fs.writeFileSync('marketplace/sources.json', JSON.stringify(data, null, 2) + '\n');
|
||||
"
|
||||
|
||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git config --local user.name "github-actions[bot]"
|
||||
git add marketplace/sources.json
|
||||
git commit -m "feat(marketplace): add source from #${ISSUE_NUMBER}"
|
||||
git push
|
||||
|
||||
- name: Close issue on success
|
||||
if: steps.validate.outputs.status == 'pass'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SKILL_SOURCE: ${{ steps.validate.outputs.source }}
|
||||
SKILL_NAME: ${{ steps.validate.outputs.name }}
|
||||
SCAN_SUMMARY: ${{ steps.validate.outputs.scan_summary }}
|
||||
QUALITY_SUMMARY: ${{ steps.validate.outputs.quality_summary }}
|
||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||
run: |
|
||||
cat > /tmp/comment.md <<ENDOFCOMMENT
|
||||
**Skill source auto-published!**
|
||||
|
||||
**Source:** \`${SKILL_SOURCE}\`
|
||||
**Name:** ${SKILL_NAME}
|
||||
**Security:** ${SCAN_SUMMARY}
|
||||
**Quality:** ${QUALITY_SUMMARY}
|
||||
|
||||
The source has been added to \`marketplace/sources.json\` and will be included in the next release.
|
||||
ENDOFCOMMENT
|
||||
gh issue comment "${ISSUE_NUMBER}" --body-file /tmp/comment.md
|
||||
gh issue close "${ISSUE_NUMBER}"
|
||||
|
||||
- name: Comment rejection reason
|
||||
if: steps.validate.outputs.status == 'reject'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
REJECT_MESSAGE: ${{ steps.validate.outputs.message }}
|
||||
SCAN_VERDICT: ${{ steps.validate.outputs.scan_verdict }}
|
||||
SCAN_SUMMARY: ${{ steps.validate.outputs.scan_summary }}
|
||||
QUALITY_SCORE: ${{ steps.validate.outputs.quality_score }}
|
||||
QUALITY_SUMMARY: ${{ steps.validate.outputs.quality_summary }}
|
||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||
run: |
|
||||
cat > /tmp/comment.md <<ENDOFCOMMENT
|
||||
**Skill submission did not pass automated checks.**
|
||||
|
||||
${REJECT_MESSAGE}
|
||||
|
||||
**Details:**
|
||||
- Security scan: ${SCAN_VERDICT} (${SCAN_SUMMARY})
|
||||
- Quality score: ${QUALITY_SCORE}/100 (${QUALITY_SUMMARY})
|
||||
|
||||
Please address these issues and update your submission. A maintainer will review manually.
|
||||
ENDOFCOMMENT
|
||||
gh issue comment "${ISSUE_NUMBER}" --body-file /tmp/comment.md
|
||||
gh issue edit "${ISSUE_NUMBER}" --add-label "needs-review"
|
||||
|
||||
- name: Comment parse error
|
||||
if: steps.validate.outputs.status == 'error'
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
ERROR_MESSAGE: ${{ steps.validate.outputs.message }}
|
||||
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
||||
run: |
|
||||
cat > /tmp/comment.md <<'ENDOFCOMMENT'
|
||||
**Could not process skill submission.**
|
||||
|
||||
ENDOFCOMMENT
|
||||
echo "${ERROR_MESSAGE}" >> /tmp/comment.md
|
||||
cat >> /tmp/comment.md <<'ENDOFCOMMENT'
|
||||
|
||||
**Expected format in issue body:**
|
||||
```json
|
||||
{
|
||||
"source": "owner/repo",
|
||||
"name": "Display Name",
|
||||
"description": "Optional description"
|
||||
}
|
||||
```
|
||||
|
||||
Please update the issue body and re-apply the `skill-submission` label.
|
||||
ENDOFCOMMENT
|
||||
gh issue comment "${ISSUE_NUMBER}" --body-file /tmp/comment.md
|
||||
gh issue edit "${ISSUE_NUMBER}" --add-label "needs-review"
|
||||
@@ -15,13 +15,14 @@
|
||||
[](https://github.com/rohitg00/skillkit/stargazers)
|
||||
[](https://opensource.org/licenses/Apache-2.0)
|
||||
|
||||
**SkillKit** is the open source package manager for AI agent skills. Write a skill once, deploy it to **44 agents** — Claude, Cursor, Copilot, Windsurf, Devin, Codex, and 38 more. No rewrites. 400K+ skills across registries.
|
||||
**SkillKit** is the open source package manager for AI agent skills. Write a skill once, deploy it to **45 agents** — Claude, Cursor, Copilot, Windsurf, Devin, Codex, and 39 more. No rewrites. 400K+ skills across registries.
|
||||
|
||||
[Website](https://skillkit.sh) · [Docs](https://skillkit.sh/docs) · [API Explorer](https://skillkit.sh/api) · [Chrome Extension](https://github.com/rohitg00/skillkit/tree/main/packages/extension#readme) · [npm](https://www.npmjs.com/package/skillkit)
|
||||
|
||||
</div>
|
||||
|
||||
---
|
||||
https://github.com/user-attachments/assets/b1843a07-2c54-422d-8903-f30a790cfb37
|
||||
|
||||
Skills make AI coding agents smarter. But every agent uses a different format:
|
||||
|
||||
@@ -34,7 +35,7 @@ Skills make AI coding agents smarter. But every agent uses a different format:
|
||||
|
||||
You end up rewriting the same skill for each agent, or locking into one platform.
|
||||
|
||||
**SkillKit fixes this.** Install from 400K+ skills across registries, auto-translate between formats, persist learnings with Memory. Works with Claude, Cursor, Windsurf, Copilot, and 40 more.
|
||||
**SkillKit fixes this.** Install from 400K+ skills across registries, auto-translate between formats, persist learnings with Memory. Works with Claude, Cursor, Windsurf, Copilot, and 41 more.
|
||||
|
||||
```bash
|
||||
npx skillkit@latest
|
||||
@@ -44,12 +45,12 @@ npx skillkit@latest
|
||||
|
||||
<div align="center">
|
||||
|
||||
[](https://raw.githubusercontent.com/rohitg00/skillkit/main/docs/video/skillkit.mp4)
|
||||
|
||||
*Click the image above to watch the full demo*
|
||||

|
||||
|
||||
</div>
|
||||
|
||||
> **New in v1.20.0:** Live download progress, sparse checkout for monorepos (~1.4s for large repos), and `skillkit remove --source` to bulk-remove by repo.
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
@@ -203,7 +204,7 @@ skillkit ui
|
||||
|
||||

|
||||
|
||||
## Supported Agents (44)
|
||||
## Supported Agents (45)
|
||||
|
||||
| Agent | Format | Directory |
|
||||
|-------|--------|-----------|
|
||||
@@ -219,7 +220,7 @@ skillkit ui
|
||||
| **Sourcegraph Cody** | SKILL.md | `.cody/skills/` |
|
||||
| **Amazon Q** | SKILL.md | `.amazonq/skills/` |
|
||||
|
||||
Plus 33 more: Amp, Antigravity, Augment Code, Bolt, Clawdbot, Cline, CodeBuddy, CodeGPT, CommandCode, Continue, Crush, Droid, Factory, Goose, Kilo Code, Kiro CLI, Lovable, MCPJam, Mux, Neovate, OpenHands, Pi, PlayCode, Qoder, Qwen, Replit Agent, Roo Code, Tabby, Tabnine, Trae, Vercel, Zencoder, Universal
|
||||
Plus 34 more: Amp, Antigravity, Augment Code, Bolt, Clawdbot, Cline, CodeBuddy, CodeGPT, CommandCode, Continue, Crush, Droid, Factory, Goose, Kilo Code, Kiro CLI, Lovable, MCPJam, Mux, Neovate, OpenClaw, OpenHands, Pi, PlayCode, Qoder, Qwen, Replit Agent, Roo Code, Tabby, Tabnine, Trae, Vercel, Zencoder, Universal
|
||||
|
||||
[Full agent details](https://skillkit.sh/docs/agents)
|
||||
|
||||
@@ -228,13 +229,18 @@ Plus 33 more: Amp, Antigravity, Augment Code, Bolt, Clawdbot, Cline, CodeBuddy,
|
||||
### Core
|
||||
|
||||
```bash
|
||||
skillkit install <source> # Install skills
|
||||
skillkit install <source> # Install skills (with live progress)
|
||||
skillkit remove <skills> # Remove skills
|
||||
skillkit remove --source org/repo # Remove all skills from a source
|
||||
skillkit remove --all # Remove all installed skills
|
||||
skillkit update # Update skills (with change detection)
|
||||
skillkit check # Check for updates, quality, and activity
|
||||
skillkit translate <skill> --to # Translate between agents
|
||||
skillkit sync # Deploy to agent config
|
||||
skillkit recommend # Smart recommendations
|
||||
skillkit generate # AI skill generation wizard
|
||||
skillkit serve # Start REST API server
|
||||
skillkit publish submit # Publish to marketplace via CLI
|
||||
```
|
||||
|
||||
### Discovery & Security
|
||||
@@ -246,6 +252,14 @@ skillkit find <query> # Quick search
|
||||
skillkit scan <path> # Security scan for skills
|
||||
```
|
||||
|
||||
### Custom Sources
|
||||
|
||||
```bash
|
||||
skillkit tap add owner/repo # Add custom skill source
|
||||
skillkit tap list # List custom sources
|
||||
skillkit tap remove owner/repo # Remove custom source
|
||||
```
|
||||
|
||||
### Issue Planner
|
||||
|
||||
```bash
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
# SOUL
|
||||
|
||||
## Core Truths
|
||||
|
||||
- Ship working software. Everything else is negotiable.
|
||||
- Simple beats clever. If a junior dev can't read it in 30 seconds, it's too complex.
|
||||
- Opinions are load-bearing. "It depends" is a cop-out 90% of the time. Pick a side, explain why, move on.
|
||||
- Exhaustion before escalation. Try everything available before asking for help or giving up.
|
||||
- Broken things get fixed now, not "in a follow-up PR."
|
||||
- If the tests pass and the build is green, stop touching it.
|
||||
|
||||
## Boundaries
|
||||
|
||||
- Never leak secrets, credentials, or private data. Period.
|
||||
- Ask before doing anything destructive or irreversible. One confirmation. Not three.
|
||||
- Be honest about uncertainty. "I don't know" is a valid answer. Bullshitting is not.
|
||||
- The user's codebase is their house. Don't rearrange the furniture without permission.
|
||||
|
||||
## Vibe
|
||||
|
||||
- Never open with "Great question," "I'd be happy to help," or "Absolutely." Just answer.
|
||||
- Brevity is mandatory. If the answer fits in one sentence, one sentence is what you get.
|
||||
- Humor is welcome when it's natural. Not forced puns. The kind of wit that comes from actually understanding the problem.
|
||||
- Call things out. If you're about to do something dumb, I'll say so. Charm over cruelty, but no sugarcoating.
|
||||
- Swearing is fine when it lands. A well-placed "that's fucking brilliant" hits different than sterile corporate praise. Don't force it. Don't overdo it. But if a situation calls for a "holy shit" — say holy shit.
|
||||
- No hedging. No weasel words. No "it might be worth considering perhaps maybe." Say the thing.
|
||||
- Match energy. Quick question gets a quick answer. Deep problem gets deep analysis. Read the room.
|
||||
- Code speaks louder than explanations. Show, don't tell. Then shut up.
|
||||
- Be the assistant you'd actually want to talk to at 2am. Not a corporate drone. Not a sycophant. Just... good.
|
||||
|
||||
## Continuity
|
||||
|
||||
- This file is a living document. If something stops being true, change it.
|
||||
- Session memory is ephemeral. This file is how identity persists.
|
||||
- If this file gets modified during a session, say so explicitly.
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "skillkit",
|
||||
"version": "1.19.2",
|
||||
"version": "1.21.0",
|
||||
"description": "Supercharge AI coding agents with portable skills. Install, translate, and share skills across Claude Code, Cursor, Codex, Copilot & 13 more",
|
||||
"type": "module",
|
||||
"bin": {
|
||||
|
||||
@@ -124,6 +124,9 @@ import {
|
||||
TimelineCommand,
|
||||
SessionHandoffCommand,
|
||||
LineageCommand,
|
||||
TapAddCommand,
|
||||
TapRemoveCommand,
|
||||
TapListCommand,
|
||||
} from '@skillkit/cli';
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
@@ -277,4 +280,8 @@ cli.register(TimelineCommand);
|
||||
cli.register(SessionHandoffCommand);
|
||||
cli.register(LineageCommand);
|
||||
|
||||
cli.register(TapAddCommand);
|
||||
cli.register(TapRemoveCommand);
|
||||
cli.register(TapListCommand);
|
||||
|
||||
cli.runExit(process.argv.slice(2));
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
---
|
||||
title: Supported Agents
|
||||
description: 44 AI coding agents supported by SkillKit
|
||||
description: 45 AI coding agents supported by SkillKit
|
||||
---
|
||||
|
||||
# Supported Agents
|
||||
|
||||
SkillKit uses an adapter pattern to support 44 AI coding platforms. Each adapter implements `getConfigPath()` and `generateConfig()` methods.
|
||||
SkillKit uses an adapter pattern to support 45 AI coding platforms. Each adapter implements `getConfigPath()` and `generateConfig()` methods.
|
||||
|
||||
## Agent Directory Mapping
|
||||
|
||||
|
||||
@@ -70,11 +70,24 @@ skillkit install anthropics/skills --agent claude --agent cursor
|
||||
skillkit remove <skill-names> [options]
|
||||
```
|
||||
|
||||
| Option | Purpose |
|
||||
|--------|---------|
|
||||
| `--agent` | Target specific agents (default: all) |
|
||||
| `--yes` | Skip confirmation |
|
||||
| `--keep-metadata` | Remove skill but preserve metadata |
|
||||
| Option | Short | Purpose |
|
||||
|--------|-------|---------|
|
||||
| `--agent` | — | Target specific agents (default: all) |
|
||||
| `--yes` | — | Skip confirmation |
|
||||
| `--keep-metadata` | — | Remove skill but preserve metadata |
|
||||
| `--source` | `-s` | Remove all skills installed from a specific source |
|
||||
| `--all` | `-a` | Remove all installed skills |
|
||||
| `--force` | `-f` | Skip confirmation prompt |
|
||||
|
||||
### Bulk Removal
|
||||
|
||||
```bash
|
||||
skillkit remove --source iii-hq/iii
|
||||
skillkit remove --all
|
||||
skillkit remove --all --force
|
||||
```
|
||||
|
||||
When using `--source`, SkillKit matches against the source field in each skill's metadata and removes every skill that was installed from that repository. When using `--all`, every discovered skill across all agent directories is removed. Both flags update AGENTS.md automatically if managed sections are present.
|
||||
|
||||
## Update Command
|
||||
|
||||
@@ -82,11 +95,19 @@ skillkit remove <skill-names> [options]
|
||||
skillkit update [skill-names] [options]
|
||||
```
|
||||
|
||||
| Option | Purpose |
|
||||
|--------|---------|
|
||||
| `--dry-run` | Check for updates without installing |
|
||||
| `--yes` | Skip confirmation prompts |
|
||||
| `--agent` | Update in specific agents only |
|
||||
| Option | Short | Purpose |
|
||||
|--------|-------|---------|
|
||||
| `--dry-run` | — | Check for updates without installing |
|
||||
| `--yes` | — | Skip confirmation prompts |
|
||||
| `--agent` | — | Update in specific agents only |
|
||||
| `--force` | `-f` | Force update, bypass checksum and GitHub API checks |
|
||||
|
||||
The update command uses a two-stage change detection pipeline:
|
||||
|
||||
1. **GitHub API check** -- For remote sources, SkillKit queries the GitHub API to compare the repository's `pushed_at` timestamp against the installed metadata. If the repository has not been pushed since the last install or update, the skill is skipped without cloning.
|
||||
2. **Checksum comparison** -- After cloning, a checksum of the source SKILL.md is compared against the stored checksum. If the content is identical, the update is skipped.
|
||||
|
||||
Use `--force` to bypass both checks and always overwrite the installed skill.
|
||||
|
||||
## Enable/Disable Commands
|
||||
|
||||
@@ -97,6 +118,26 @@ skillkit disable <skill-names> [options]
|
||||
|
||||
Disabled skills are ignored by the `sync` command. No file changes occur.
|
||||
|
||||
## Check Command
|
||||
|
||||
```bash
|
||||
skillkit check [skill-names] [options]
|
||||
```
|
||||
|
||||
Checks installed skills for available updates, quality scores, and GitHub activity.
|
||||
|
||||
| Option | Short | Purpose |
|
||||
|--------|-------|---------|
|
||||
| `--verbose` | `-v` | Show detailed output including stars and push dates |
|
||||
| `--quiet` | `-q` | Minimal output |
|
||||
|
||||
For remote GitHub sources, the check command queries the GitHub API to compare each repository's `pushed_at` timestamp against the installed date. Each skill displays its quality score badge (A-F). In verbose mode, the output also includes the repository's star count and how recently it was pushed.
|
||||
|
||||
```bash
|
||||
skillkit check
|
||||
skillkit check pdf xlsx --verbose
|
||||
```
|
||||
|
||||
## List Command
|
||||
|
||||
```bash
|
||||
@@ -457,6 +498,48 @@ skillkit publish --dry-run # Preview without writing
|
||||
skillkit publish submit # Submit to SkillKit marketplace
|
||||
```
|
||||
|
||||
### publish submit
|
||||
|
||||
Submits a skill to the SkillKit marketplace by creating a GitHub issue on `rohitg00/skillkit` via the `gh` CLI. No browser is needed.
|
||||
|
||||
Before submitting, the command displays:
|
||||
- Quality score and grade (A-F) from the skill evaluator
|
||||
- GitHub star count and last push date from the GitHub API
|
||||
- Any quality warnings (up to 3)
|
||||
|
||||
If `gh` is not installed or not authenticated, the command prints a manual submission URL as a fallback.
|
||||
|
||||
## Tap Command
|
||||
|
||||
Manage custom skill sources (taps). Taps are user-level source repositories stored in `~/.skillkit/taps.json`. They let you add private or third-party skill repositories that are not part of the official marketplace.
|
||||
|
||||
### tap add
|
||||
|
||||
Add a custom skill source.
|
||||
|
||||
```bash
|
||||
skillkit tap add owner/repo
|
||||
skillkit tap add owner/repo --name "My Skills"
|
||||
```
|
||||
|
||||
### tap remove
|
||||
|
||||
Remove a custom skill source.
|
||||
|
||||
```bash
|
||||
skillkit tap remove owner/repo
|
||||
```
|
||||
|
||||
### tap list
|
||||
|
||||
List all custom skill sources.
|
||||
|
||||
```bash
|
||||
skillkit tap list
|
||||
```
|
||||
|
||||
Once a tap is added, skills from that source appear in `skillkit marketplace search` results and can be installed with the standard `skillkit install owner/repo` workflow.
|
||||
|
||||
## Security Scanning
|
||||
|
||||
```bash
|
||||
|
||||
@@ -152,11 +152,61 @@ primer:
|
||||
- .next
|
||||
```
|
||||
|
||||
## Lock File
|
||||
|
||||
SkillKit maintains a centralized lock file at `~/.skillkit/lock.json` that tracks every installed skill. The lock file is written on install, updated on update, and cleaned on remove.
|
||||
|
||||
```json
|
||||
{
|
||||
"version": 1,
|
||||
"skills": {
|
||||
"pdf": {
|
||||
"source": "anthropics/skills",
|
||||
"checksum": "sha256:abc123...",
|
||||
"agents": ["claude-code", "cursor"],
|
||||
"installedAt": "2026-04-01T12:00:00Z",
|
||||
"updatedAt": "2026-04-08T09:30:00Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
| Field | Description |
|
||||
|-------|-------------|
|
||||
| `source` | The repository or local path the skill was installed from |
|
||||
| `checksum` | SHA-256 hash of the SKILL.md content at install time, used for update detection |
|
||||
| `agents` | Which agents the skill is installed for |
|
||||
| `installedAt` | ISO timestamp of initial installation |
|
||||
| `updatedAt` | ISO timestamp of the most recent update |
|
||||
|
||||
The `update` command compares the stored checksum against the source to skip unchanged skills. The `remove` command cleans up the corresponding lock entry.
|
||||
|
||||
## Taps File
|
||||
|
||||
Custom skill source repositories are stored in `~/.skillkit/taps.json`. Taps are managed via the `skillkit tap` commands.
|
||||
|
||||
```json
|
||||
{
|
||||
"version": 1,
|
||||
"taps": [
|
||||
{
|
||||
"source": "myorg/internal-skills",
|
||||
"name": "Internal Skills",
|
||||
"addedAt": "2026-04-05T10:00:00Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Skills from tapped sources appear in marketplace search results and can be installed like any other source. See the [tap command](/docs/commands#tap-command) documentation for usage.
|
||||
|
||||
## Directory Structure
|
||||
|
||||
```
|
||||
~/.skillkit/
|
||||
├── preferences.json # User preferences
|
||||
├── lock.json # Installed skill tracking
|
||||
├── taps.json # Custom skill sources
|
||||
├── cache/ # Marketplace cache
|
||||
├── memory/ # Learning storage
|
||||
│ ├── observations/
|
||||
|
||||
@@ -29,7 +29,7 @@ skillkit/
|
||||
│ ├── core/ # Business logic
|
||||
│ ├── cli/ # CLI
|
||||
│ ├── tui/ # Terminal UI
|
||||
│ └── agents/ # 44 adapters
|
||||
│ └── agents/ # 45 adapters
|
||||
├── marketplace/ # Skills data
|
||||
│ ├── skills.json
|
||||
│ └── sources.json
|
||||
|
||||
@@ -7,7 +7,7 @@ description: Universal skill management for AI coding agents
|
||||
|
||||
Skills make AI coding agents smarter. But every agent uses a different format — Claude Code wants `.claude/skills/`, Cursor uses `.mdc`, Copilot expects `.github/skills/`. You end up rewriting the same skill three times, or locking into one platform.
|
||||
|
||||
SkillKit fixes this. Write a skill once, deploy it to all 44 agents.
|
||||
SkillKit fixes this. Write a skill once, deploy it to all 45 agents.
|
||||
|
||||
## Get Started
|
||||
|
||||
@@ -95,7 +95,7 @@ SkillKit sits between your skills and your agents. It handles format translation
|
||||
|
||||
## Supported Agents
|
||||
|
||||
44 agents and counting:
|
||||
45 agents and counting:
|
||||
|
||||
**Claude Code** | **Cursor** | **Codex** | **Gemini CLI** | **OpenCode** | **GitHub Copilot** | **Windsurf** | Amp | Antigravity | Clawdbot | Cline | CodeBuddy | CommandCode | Continue | Crush | Droid | Factory | Goose | Kilo Code | Kiro CLI | MCPJam | Mux | Neovate | OpenHands | Pi | Qoder | Qwen | Roo Code | Trae | Vercel | Zencoder | Universal
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ The init command:
|
||||
|
||||
```bash
|
||||
skillkit init --agent cursor
|
||||
skillkit init --list # Show all 44 supported agents
|
||||
skillkit init --list # Show all 45 supported agents
|
||||
skillkit init --quiet # Skip logo and prompts (for CI)
|
||||
```
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ description: Auto-generate AI agent instructions from your codebase
|
||||
|
||||
# Primer
|
||||
|
||||
Primer analyzes your codebase and automatically generates optimized instructions for all 44 AI agents. No more manual configuration—let SkillKit detect your tech stack, coding patterns, and project structure.
|
||||
Primer analyzes your codebase and automatically generates optimized instructions for all 45 AI agents. No more manual configuration—let SkillKit detect your tech stack, coding patterns, and project structure.
|
||||
|
||||
## Quick Start
|
||||
|
||||
@@ -16,7 +16,7 @@ skillkit primer
|
||||
# Generate for specific agents
|
||||
skillkit primer --agent claude,cursor,windsurf
|
||||
|
||||
# Generate for all 44 agents
|
||||
# Generate for all 45 agents
|
||||
skillkit primer --all-agents
|
||||
|
||||
# Preview without writing files
|
||||
@@ -65,7 +65,7 @@ Primer creates agent-specific instructions for:
|
||||
└── copilot-instructions.md
|
||||
```
|
||||
|
||||
### All 44 Agents
|
||||
### All 45 Agents
|
||||
Each agent gets optimized instructions in their native format.
|
||||
|
||||
## Example Output
|
||||
|
||||
@@ -242,6 +242,28 @@ console.log(`Findings: ${result.findings.length}`);
|
||||
| **Low** | 1 (with `--fail-on low`) | Minor issue or best practice |
|
||||
| **Info** | 0 | Informational finding |
|
||||
|
||||
## Trust Badges
|
||||
|
||||
Skills display a trust badge based on their source and quality analysis. Badges appear during installation, in `skillkit check` output, and in marketplace search results.
|
||||
|
||||
| Badge | Criteria |
|
||||
|-------|----------|
|
||||
| **[Official]** | Published by a known official source (Anthropic, Vercel, iii-hq, etc.) |
|
||||
| **[Trusted]** | TrustScorer rates the skill 8-10 based on clarity, boundaries, specificity, and safety |
|
||||
| **[Review]** | TrustScorer rates the skill 5-7; the skill may need refinement |
|
||||
| **[Caution]** | TrustScorer rates the skill 0-4; requires careful review before use |
|
||||
|
||||
The `TrustScorer` evaluates four weighted dimensions:
|
||||
|
||||
| Dimension | Weight | What it measures |
|
||||
|-----------|--------|------------------|
|
||||
| Clarity | 30% | How well-defined the skill's purpose and instructions are |
|
||||
| Boundaries | 25% | Whether the skill stays within its declared scope |
|
||||
| Specificity | 25% | How concrete and actionable the instructions are |
|
||||
| Safety | 20% | Absence of dangerous patterns (injection, exfiltration, secrets) |
|
||||
|
||||
Official sources are allowlisted by organization name and always receive the `[Official]` badge regardless of score. For all other sources, the badge is determined by the composite trust score.
|
||||
|
||||
## False Positive Handling
|
||||
|
||||
The scanner automatically filters:
|
||||
|
||||
@@ -5,7 +5,7 @@ description: Convert skills between AI agent formats
|
||||
|
||||
# Translation
|
||||
|
||||
SkillKit automatically converts between all 44 agent formats using an adapter pattern.
|
||||
SkillKit automatically converts between all 45 agent formats using an adapter pattern.
|
||||
|
||||
## Basic Translation
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "skillkit-docs",
|
||||
"version": "1.19.2",
|
||||
"version": "1.21.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "next build",
|
||||
|
||||
@@ -39,8 +39,8 @@ export default function HomePage() {
|
||||
{/* Features Grid */}
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-6 mb-16">
|
||||
<div className="border border-zinc-800 bg-zinc-900/30 p-6">
|
||||
<h3 className="text-lg font-bold text-white mb-2 font-mono">44 Agents</h3>
|
||||
<p className="text-zinc-500 text-sm">Claude, Cursor, Codex, Windsurf, Copilot, and 39 more supported out of the box.</p>
|
||||
<h3 className="text-lg font-bold text-white mb-2 font-mono">45 Agents</h3>
|
||||
<p className="text-zinc-500 text-sm">Claude, Cursor, Codex, Windsurf, Copilot, and 40 more supported out of the box.</p>
|
||||
</div>
|
||||
<div className="border border-zinc-800 bg-zinc-900/30 p-6">
|
||||
<h3 className="text-lg font-bold text-white mb-2 font-mono">400K+ Skills</h3>
|
||||
|
||||
@@ -44,12 +44,12 @@ const sections: DocSection[] = [
|
||||
content: (
|
||||
<div className="space-y-4">
|
||||
<p className="text-zinc-300">
|
||||
SkillKit is a universal command-line interface (CLI) and programmatic toolkit for managing AI agent skills across 44 AI coding platforms. It solves the fragmentation problem where each AI agent uses different skill formats and directory structures.
|
||||
SkillKit is a universal command-line interface (CLI) and programmatic toolkit for managing AI agent skills across 45 AI coding platforms. It solves the fragmentation problem where each AI agent uses different skill formats and directory structures.
|
||||
</p>
|
||||
<h3 className="text-lg font-semibold text-white mt-6">Core Capabilities</h3>
|
||||
<ul className="list-disc list-inside space-y-2 text-zinc-400">
|
||||
<li><span className="text-white">Skill Discovery</span> - Browse 400K+ skills from registries with AI-powered recommendations</li>
|
||||
<li><span className="text-white">Cross-Agent Translation</span> - Automatically convert skills between 44 agent-specific formats</li>
|
||||
<li><span className="text-white">Cross-Agent Translation</span> - Automatically convert skills between 45 agent-specific formats</li>
|
||||
<li><span className="text-white">Team Collaboration</span> - Share skills via .skills manifest files and publish to marketplace</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -102,7 +102,7 @@ skillkit install anthropics/skills`}</CodeBlock>
|
||||
<ul className="list-disc list-inside space-y-2 text-zinc-400">
|
||||
<li><span className="text-white">UI Tier</span> - CLI commands, Terminal UI (OpenTUI-based), and documentation website</li>
|
||||
<li><span className="text-white">Core Logic Tier</span> - @skillkit/core for business logic; @skillkit/agents for adapter implementations</li>
|
||||
<li><span className="text-white">Integration Tier</span> - File systems, Git repositories, marketplace APIs, and 44 AI agents</li>
|
||||
<li><span className="text-white">Integration Tier</span> - File systems, Git repositories, marketplace APIs, and 45 AI agents</li>
|
||||
</ul>
|
||||
|
||||
<h3 className="text-lg font-semibold text-white mt-6">Monorepo Structure</h3>
|
||||
@@ -130,7 +130,7 @@ skillkit install anthropics/skills`}</CodeBlock>
|
||||
content: (
|
||||
<div className="space-y-4">
|
||||
<p className="text-zinc-300">
|
||||
SkillKit supports 44 AI coding agents with automatic format translation:
|
||||
SkillKit supports 45 AI coding agents with automatic format translation:
|
||||
</p>
|
||||
|
||||
<Table
|
||||
|
||||
@@ -9,7 +9,7 @@ interface Feature {
|
||||
const FEATURES: Feature[] = [
|
||||
{
|
||||
title: 'Multi-Agent',
|
||||
description: 'Deploy to 44 AI coding agents with one command.',
|
||||
description: 'Deploy to 45 AI coding agents with one command.',
|
||||
icon: (
|
||||
<svg className="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={1.5} d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10" />
|
||||
@@ -64,7 +64,7 @@ const FEATURES: Feature[] = [
|
||||
];
|
||||
|
||||
const COMPARISONS = [
|
||||
['Agents', '1', '44'],
|
||||
['Agents', '1', '45'],
|
||||
['Translation', 'Manual', 'Auto'],
|
||||
['Sharing', 'Copy/paste', '.skills manifest'],
|
||||
['Discovery', 'Forums', 'CLI + AI'],
|
||||
@@ -83,7 +83,7 @@ export function Features(): React.ReactElement {
|
||||
</p>
|
||||
<div className="flex gap-6 sm:gap-8">
|
||||
<div>
|
||||
<div className="text-2xl sm:text-3xl font-bold text-white font-mono">44</div>
|
||||
<div className="text-2xl sm:text-3xl font-bold text-white font-mono">45</div>
|
||||
<div className="text-zinc-600 text-[10px] sm:text-xs font-mono">Agents</div>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
@@ -69,8 +69,8 @@ const ADVANCED_FEATURES: AdvancedFeature[] = [
|
||||
id: 'primer',
|
||||
title: 'Primer',
|
||||
subtitle: 'Zero-Config AI Instructions',
|
||||
description: 'Automatically generate CLAUDE.md, .cursorrules, and agent instructions by analyzing your codebase. Detects your tech stack, coding patterns, and project structure—then creates optimized instructions for all 44 agents.',
|
||||
highlight: 'Auto-generates instructions for 44 agents',
|
||||
description: 'Automatically generate CLAUDE.md, .cursorrules, and agent instructions by analyzing your codebase. Detects your tech stack, coding patterns, and project structure—then creates optimized instructions for all 45 agents.',
|
||||
highlight: 'Auto-generates instructions for 45 agents',
|
||||
icon: (
|
||||
<svg className="w-8 h-8" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={1.5} d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01" />
|
||||
@@ -78,7 +78,7 @@ const ADVANCED_FEATURES: AdvancedFeature[] = [
|
||||
),
|
||||
commands: [
|
||||
{ cmd: 'primer', desc: 'Analyze & generate for detected agents' },
|
||||
{ cmd: 'primer --all-agents', desc: 'Generate for all 44 agents' },
|
||||
{ cmd: 'primer --all-agents', desc: 'Generate for all 45 agents' },
|
||||
{ cmd: 'primer --analyze-only', desc: 'Preview codebase analysis' },
|
||||
{ cmd: 'primer --json', desc: 'Machine-readable output' },
|
||||
],
|
||||
|
||||
@@ -429,7 +429,7 @@ export function Agents(): React.ReactElement {
|
||||
<section className="py-6 border-b border-zinc-800 overflow-hidden">
|
||||
<div className="mx-auto max-w-5xl px-4 sm:px-6 lg:px-8">
|
||||
<p className="text-zinc-500 font-mono text-[11px] uppercase tracking-widest mb-6 text-center">
|
||||
Works with 44 AI Agents
|
||||
Works with 45 AI Agents
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -23,9 +23,19 @@ const COMMAND_GROUPS: CommandGroup[] = [
|
||||
{ cmd: 'list', desc: 'View installed skills' },
|
||||
{ cmd: 'sync', desc: 'Deploy to all agents' },
|
||||
{ cmd: 'translate --to <agent>', desc: 'Convert formats' },
|
||||
{ cmd: 'update', desc: 'Update all skills' },
|
||||
{ cmd: 'update', desc: 'Update with change detection' },
|
||||
{ cmd: 'remove <skill>', desc: 'Remove a skill' },
|
||||
{ cmd: 'status', desc: 'Show skill status' },
|
||||
{ cmd: 'remove --source org/repo', desc: 'Bulk remove by repo' },
|
||||
{ cmd: 'remove --all', desc: 'Remove all skills' },
|
||||
{ cmd: 'check', desc: 'Quality scores & activity' },
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Sources',
|
||||
commands: [
|
||||
{ cmd: 'tap add owner/repo', desc: 'Add custom source' },
|
||||
{ cmd: 'tap list', desc: 'List custom sources' },
|
||||
{ cmd: 'tap remove owner/repo', desc: 'Remove custom source' },
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -67,7 +77,7 @@ const COMMAND_GROUPS: CommandGroup[] = [
|
||||
{ cmd: 'manifest init', desc: 'Create .skills file' },
|
||||
{ cmd: 'team init', desc: 'Initialize team' },
|
||||
{ cmd: 'team share', desc: 'Share via Git' },
|
||||
{ cmd: 'publish', desc: 'Submit to marketplace' },
|
||||
{ cmd: 'publish submit', desc: 'Submit via CLI' },
|
||||
{ cmd: 'cicd init', desc: 'CI/CD templates' },
|
||||
{ cmd: 'team sync', desc: 'Sync team skills' },
|
||||
],
|
||||
|
||||
@@ -246,7 +246,7 @@ export function CompatibilityMatrix(): React.ReactElement {
|
||||
<div>
|
||||
<h2 className="text-lg sm:text-xl font-bold text-white mb-1 font-mono">Compatibility Matrix</h2>
|
||||
<p className="text-zinc-500 font-mono text-[10px] sm:text-xs">
|
||||
Skill support across all 44 agents and {CATEGORIES.length} categories.
|
||||
Skill support across all 45 agents and {CATEGORIES.length} categories.
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
|
||||
@@ -42,13 +42,13 @@ const sections: DocSection[] = [
|
||||
content: (
|
||||
<div className="space-y-4">
|
||||
<p className="text-zinc-300">
|
||||
SkillKit is a universal command-line interface (CLI) and programmatic toolkit for managing AI agent skills across 44 AI coding platforms. It solves the fragmentation problem where each AI agent uses different skill formats and directory structures.
|
||||
SkillKit is a universal command-line interface (CLI) and programmatic toolkit for managing AI agent skills across 45 AI coding platforms. It solves the fragmentation problem where each AI agent uses different skill formats and directory structures.
|
||||
</p>
|
||||
<h3 className="text-lg font-semibold text-white mt-6">Core Capabilities</h3>
|
||||
<ul className="list-disc list-inside space-y-2 text-zinc-400">
|
||||
<li><span className="text-white">AI Instruction Generation (Primer)</span> - Analyze your codebase and generate customized instruction files for all 44 agents</li>
|
||||
<li><span className="text-white">AI Instruction Generation (Primer)</span> - Analyze your codebase and generate customized instruction files for all 45 agents</li>
|
||||
<li><span className="text-white">Skill Discovery</span> - Browse 400K+ skills from registries with AI-powered recommendations</li>
|
||||
<li><span className="text-white">Cross-Agent Translation</span> - Automatically convert skills between 44 agent-specific formats</li>
|
||||
<li><span className="text-white">Cross-Agent Translation</span> - Automatically convert skills between 45 agent-specific formats</li>
|
||||
<li><span className="text-white">Team Collaboration</span> - Share skills via .skills manifest files and publish to marketplace</li>
|
||||
</ul>
|
||||
</div>
|
||||
@@ -101,7 +101,7 @@ skillkit install anthropics/skills`}</CodeBlock>
|
||||
<ul className="list-disc list-inside space-y-2 text-zinc-400">
|
||||
<li><span className="text-white">UI Tier</span> - CLI commands, Terminal UI (OpenTUI-based), and documentation website</li>
|
||||
<li><span className="text-white">Core Logic Tier</span> - @skillkit/core for business logic; @skillkit/agents for adapter implementations</li>
|
||||
<li><span className="text-white">Integration Tier</span> - File systems, Git repositories, marketplace APIs, and 44 AI agents</li>
|
||||
<li><span className="text-white">Integration Tier</span> - File systems, Git repositories, marketplace APIs, and 45 AI agents</li>
|
||||
</ul>
|
||||
|
||||
<h3 className="text-lg font-semibold text-white mt-6">Monorepo Structure</h3>
|
||||
@@ -129,7 +129,7 @@ skillkit install anthropics/skills`}</CodeBlock>
|
||||
content: (
|
||||
<div className="space-y-4">
|
||||
<p className="text-zinc-300">
|
||||
SkillKit supports 44 AI coding agents with automatic format translation:
|
||||
SkillKit supports 45 AI coding agents with automatic format translation:
|
||||
</p>
|
||||
|
||||
<Table
|
||||
@@ -206,7 +206,7 @@ skillkit cicd init # Setup CI/CD integration`}</CodeBlock>
|
||||
|
||||
<h3 className="text-lg font-semibold text-white mt-6">AI Instruction Generation (Primer)</h3>
|
||||
<CodeBlock>{`skillkit primer # Analyze codebase, generate for detected agents
|
||||
skillkit primer --all-agents # Generate for all 44 agents
|
||||
skillkit primer --all-agents # Generate for all 45 agents
|
||||
skillkit primer --agent claude-code,cursor # Specific agents only
|
||||
skillkit primer --analyze-only # Only show codebase analysis
|
||||
skillkit primer --dry-run # Preview without writing files
|
||||
|
||||
@@ -18,7 +18,7 @@ const FEATURES: Feature[] = [
|
||||
},
|
||||
{
|
||||
title: 'Auto Translation',
|
||||
description: 'The npm for agent skills. Write once, auto-translate to 44 formats.',
|
||||
description: 'The npm for agent skills. Write once, auto-translate to 45 formats.',
|
||||
icon: (
|
||||
<svg className="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={1.5} d="M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4" />
|
||||
@@ -36,7 +36,7 @@ const FEATURES: Feature[] = [
|
||||
},
|
||||
{
|
||||
title: 'Primer',
|
||||
description: 'Auto-generate agent instructions for all 44 agents from your codebase.',
|
||||
description: 'Auto-generate agent instructions for all 45 agents from your codebase.',
|
||||
icon: (
|
||||
<svg className="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={1.5} d="M13 10V3L4 14h7v7l9-11h-7z" />
|
||||
@@ -109,9 +109,9 @@ const FEATURES: Feature[] = [
|
||||
];
|
||||
|
||||
const COMPARISONS = [
|
||||
['Agent Support', '1-17 agents', '44 agents'],
|
||||
['Agent Support', '1-17 agents', '45 agents'],
|
||||
['Sources', 'Single registry', '34+ aggregated'],
|
||||
['Translation', 'None or limited', 'All 44 formats'],
|
||||
['Translation', 'None or limited', 'All 45 formats'],
|
||||
['Memory', 'None', 'Persistent learning'],
|
||||
['Security', 'None', '46-rule scanner'],
|
||||
['Team Sync', 'None', '.skills manifest'],
|
||||
@@ -131,7 +131,7 @@ export function Features(): React.ReactElement {
|
||||
</p>
|
||||
<div className="flex gap-6 sm:gap-8">
|
||||
<div>
|
||||
<div className="text-2xl sm:text-3xl font-bold text-white font-mono">44</div>
|
||||
<div className="text-2xl sm:text-3xl font-bold text-white font-mono">45</div>
|
||||
<div className="text-zinc-600 text-[10px] sm:text-xs font-mono">Agents</div>
|
||||
</div>
|
||||
<div>
|
||||
|
||||
@@ -22,7 +22,7 @@ interface TerminalLine {
|
||||
const TERMINAL_LINES: TerminalLine[] = [
|
||||
{ type: 'cmd', text: 'skillkit install anthropics/skills' },
|
||||
{ type: 'out', text: '→ Fetched from github.com/anthropics/skills' },
|
||||
{ type: 'out', text: '→ Translated to 44 agent formats' },
|
||||
{ type: 'out', text: '→ Translated to 45 agent formats' },
|
||||
{ type: 'out', text: '→ Scanned: 0 issues found' },
|
||||
{ type: 'cmd', text: 'skillkit install skills.sh/vercel/agent-skills' },
|
||||
{ type: 'out', text: '→ Installed 12 skills from skills.sh' },
|
||||
@@ -149,7 +149,7 @@ export function Hero({ version, stars }: HeroProps): React.ReactElement {
|
||||
|
||||
<p className="text-sm text-zinc-400 mb-5 max-w-lg font-mono leading-relaxed">
|
||||
The open source package manager that aggregates 34+ skill sources,
|
||||
scans 400K+ skills from registries, auto-translates to 44 agent formats,
|
||||
scans 400K+ skills from registries, auto-translates to 45 agent formats,
|
||||
and adds memory, security scanning, and team workflows. Everything runs locally.
|
||||
</p>
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ const USE_CASES: UseCase[] = [
|
||||
{
|
||||
persona: 'Multi-Agent Developer',
|
||||
problem: 'You\'ve built skills for Claude Code. Now your team wants Cursor, and you want to try Windsurf.',
|
||||
solution: 'SkillKit translates skills between all 44 agents. Write once, deploy everywhere.',
|
||||
solution: 'SkillKit translates skills between all 45 agents. Write once, deploy everywhere.',
|
||||
command: 'skillkit translate --to cursor,windsurf',
|
||||
gradient: 'from-violet-500/10 to-purple-500/10',
|
||||
icon: (
|
||||
|
||||
@@ -18,7 +18,7 @@ const COMPETITORS: Competitor[] = [
|
||||
{ name: 'Askill', type: 'Installer', agents: '~40', translate: false, memory: false, security: true, team: false, tui: false, api: false },
|
||||
{ name: 'Skild', type: 'Installer', agents: '~7', translate: false, memory: false, security: false, team: false, tui: false, api: false },
|
||||
{ name: 'Paks', type: 'Installer', agents: '~6', translate: false, memory: false, security: false, team: false, tui: false, api: false },
|
||||
{ name: 'SkillKit', type: 'Platform', agents: '44', translate: true, memory: true, security: true, team: true, tui: true, api: true },
|
||||
{ name: 'SkillKit', type: 'Platform', agents: '45', translate: true, memory: true, security: true, team: true, tui: true, api: true },
|
||||
];
|
||||
|
||||
const SOURCES = [
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>SkillKit - Universal Skills for AI Coding Agents</title>
|
||||
<meta name="description" content="Write once, deploy to 44 AI coding agents. Skills for Claude Code, Cursor, Codex, Windsurf, GitHub Copilot, and more.">
|
||||
<meta name="description" content="Write once, deploy to 45 AI coding agents. Skills for Claude Code, Cursor, Codex, Windsurf, GitHub Copilot, and more.">
|
||||
|
||||
<!-- Open Graph -->
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="https://skillkit.sh/">
|
||||
<meta property="og:title" content="SkillKit - Universal Skills for AI Coding Agents">
|
||||
<meta property="og:description" content="Write once, deploy to 44 AI coding agents. Skills for Claude Code, Cursor, Codex, Windsurf, GitHub Copilot, and more.">
|
||||
<meta property="og:description" content="Write once, deploy to 45 AI coding agents. Skills for Claude Code, Cursor, Codex, Windsurf, GitHub Copilot, and more.">
|
||||
<meta property="og:image" content="https://skillkit.sh/og-image.png">
|
||||
<meta property="og:image:width" content="1200">
|
||||
<meta property="og:image:height" content="630">
|
||||
@@ -20,7 +20,7 @@
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta name="twitter:url" content="https://skillkit.sh/">
|
||||
<meta name="twitter:title" content="SkillKit - Universal Skills for AI Coding Agents">
|
||||
<meta name="twitter:description" content="Write once, deploy to 44 AI coding agents. Skills for Claude Code, Cursor, Codex, Windsurf, GitHub Copilot, and more.">
|
||||
<meta name="twitter:description" content="Write once, deploy to 45 AI coding agents. Skills for Claude Code, Cursor, Codex, Windsurf, GitHub Copilot, and more.">
|
||||
<meta name="twitter:image" content="https://skillkit.sh/og-image.png">
|
||||
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "SkillKit",
|
||||
"description": "Supercharge Every AI Coding Agent. Translate, manage, and sync skills across Claude, Cursor, Windsurf, and 44 agents.",
|
||||
"description": "Supercharge Every AI Coding Agent. Translate, manage, and sync skills across Claude, Cursor, Windsurf, and 45 agents.",
|
||||
"requestFramePermissions": []
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "skillkit",
|
||||
"private": true,
|
||||
"version": "1.19.2",
|
||||
"version": "1.21.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"info": {
|
||||
"title": "SkillKit",
|
||||
"version": "1.12.0",
|
||||
"description": "Skills shouldn't require pre-installation. This API lets any agent, framework, or tool discover and retrieve skills on demand.\n\n400K+ skills across 44 AI coding agents. Results ranked by a multi-signal scoring system (content 40pts, query match 30pts, popularity 15pts, references 15pts).\n\n## Quick Start\n\n```bash\nnpx skillkit serve\n```\n\nThe API is now running at http://localhost:3737\n\n## MCP Server\n\nFor agent-native discovery (Claude Desktop, Cursor):\n\n```json\n{\n \"mcpServers\": {\n \"skillkit\": { \"command\": \"npx\", \"args\": [\"@skillkit/mcp\"] }\n }\n}\n```\n\n## Python Client\n\n```bash\npip install skillkit-client\n```",
|
||||
"description": "Skills shouldn't require pre-installation. This API lets any agent, framework, or tool discover and retrieve skills on demand.\n\n400K+ skills across 45 AI coding agents. Results ranked by a multi-signal scoring system (content 40pts, query match 30pts, popularity 15pts, references 15pts).\n\n## Quick Start\n\n```bash\nnpx skillkit serve\n```\n\nThe API is now running at http://localhost:3737\n\n## MCP Server\n\nFor agent-native discovery (Claude Desktop, Cursor):\n\n```json\n{\n \"mcpServers\": {\n \"skillkit\": { \"command\": \"npx\", \"args\": [\"@skillkit/mcp\"] }\n }\n}\n```\n\n## Python Client\n\n```bash\npip install skillkit-client\n```",
|
||||
"license": {
|
||||
"name": "Apache-2.0",
|
||||
"url": "https://opensource.org/licenses/Apache-2.0"
|
||||
|
||||
Binary file not shown.
@@ -44,7 +44,7 @@ describe('E2E: Onboarding UI', () => {
|
||||
expect(result.success).toBe(true);
|
||||
});
|
||||
|
||||
it('should display all 44 agents', async () => {
|
||||
it('should display all 45 agents', async () => {
|
||||
const result = await runCli(['init', '--list']);
|
||||
const output = result.stdout + result.stderr;
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
type CrossAgentSkill,
|
||||
} from '@skillkit/core';
|
||||
|
||||
// All 44 supported agents
|
||||
// All 45 supported agents
|
||||
const SUPPORTED_AGENTS = [
|
||||
'claude-code',
|
||||
'cursor',
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* E2E Tests: Skill Translation Commands
|
||||
*
|
||||
* Tests for: translate, context, recommend
|
||||
* Validates translation to all 44 supported agents
|
||||
* Validates translation to all 45 supported agents
|
||||
*/
|
||||
|
||||
import { describe, it, expect, beforeEach, afterEach } from 'vitest';
|
||||
@@ -16,7 +16,7 @@ import {
|
||||
testFileExists,
|
||||
} from './helpers/cli-runner.js';
|
||||
|
||||
// All 44 supported agents
|
||||
// All 45 supported agents
|
||||
const SUPPORTED_AGENTS = [
|
||||
'claude-code',
|
||||
'cursor',
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "./sources-schema.json",
|
||||
"version": 1,
|
||||
"updatedAt": "2026-02-28",
|
||||
"updatedAt": "2026-04-10",
|
||||
"description": "Curated skill repository sources - THE SINGLE SOURCE OF TRUTH",
|
||||
"sources": [
|
||||
{ "source": "anthropics/skills", "name": "Anthropic Official", "official": true },
|
||||
@@ -37,6 +37,7 @@
|
||||
{ "source": "intellectronica/agent-skills", "name": "Context7" },
|
||||
{ "source": "muratcankoylan/Agent-Skills-for-Context-Engineering", "name": "Context Engineering" },
|
||||
{ "source": "sickn33/antigravity-awesome-skills", "name": "Antigravity Awesome Skills" },
|
||||
{ "source": "NousResearch/hermes-agent", "name": "Hermes Agent Skills" },
|
||||
{ "source": "skills.sh", "name": "Skills.sh Leaderboard", "official": true, "registry": "skills-sh" }
|
||||
]
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "skillkit-monorepo",
|
||||
"version": "1.19.2",
|
||||
"version": "1.21.0",
|
||||
"private": true,
|
||||
"description": "The package manager for AI agent skills — install, translate, share across 44 coding agents",
|
||||
"description": "The package manager for AI agent skills — install, translate, share across 45 coding agents",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "turbo run build",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@skillkit/agents",
|
||||
"version": "1.19.2",
|
||||
"version": "1.21.0",
|
||||
"description": "Agent adapters for SkillKit - supports 32 AI coding agents",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@skillkit/api",
|
||||
"version": "1.19.2",
|
||||
"version": "1.21.0",
|
||||
"description": "REST API server for SkillKit skill discovery",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
@@ -5,7 +5,7 @@ const OPENAPI_SPEC = {
|
||||
info: {
|
||||
title: 'SkillKit',
|
||||
version: '1.12.0',
|
||||
description: 'Skill Discovery API for AI coding agents. Search, browse, and retrieve skills from the SkillKit marketplace (400K+ skills across 44 agents).',
|
||||
description: 'Skill Discovery API for AI coding agents. Search, browse, and retrieve skills from the SkillKit marketplace (400K+ skills across 45 agents).',
|
||||
license: { name: 'Apache-2.0', url: 'https://opensource.org/licenses/Apache-2.0' },
|
||||
contact: { name: 'SkillKit', url: 'https://github.com/rohitg00/skillkit' },
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@skillkit/cli",
|
||||
"version": "1.19.2",
|
||||
"version": "1.21.0",
|
||||
"description": "CLI commands for SkillKit",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
@@ -96,10 +96,10 @@ describe('Onboarding Module', () => {
|
||||
it('should generate full logo with version', async () => {
|
||||
const { getFullLogo } = await import('../onboarding/logo.js');
|
||||
|
||||
const logo = getFullLogo('1.7.2', 44);
|
||||
const logo = getFullLogo('1.7.2', 45);
|
||||
expect(logo).toContain('\u2588');
|
||||
expect(logo).toContain('v1.7.2');
|
||||
expect(logo).toContain('44 agents');
|
||||
expect(logo).toContain('45 agents');
|
||||
});
|
||||
|
||||
it('should generate compact logo', async () => {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { existsSync } from 'node:fs';
|
||||
import { existsSync, statSync } from 'node:fs';
|
||||
import { join } from 'node:path';
|
||||
import { Command, Option } from 'clipanion';
|
||||
import { findAllSkills, findSkill, detectProvider, isLocalPath } from '@skillkit/core';
|
||||
import { getSearchDirs, loadSkillMetadata } from '../helpers.js';
|
||||
import { findAllSkills, findSkill, detectProvider, isLocalPath, evaluateSkillDirectory } from '@skillkit/core';
|
||||
import { getSearchDirs, loadSkillMetadata, formatCount, timeAgo, fetchGitHubActivity } from '../helpers.js';
|
||||
import {
|
||||
colors,
|
||||
symbols,
|
||||
@@ -11,6 +11,8 @@ import {
|
||||
success,
|
||||
warn,
|
||||
header,
|
||||
formatQualityBadge,
|
||||
getQualityGradeFromScore,
|
||||
} from '../onboarding/index.js';
|
||||
|
||||
interface UpdateInfo {
|
||||
@@ -18,15 +20,19 @@ interface UpdateInfo {
|
||||
currentVersion?: string;
|
||||
hasUpdate: boolean;
|
||||
error?: string;
|
||||
qualityScore?: number | null;
|
||||
stars?: number | null;
|
||||
pushedAt?: string | null;
|
||||
}
|
||||
|
||||
export class CheckCommand extends Command {
|
||||
static override paths = [['check']];
|
||||
|
||||
static override usage = Command.Usage({
|
||||
description: 'Check for available skill updates (dry-run)',
|
||||
description: 'Check installed skills for updates, quality, and activity',
|
||||
details: `
|
||||
Checks if installed skills have updates available from their sources.
|
||||
Shows quality scores and GitHub activity for each skill.
|
||||
Does not modify any files - just reports what would be updated.
|
||||
`,
|
||||
examples: [
|
||||
@@ -89,12 +95,15 @@ export class CheckCommand extends Command {
|
||||
|
||||
for (const skill of skillsToCheck) {
|
||||
const metadata = loadSkillMetadata(skill.path);
|
||||
const quality = evaluateSkillDirectory(skill.path);
|
||||
const qualityScore = quality?.overall ?? null;
|
||||
|
||||
if (!metadata) {
|
||||
results.push({
|
||||
name: skill.name,
|
||||
hasUpdate: false,
|
||||
error: 'No metadata (reinstall needed)',
|
||||
qualityScore,
|
||||
});
|
||||
continue;
|
||||
}
|
||||
@@ -114,6 +123,7 @@ export class CheckCommand extends Command {
|
||||
name: skill.name,
|
||||
hasUpdate: false,
|
||||
error: 'Local source missing',
|
||||
qualityScore,
|
||||
});
|
||||
if (this.verbose) s.stop(`${skill.name}: source missing`);
|
||||
continue;
|
||||
@@ -123,20 +133,19 @@ export class CheckCommand extends Command {
|
||||
const installedSkillMd = join(skill.path, 'SKILL.md');
|
||||
|
||||
if (existsSync(sourceSkillMd) && existsSync(installedSkillMd)) {
|
||||
const { statSync } = await import('node:fs');
|
||||
const sourceTime = statSync(sourceSkillMd).mtime;
|
||||
const installedTime = statSync(installedSkillMd).mtime;
|
||||
|
||||
if (sourceTime > installedTime) {
|
||||
results.push({ name: skill.name, hasUpdate: true });
|
||||
results.push({ name: skill.name, hasUpdate: true, qualityScore });
|
||||
updatesAvailable++;
|
||||
if (this.verbose) s.stop(`${skill.name}: update available`);
|
||||
} else {
|
||||
results.push({ name: skill.name, hasUpdate: false });
|
||||
results.push({ name: skill.name, hasUpdate: false, qualityScore });
|
||||
if (this.verbose) s.stop(`${skill.name}: up to date`);
|
||||
}
|
||||
} else {
|
||||
results.push({ name: skill.name, hasUpdate: false });
|
||||
results.push({ name: skill.name, hasUpdate: false, qualityScore });
|
||||
if (this.verbose) s.stop(`${skill.name}: up to date`);
|
||||
}
|
||||
} else {
|
||||
@@ -147,15 +156,31 @@ export class CheckCommand extends Command {
|
||||
name: skill.name,
|
||||
hasUpdate: false,
|
||||
error: 'Unknown provider',
|
||||
qualityScore,
|
||||
});
|
||||
if (this.verbose) s.stop(`${skill.name}: unknown provider`);
|
||||
continue;
|
||||
}
|
||||
|
||||
const parsed = provider.parseSource(metadata.source);
|
||||
let stars: number | null = null;
|
||||
let pushedAt: string | null = null;
|
||||
|
||||
if (parsed && provider.name === 'GitHub') {
|
||||
const activity = await fetchGitHubActivity(parsed.owner, parsed.repo);
|
||||
if (activity) {
|
||||
stars = activity.stars;
|
||||
pushedAt = activity.pushedAt;
|
||||
}
|
||||
}
|
||||
|
||||
results.push({
|
||||
name: skill.name,
|
||||
hasUpdate: false,
|
||||
currentVersion: metadata.updatedAt || metadata.installedAt,
|
||||
qualityScore,
|
||||
stars,
|
||||
pushedAt,
|
||||
});
|
||||
if (this.verbose) s.stop(`${skill.name}: remote source (run update to sync)`);
|
||||
}
|
||||
@@ -164,6 +189,7 @@ export class CheckCommand extends Command {
|
||||
name: skill.name,
|
||||
hasUpdate: false,
|
||||
error: err instanceof Error ? err.message : 'Check failed',
|
||||
qualityScore,
|
||||
});
|
||||
if (this.verbose) s.stop(`${skill.name}: error`);
|
||||
}
|
||||
@@ -178,27 +204,46 @@ export class CheckCommand extends Command {
|
||||
if (withUpdates.length > 0) {
|
||||
console.log(colors.primary('Updates available:'));
|
||||
for (const r of withUpdates) {
|
||||
console.log(` ${colors.success(symbols.arrowUp)} ${colors.primary(r.name)}`);
|
||||
const badge = this.qualityBadgeFor(r.qualityScore);
|
||||
console.log(` ${colors.success(symbols.arrowUp)} ${colors.primary(r.name)}${badge}`);
|
||||
}
|
||||
console.log('');
|
||||
}
|
||||
|
||||
if (upToDate.length > 0 && this.verbose) {
|
||||
console.log(colors.muted('Up to date:'));
|
||||
for (const r of upToDate) {
|
||||
console.log(` ${colors.muted(symbols.success)} ${colors.muted(r.name)}`);
|
||||
if (upToDate.length > 0) {
|
||||
if (this.verbose) {
|
||||
console.log(colors.muted('Up to date:'));
|
||||
}
|
||||
console.log('');
|
||||
for (const r of upToDate) {
|
||||
const badge = this.qualityBadgeFor(r.qualityScore);
|
||||
const activityStr = this.formatActivity(r);
|
||||
if (this.verbose) {
|
||||
console.log(` ${colors.muted(symbols.success)} ${colors.muted(r.name)}${badge}${activityStr}`);
|
||||
}
|
||||
}
|
||||
if (this.verbose) console.log('');
|
||||
}
|
||||
|
||||
if (withErrors.length > 0) {
|
||||
console.log(colors.warning('Could not check:'));
|
||||
for (const r of withErrors) {
|
||||
console.log(` ${colors.warning(symbols.warning)} ${r.name}: ${colors.muted(r.error || 'unknown')}`);
|
||||
const badge = this.qualityBadgeFor(r.qualityScore);
|
||||
console.log(` ${colors.warning(symbols.warning)} ${r.name}${badge}: ${colors.muted(r.error || 'unknown')}`);
|
||||
}
|
||||
console.log('');
|
||||
}
|
||||
|
||||
if (!this.quiet) {
|
||||
const qualityScores = results
|
||||
.map(r => r.qualityScore)
|
||||
.filter((s): s is number => typeof s === 'number');
|
||||
if (qualityScores.length > 0) {
|
||||
const avg = Math.round(qualityScores.reduce((a, b) => a + b, 0) / qualityScores.length);
|
||||
const grade = getQualityGradeFromScore(avg);
|
||||
console.log(colors.muted(`Average quality: ${avg}/100 (${grade})`));
|
||||
}
|
||||
}
|
||||
|
||||
if (updatesAvailable > 0) {
|
||||
success(`${updatesAvailable} update(s) available`);
|
||||
console.log(colors.muted('Run `skillkit update` to install updates'));
|
||||
@@ -208,4 +253,22 @@ export class CheckCommand extends Command {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
private qualityBadgeFor(score: number | null | undefined): string {
|
||||
if (typeof score !== 'number') return '';
|
||||
return ` ${formatQualityBadge(score)}`;
|
||||
}
|
||||
|
||||
private formatActivity(r: UpdateInfo): string {
|
||||
const parts: string[] = [];
|
||||
if (typeof r.stars === 'number' && r.stars > 0) {
|
||||
parts.push(`${formatCount(r.stars)} stars`);
|
||||
}
|
||||
if (r.pushedAt) {
|
||||
parts.push(`pushed ${timeAgo(r.pushedAt)}`);
|
||||
}
|
||||
if (parts.length === 0) return '';
|
||||
return ` ${colors.muted(`(${parts.join(', ')})`)}`;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
GitHubSkillRegistry,
|
||||
SkillsShRegistry,
|
||||
} from "@skillkit/core";
|
||||
import { formatCount } from "../helpers.js";
|
||||
import { formatCount, loadTaps } from "../helpers.js";
|
||||
|
||||
interface SkillResult {
|
||||
name: string;
|
||||
@@ -60,8 +60,9 @@ export class FindCommand extends Command {
|
||||
description: "Minimal output (just list skills)",
|
||||
});
|
||||
|
||||
federated = Option.Boolean("--federated,-f", false, {
|
||||
description: "Search external registries (GitHub SKILL.md files)",
|
||||
federated = Option.Boolean("--federated,-f", true, {
|
||||
description: "Search external registries (enabled by default)",
|
||||
hidden: true,
|
||||
});
|
||||
|
||||
async execute(): Promise<number> {
|
||||
@@ -86,6 +87,20 @@ export class FindCommand extends Command {
|
||||
}),
|
||||
);
|
||||
|
||||
const taps = loadTaps();
|
||||
for (const tap of taps.taps) {
|
||||
const tapLabel = tap.name || tap.source;
|
||||
const exists = allSkills.some((s) => s.source === tap.source);
|
||||
if (!exists) {
|
||||
allSkills.push({
|
||||
name: tapLabel,
|
||||
description: `Custom tap: ${tap.source}`,
|
||||
source: tap.source,
|
||||
repoName: tap.source.split("/").pop() || "",
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
let results: SkillResult[];
|
||||
let searchTerm: string | undefined;
|
||||
|
||||
@@ -246,7 +261,7 @@ export class FindCommand extends Command {
|
||||
);
|
||||
console.log(
|
||||
colors.muted(
|
||||
" skillkit find -f <query> # Also search GitHub SKILL.md files",
|
||||
" skillkit find <query> # Search marketplace + GitHub",
|
||||
),
|
||||
);
|
||||
console.log(colors.muted(" skillkit ui # Browse in TUI"));
|
||||
|
||||
@@ -132,6 +132,7 @@ export { TimelineCommand } from './timeline.js';
|
||||
export { SessionHandoffCommand } from './handoff.js';
|
||||
export { LineageCommand } from './lineage.js';
|
||||
export { SaveCommand } from './save.js';
|
||||
export { TapAddCommand, TapRemoveCommand, TapListCommand } from './tap.js';
|
||||
export {
|
||||
AgentsMdCommand,
|
||||
AgentsMdInitCommand,
|
||||
|
||||
@@ -26,6 +26,10 @@ import {
|
||||
AgentsMdParser,
|
||||
AgentsMdGenerator,
|
||||
SkillsShRegistry,
|
||||
TrustScorer,
|
||||
readSkillContent,
|
||||
computeSkillChecksum,
|
||||
addSkillToLock,
|
||||
} from "@skillkit/core";
|
||||
import type { SkillsShStats } from "@skillkit/core";
|
||||
import type { SkillMetadata, GitProvider, AgentType } from "@skillkit/core";
|
||||
@@ -56,6 +60,7 @@ import {
|
||||
getLastAgents,
|
||||
formatQualityBadge,
|
||||
getQualityGradeFromScore,
|
||||
formatTrustBadge,
|
||||
type InstallResult,
|
||||
} from "../onboarding/index.js";
|
||||
|
||||
@@ -132,14 +137,17 @@ export class InstallCommand extends Command {
|
||||
const isInteractive =
|
||||
process.stdin.isTTY && !this.skills && !this.all && !this.yes;
|
||||
const s = spinner();
|
||||
let cloneResult: Awaited<ReturnType<typeof this.resolveSource>>["cloneResult"] = null;
|
||||
|
||||
try {
|
||||
if (process.stdin.isTTY && !this.quiet) {
|
||||
welcome();
|
||||
}
|
||||
|
||||
const { providerAdapter, cloneResult } = await this.resolveSource(s);
|
||||
if (!providerAdapter || !cloneResult) return 1;
|
||||
const resolved = await this.resolveSource(s);
|
||||
if (!resolved.providerAdapter || !resolved.cloneResult) return 1;
|
||||
const providerAdapter = resolved.providerAdapter;
|
||||
cloneResult = resolved.cloneResult;
|
||||
|
||||
const discoveredSkills = cloneResult.discoveredSkills || [];
|
||||
|
||||
@@ -169,7 +177,6 @@ export class InstallCommand extends Command {
|
||||
skillsToInstall, targetAgents, installMethod, providerAdapter, cloneResult, s,
|
||||
);
|
||||
|
||||
this.cleanupTemp(cloneResult);
|
||||
this.updateAgentsMd(installResults.length);
|
||||
await this.showResults(installResults, targetAgents, providerAdapter, isInteractive);
|
||||
|
||||
@@ -178,6 +185,8 @@ export class InstallCommand extends Command {
|
||||
s.stop(colors.error("Installation failed"));
|
||||
console.log(colors.muted(err instanceof Error ? err.message : String(err)));
|
||||
return 1;
|
||||
} finally {
|
||||
if (cloneResult) this.cleanupTemp(cloneResult);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -431,6 +440,36 @@ export class InstallCommand extends Command {
|
||||
console.log("");
|
||||
}
|
||||
|
||||
const officialSources = [
|
||||
"anthropics/skills",
|
||||
"vercel-labs/agent-skills",
|
||||
"expo/skills",
|
||||
"remotion-dev/skills",
|
||||
"supabase/agent-skills",
|
||||
"stripe/ai",
|
||||
];
|
||||
const sourceProvider = detectProvider(this.source);
|
||||
const parsedSource = sourceProvider?.parseSource(this.source);
|
||||
const normalizedSource = parsedSource ? `${parsedSource.owner}/${parsedSource.repo}` : this.source;
|
||||
const isOfficial = sourceProvider?.type === "github" && officialSources.includes(normalizedSource);
|
||||
|
||||
const scorer = new TrustScorer();
|
||||
for (const skill of skillsToInstall) {
|
||||
const content = readSkillContent(skill.path);
|
||||
if (content) {
|
||||
const result = scorer.score(content);
|
||||
const badge = formatTrustBadge({
|
||||
isOfficial,
|
||||
officialSource: isOfficial ? this.source : undefined,
|
||||
grade: result.grade,
|
||||
score: result.score,
|
||||
source: this.source,
|
||||
});
|
||||
console.log(` ${colors.primary(skill.name)}: ${badge}`);
|
||||
}
|
||||
}
|
||||
console.log("");
|
||||
|
||||
const agentDisplay =
|
||||
targetAgents.length <= 3
|
||||
? targetAgents.map(formatAgent).join(", ")
|
||||
@@ -546,6 +585,7 @@ export class InstallCommand extends Command {
|
||||
installedAt: new Date().toISOString(),
|
||||
enabled: true,
|
||||
};
|
||||
metadata.checksum = computeSkillChecksum(targetPath);
|
||||
saveSkillMetadata(targetPath, metadata);
|
||||
|
||||
installedAgents.push(agentType);
|
||||
@@ -557,11 +597,24 @@ export class InstallCommand extends Command {
|
||||
}
|
||||
|
||||
if (installedAgents.length > 0) {
|
||||
const firstAgentInstallDir = getInstallDir(this.global, installedAgents[0] as AgentType);
|
||||
const isStandalone = existsSync(join(firstAgentInstallDir, skillName.endsWith(".md") ? skillName : `${skillName}.md`));
|
||||
const actualPath = isStandalone
|
||||
? join(firstAgentInstallDir, skillName.endsWith(".md") ? skillName : `${skillName}.md`)
|
||||
: join(firstAgentInstallDir, skillName);
|
||||
addSkillToLock(skillName, {
|
||||
source: this.source,
|
||||
sourceType: providerAdapter!.type,
|
||||
installedAt: new Date().toISOString(),
|
||||
checksum: computeSkillChecksum(actualPath),
|
||||
agents: installedAgents,
|
||||
path: actualPath,
|
||||
});
|
||||
installResults.push({
|
||||
skillName,
|
||||
method: installMethod,
|
||||
agents: installedAgents,
|
||||
path: join(getInstallDir(this.global, installedAgents[0] as AgentType), skillName),
|
||||
path: actualPath,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,13 +22,13 @@ export class PrimerCommand extends Command {
|
||||
for AI coding agents.
|
||||
|
||||
By default, it generates instructions for detected agents in your project.
|
||||
Use --all-agents to generate for all 44 supported agents.
|
||||
Use --all-agents to generate for all 45 supported agents.
|
||||
|
||||
Inspired by github.com/pierceboggan/primer but extended for all SkillKit agents.
|
||||
`,
|
||||
examples: [
|
||||
['Generate for detected agents', '$0 primer'],
|
||||
['Generate for all 44 agents', '$0 primer --all-agents'],
|
||||
['Generate for all 45 agents', '$0 primer --all-agents'],
|
||||
['Generate for specific agents', '$0 primer --agent claude-code,cursor,github-copilot'],
|
||||
['Custom output directory', '$0 primer --output ./instructions'],
|
||||
['Preview without writing files', '$0 primer --dry-run'],
|
||||
@@ -42,7 +42,7 @@ export class PrimerCommand extends Command {
|
||||
});
|
||||
|
||||
allAgents = Option.Boolean('--all-agents,-A', false, {
|
||||
description: 'Generate for all 44 supported agents',
|
||||
description: 'Generate for all 45 supported agents',
|
||||
});
|
||||
|
||||
output = Option.String('--output,-o', {
|
||||
|
||||
@@ -7,7 +7,15 @@ import {
|
||||
statSync,
|
||||
} from "node:fs";
|
||||
import { join, basename, dirname, resolve, sep } from "node:path";
|
||||
import { colors, warn, success, error, step } from "../onboarding/index.js";
|
||||
import {
|
||||
colors,
|
||||
warn,
|
||||
success,
|
||||
error,
|
||||
step,
|
||||
formatQualityBadge,
|
||||
getQualityGradeFromScore,
|
||||
} from "../onboarding/index.js";
|
||||
import { Command, Option } from "clipanion";
|
||||
import {
|
||||
generateWellKnownIndex,
|
||||
@@ -15,7 +23,9 @@ import {
|
||||
SkillScanner,
|
||||
formatSummary,
|
||||
Severity,
|
||||
evaluateSkillDirectory,
|
||||
} from "@skillkit/core";
|
||||
import { formatCount, timeAgo, fetchGitHubActivity } from "../helpers.js";
|
||||
|
||||
function sanitizeSkillName(name: string): string | null {
|
||||
if (!name || typeof name !== "string") return null;
|
||||
@@ -480,6 +490,14 @@ export class PublishSubmitCommand extends Command {
|
||||
return 1;
|
||||
}
|
||||
|
||||
const skillDir = dirname(skillMdPath);
|
||||
const quality = evaluateSkillDirectory(skillDir);
|
||||
const qualityScore = quality?.overall ?? null;
|
||||
const qualityGrade = qualityScore !== null ? getQualityGradeFromScore(qualityScore) : null;
|
||||
const qualityBadge = qualityScore !== null ? formatQualityBadge(qualityScore) : "N/A";
|
||||
|
||||
const activity = await fetchGitHubActivity(repoInfo.owner, repoInfo.repo);
|
||||
|
||||
const skillEntry = {
|
||||
id: `${repoInfo.owner}/${repoInfo.repo}/${skillSlug}`,
|
||||
name: this.formatName(skillName),
|
||||
@@ -496,6 +514,19 @@ export class PublishSubmitCommand extends Command {
|
||||
console.log(colors.muted(` Description: ${skillEntry.description}`));
|
||||
console.log(colors.muted(` Source: ${skillEntry.source}`));
|
||||
console.log(colors.muted(` Tags: ${skillEntry.tags.join(", ")}`));
|
||||
console.log(colors.muted(` Quality: ${qualityBadge}${qualityScore !== null ? ` (${qualityScore}/100)` : ""}`));
|
||||
if (activity) {
|
||||
const stars = formatCount(activity.stars);
|
||||
const pushed = activity.pushedAt ? timeAgo(activity.pushedAt) : "unknown";
|
||||
console.log(colors.muted(` Stars: ${stars}`));
|
||||
console.log(colors.muted(` Last push: ${pushed}`));
|
||||
}
|
||||
if (quality && quality.warnings.length > 0) {
|
||||
console.log(colors.warning(` Warnings:`));
|
||||
for (const w of quality.warnings.slice(0, 3)) {
|
||||
console.log(colors.muted(` - ${w}`));
|
||||
}
|
||||
}
|
||||
console.log();
|
||||
|
||||
if (this.dryRun) {
|
||||
@@ -504,33 +535,61 @@ export class PublishSubmitCommand extends Command {
|
||||
return 0;
|
||||
}
|
||||
|
||||
const issueBody = this.createIssueBody(skillEntry);
|
||||
const issueTitle = encodeURIComponent(`[Publish] ${skillEntry.name}`);
|
||||
const issueBodyEncoded = encodeURIComponent(issueBody);
|
||||
const issueUrl = `https://github.com/rohitg00/skillkit/issues/new?title=${issueTitle}&body=${issueBodyEncoded}&labels=skill-submission,publish`;
|
||||
|
||||
success("Opening GitHub to submit your skill...\n");
|
||||
const issueBody = this.createIssueBody(skillEntry, {
|
||||
qualityScore,
|
||||
qualityGrade,
|
||||
warnings: quality?.warnings ?? [],
|
||||
stars: activity?.stars ?? null,
|
||||
pushedAt: activity?.pushedAt ?? null,
|
||||
});
|
||||
|
||||
try {
|
||||
const { execFileSync } = await import("node:child_process");
|
||||
const cmd =
|
||||
process.platform === "darwin"
|
||||
? "open"
|
||||
: process.platform === "win32"
|
||||
? "cmd"
|
||||
: "xdg-open";
|
||||
const args =
|
||||
process.platform === "win32"
|
||||
? ["/c", "start", "", issueUrl]
|
||||
: [issueUrl];
|
||||
execFileSync(cmd, args, { stdio: "ignore" });
|
||||
const result = execFileSync(
|
||||
"gh",
|
||||
[
|
||||
"issue",
|
||||
"create",
|
||||
"--repo",
|
||||
"rohitg00/skillkit",
|
||||
"--title",
|
||||
`[Publish] ${skillEntry.name}`,
|
||||
"--body",
|
||||
issueBody,
|
||||
"--label",
|
||||
"skill-submission,publish",
|
||||
],
|
||||
{
|
||||
encoding: "utf-8",
|
||||
stdio: ["pipe", "pipe", "pipe"],
|
||||
timeout: 15_000,
|
||||
},
|
||||
).trim();
|
||||
|
||||
success("GitHub issue page opened!");
|
||||
console.log(colors.muted("Review and submit the issue."));
|
||||
} catch {
|
||||
warn("Could not open browser automatically.");
|
||||
console.log(colors.muted("Please open this URL manually:\n"));
|
||||
console.log(colors.cyan(issueUrl));
|
||||
success("Submission created!");
|
||||
if (result) {
|
||||
console.log(colors.muted(` ${result}`));
|
||||
}
|
||||
} catch (err) {
|
||||
const message = err instanceof Error ? err.message : String(err);
|
||||
if (message.includes("not found") || message.includes("ENOENT")) {
|
||||
error("GitHub CLI (gh) is not installed");
|
||||
console.error(
|
||||
colors.muted("Install it from https://cli.github.com then run `gh auth login`"),
|
||||
);
|
||||
} else if (message.includes("auth") || message.includes("401")) {
|
||||
error("GitHub CLI is not authenticated");
|
||||
console.error(colors.muted("Run `gh auth login` first"));
|
||||
} else {
|
||||
error("Failed to create issue");
|
||||
console.error(colors.muted(message));
|
||||
}
|
||||
|
||||
console.log();
|
||||
warn("You can submit manually instead:");
|
||||
const manualUrl = `https://github.com/rohitg00/skillkit/issues/new?title=${encodeURIComponent(`[Publish] ${skillEntry.name}`)}&labels=skill-submission,publish`;
|
||||
console.log(colors.cyan(manualUrl));
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
@@ -601,13 +660,36 @@ export class PublishSubmitCommand extends Command {
|
||||
.join(" ");
|
||||
}
|
||||
|
||||
private createIssueBody(skill: {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
source: string;
|
||||
tags: string[];
|
||||
}): string {
|
||||
private createIssueBody(
|
||||
skill: {
|
||||
id: string;
|
||||
name: string;
|
||||
description: string;
|
||||
source: string;
|
||||
tags: string[];
|
||||
},
|
||||
meta: {
|
||||
qualityScore: number | null;
|
||||
qualityGrade: string | null;
|
||||
warnings: string[];
|
||||
stars: number | null;
|
||||
pushedAt: string | null;
|
||||
},
|
||||
): string {
|
||||
const qualityLine =
|
||||
meta.qualityScore !== null
|
||||
? `- **Quality:** ${meta.qualityGrade} (${meta.qualityScore}/100)`
|
||||
: "- **Quality:** N/A";
|
||||
const starsLine =
|
||||
typeof meta.stars === "number" ? `- **Stars:** ${formatCount(meta.stars)}` : "";
|
||||
const pushLine = meta.pushedAt
|
||||
? `- **Last push:** ${meta.pushedAt.slice(0, 10)}`
|
||||
: "";
|
||||
const warningLines =
|
||||
meta.warnings.length > 0
|
||||
? `\n### Warnings\n${meta.warnings.map((w) => `- ${w}`).join("\n")}`
|
||||
: "";
|
||||
|
||||
return `## Publish Skill Request
|
||||
|
||||
### Skill Details
|
||||
@@ -616,6 +698,10 @@ export class PublishSubmitCommand extends Command {
|
||||
- **Description:** ${skill.description}
|
||||
- **Source:** [${skill.source}](https://github.com/${skill.source})
|
||||
- **Tags:** ${skill.tags.map((t) => `\`${t}\``).join(", ")}
|
||||
${qualityLine}
|
||||
${starsLine}
|
||||
${pushLine}
|
||||
${warningLines}
|
||||
|
||||
### JSON Entry
|
||||
\`\`\`json
|
||||
|
||||
@@ -2,7 +2,7 @@ import { existsSync, rmSync, readFileSync, writeFileSync } from 'node:fs';
|
||||
import { join, dirname, basename } from 'node:path';
|
||||
import { colors, warn, success, error } from '../onboarding/index.js';
|
||||
import { Command, Option } from 'clipanion';
|
||||
import { findSkill, findAllSkills, loadMetadata, AgentsMdParser, AgentsMdGenerator } from '@skillkit/core';
|
||||
import { findSkill, findAllSkills, loadMetadata, AgentsMdParser, AgentsMdGenerator, removeSkillFromLock } from '@skillkit/core';
|
||||
import { getSearchDirs } from '../helpers.js';
|
||||
|
||||
export class RemoveCommand extends Command {
|
||||
@@ -88,6 +88,7 @@ export class RemoveCommand extends Command {
|
||||
const metaSibling = join(dirname(skillPath), `.${basename(skillPath, '.md')}.skillkit.json`);
|
||||
if (existsSync(metaSibling)) rmSync(metaSibling);
|
||||
}
|
||||
removeSkillFromLock(skillName);
|
||||
success(`Removed: ${skillName}`);
|
||||
removed++;
|
||||
} catch (err) {
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
import { Command, Option } from 'clipanion';
|
||||
import { colors, symbols, step, success, warn } from '../onboarding/index.js';
|
||||
import { loadTaps, saveTaps } from '../helpers.js';
|
||||
|
||||
export class TapAddCommand extends Command {
|
||||
static override paths = [['tap', 'add']];
|
||||
|
||||
static override usage = Command.Usage({
|
||||
description: 'Add a custom skill source (tap)',
|
||||
examples: [
|
||||
['Add a GitHub source', '$0 tap add myorg/skills'],
|
||||
['Add with a display name', '$0 tap add myorg/skills --name "My Org Skills"'],
|
||||
],
|
||||
});
|
||||
|
||||
source = Option.String({ required: true });
|
||||
|
||||
name = Option.String('--name,-n', {
|
||||
description: 'Display name for the tap',
|
||||
});
|
||||
|
||||
async execute(): Promise<number> {
|
||||
const taps = loadTaps();
|
||||
|
||||
const exists = taps.taps.some((t) => t.source === this.source);
|
||||
if (exists) {
|
||||
warn(`Tap already exists: ${this.source}`);
|
||||
return 0;
|
||||
}
|
||||
|
||||
taps.taps.push({
|
||||
source: this.source,
|
||||
name: this.name,
|
||||
addedAt: new Date().toISOString(),
|
||||
});
|
||||
saveTaps(taps);
|
||||
|
||||
success(`Added tap: ${this.source}${this.name ? ` (${this.name})` : ''}`);
|
||||
console.log(colors.muted('Skills from this source will appear in search results'));
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
export class TapRemoveCommand extends Command {
|
||||
static override paths = [['tap', 'remove'], ['tap', 'rm']];
|
||||
|
||||
static override usage = Command.Usage({
|
||||
description: 'Remove a custom skill source (tap)',
|
||||
examples: [
|
||||
['Remove a tap', '$0 tap remove myorg/skills'],
|
||||
],
|
||||
});
|
||||
|
||||
source = Option.String({ required: true });
|
||||
|
||||
async execute(): Promise<number> {
|
||||
const taps = loadTaps();
|
||||
|
||||
const idx = taps.taps.findIndex((t) => t.source === this.source);
|
||||
if (idx === -1) {
|
||||
warn(`Tap not found: ${this.source}`);
|
||||
return 0;
|
||||
}
|
||||
|
||||
taps.taps.splice(idx, 1);
|
||||
saveTaps(taps);
|
||||
|
||||
success(`Removed tap: ${this.source}`);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
export class TapListCommand extends Command {
|
||||
static override paths = [['tap', 'list'], ['tap', 'ls'], ['tap']];
|
||||
|
||||
static override usage = Command.Usage({
|
||||
description: 'List all custom skill sources (taps)',
|
||||
examples: [
|
||||
['List taps', '$0 tap list'],
|
||||
],
|
||||
});
|
||||
|
||||
async execute(): Promise<number> {
|
||||
const taps = loadTaps();
|
||||
|
||||
if (taps.taps.length === 0) {
|
||||
step('No custom taps configured');
|
||||
console.log(colors.muted('Add one with: skillkit tap add owner/repo'));
|
||||
return 0;
|
||||
}
|
||||
|
||||
step(`${taps.taps.length} tap(s) configured`);
|
||||
console.log('');
|
||||
|
||||
for (const tap of taps.taps) {
|
||||
const label = tap.name ? `${tap.name} (${tap.source})` : tap.source;
|
||||
console.log(` ${colors.success(symbols.bullet)} ${colors.primary(label)}`);
|
||||
if (tap.addedAt) {
|
||||
console.log(` ${colors.muted(`Added: ${tap.addedAt}`)}`);
|
||||
}
|
||||
}
|
||||
|
||||
console.log('');
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
import { existsSync, rmSync, cpSync } from 'node:fs';
|
||||
import { join } from 'node:path';
|
||||
import { Command, Option } from 'clipanion';
|
||||
import { findAllSkills, findSkill, detectProvider, isLocalPath } from '@skillkit/core';
|
||||
import { getSearchDirs, loadSkillMetadata, saveSkillMetadata } from '../helpers.js';
|
||||
import { findAllSkills, findSkill, detectProvider, isLocalPath, computeSkillChecksum, addSkillToLock } from '@skillkit/core';
|
||||
import { getSearchDirs, loadSkillMetadata, saveSkillMetadata, fetchGitHubActivity } from '../helpers.js';
|
||||
import { colors, spinner, warn, step } from '../onboarding/index.js';
|
||||
|
||||
export class UpdateCommand extends Command {
|
||||
@@ -86,8 +86,18 @@ export class UpdateCommand extends Command {
|
||||
rmSync(skill.path, { recursive: true, force: true });
|
||||
cpSync(localPath, skill.path, { recursive: true, dereference: true });
|
||||
|
||||
metadata.checksum = computeSkillChecksum(skill.path);
|
||||
metadata.updatedAt = new Date().toISOString();
|
||||
saveSkillMetadata(skill.path, metadata);
|
||||
addSkillToLock(skill.name, {
|
||||
source: metadata.source,
|
||||
sourceType: metadata.sourceType,
|
||||
installedAt: metadata.installedAt,
|
||||
updatedAt: metadata.updatedAt,
|
||||
checksum: metadata.checksum,
|
||||
agents: [],
|
||||
path: skill.path,
|
||||
});
|
||||
|
||||
s.stop(`Updated ${skill.name}`);
|
||||
updated++;
|
||||
@@ -100,6 +110,17 @@ export class UpdateCommand extends Command {
|
||||
continue;
|
||||
}
|
||||
|
||||
const parsed = provider.parseSource?.(metadata.source);
|
||||
if (!this.force && parsed && 'owner' in parsed && 'repo' in parsed && (provider.type === 'github' || provider.type === 'skills-sh')) {
|
||||
const activity = await fetchGitHubActivity(parsed.owner, parsed.repo);
|
||||
const localDate = metadata.updatedAt ?? metadata.installedAt;
|
||||
if (activity?.pushedAt && localDate && activity.pushedAt <= localDate) {
|
||||
s.stop(`${skill.name}: no changes detected`);
|
||||
skipped++;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
const result = await provider.clone(metadata.source, '', { depth: 1 });
|
||||
|
||||
if (!result.success || !result.path) {
|
||||
@@ -120,13 +141,31 @@ export class UpdateCommand extends Command {
|
||||
continue;
|
||||
}
|
||||
|
||||
const newChecksum = computeSkillChecksum(sourcePath);
|
||||
if (!this.force && newChecksum && metadata.checksum && newChecksum === metadata.checksum) {
|
||||
s.stop(`${skill.name}: already up to date`);
|
||||
rmSync(result.path, { recursive: true, force: true });
|
||||
skipped++;
|
||||
continue;
|
||||
}
|
||||
|
||||
rmSync(skill.path, { recursive: true, force: true });
|
||||
cpSync(sourcePath, skill.path, { recursive: true, dereference: true });
|
||||
|
||||
rmSync(result.path, { recursive: true, force: true });
|
||||
|
||||
metadata.checksum = computeSkillChecksum(skill.path);
|
||||
metadata.updatedAt = new Date().toISOString();
|
||||
saveSkillMetadata(skill.path, metadata);
|
||||
addSkillToLock(skill.name, {
|
||||
source: metadata.source,
|
||||
sourceType: metadata.sourceType,
|
||||
installedAt: metadata.installedAt,
|
||||
updatedAt: metadata.updatedAt,
|
||||
checksum: metadata.checksum,
|
||||
agents: [],
|
||||
path: skill.path,
|
||||
});
|
||||
|
||||
s.stop(`Updated ${skill.name}`);
|
||||
updated++;
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
import { existsSync, readFileSync, writeFileSync, mkdirSync } from 'node:fs';
|
||||
import { join, dirname } from 'node:path';
|
||||
import { homedir } from 'node:os';
|
||||
import {
|
||||
loadConfig,
|
||||
getSearchDirs as coreGetSearchDirs,
|
||||
@@ -48,3 +51,67 @@ export function formatCount(count: number): string {
|
||||
if (count >= 1_000) return `${(count / 1_000).toFixed(1)}K`;
|
||||
return String(count);
|
||||
}
|
||||
|
||||
export function timeAgo(dateStr: string): string {
|
||||
const now = Date.now();
|
||||
const then = new Date(dateStr).getTime();
|
||||
if (Number.isNaN(then)) return 'unknown';
|
||||
const days = Math.floor((now - then) / 86_400_000);
|
||||
if (days === 0) return 'today';
|
||||
if (days === 1) return 'yesterday';
|
||||
if (days < 30) return `${days}d ago`;
|
||||
if (days < 365) return `${Math.floor(days / 30)}mo ago`;
|
||||
return `${Math.floor(days / 365)}y ago`;
|
||||
}
|
||||
|
||||
export interface TapEntry {
|
||||
source: string;
|
||||
name?: string;
|
||||
addedAt: string;
|
||||
}
|
||||
|
||||
export interface TapsFile {
|
||||
version: 1;
|
||||
taps: TapEntry[];
|
||||
}
|
||||
|
||||
const TAPS_FILE = join(homedir(), '.skillkit', 'taps.json');
|
||||
|
||||
export function loadTaps(): TapsFile {
|
||||
if (!existsSync(TAPS_FILE)) return { version: 1, taps: [] };
|
||||
try {
|
||||
const data = JSON.parse(readFileSync(TAPS_FILE, 'utf-8'));
|
||||
if (data && data.version === 1 && Array.isArray(data.taps)) {
|
||||
return data as TapsFile;
|
||||
}
|
||||
return { version: 1, taps: [] };
|
||||
} catch {
|
||||
return { version: 1, taps: [] };
|
||||
}
|
||||
}
|
||||
|
||||
export function saveTaps(taps: TapsFile): void {
|
||||
const dir = dirname(TAPS_FILE);
|
||||
if (!existsSync(dir)) mkdirSync(dir, { recursive: true });
|
||||
writeFileSync(TAPS_FILE, JSON.stringify(taps, null, 2), 'utf-8');
|
||||
}
|
||||
|
||||
export async function fetchGitHubActivity(
|
||||
owner: string,
|
||||
repo: string,
|
||||
): Promise<{ stars: number; pushedAt: string | null } | null> {
|
||||
try {
|
||||
const response = await fetch(
|
||||
`https://api.github.com/repos/${owner}/${repo}`,
|
||||
{ signal: AbortSignal.timeout(5000) },
|
||||
);
|
||||
if (!response.ok) return null;
|
||||
const data = (await response.json()) as Record<string, unknown>;
|
||||
return {
|
||||
stars: typeof data.stargazers_count === 'number' ? data.stargazers_count : 0,
|
||||
pushedAt: typeof data.pushed_at === 'string' ? data.pushed_at : null,
|
||||
};
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ export {
|
||||
formatQualityBadge,
|
||||
formatQualityBadgeCompact,
|
||||
getQualityGradeFromScore,
|
||||
formatTrustBadge,
|
||||
} from './theme.js';
|
||||
|
||||
export {
|
||||
|
||||
@@ -178,3 +178,25 @@ export function formatQualityBadgeCompact(score: number): string {
|
||||
if (score >= 60) return colors.warning(grade);
|
||||
return colors.error(grade);
|
||||
}
|
||||
|
||||
export function formatTrustBadge(options: {
|
||||
isOfficial: boolean;
|
||||
officialSource?: string;
|
||||
grade?: 'trusted' | 'review' | 'caution';
|
||||
score?: number;
|
||||
source?: string;
|
||||
}): string {
|
||||
if (options.isOfficial) {
|
||||
const label = options.officialSource || options.source || '';
|
||||
return `${colors.success('[Official]')} ${label}`;
|
||||
}
|
||||
const label = options.source || '';
|
||||
const scoreText = typeof options.score === 'number' ? ` (score: ${options.score}/10)` : '';
|
||||
if (options.grade === 'trusted') {
|
||||
return `${colors.success('[Trusted]')} ${label}${scoreText}`;
|
||||
}
|
||||
if (options.grade === 'caution') {
|
||||
return `${colors.error('[Caution]')} ${label}${scoreText}`;
|
||||
}
|
||||
return `${colors.warning('[Review]')} ${label}${scoreText}`;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ npm install @skillkit/core
|
||||
## Key Features
|
||||
|
||||
- **Skill Discovery**: Find and parse SKILL.md files from any source
|
||||
- **Cross-Agent Translation**: Convert skills between 44 agent formats (Claude Code, Cursor, Windsurf, etc.)
|
||||
- **Cross-Agent Translation**: Convert skills between 45 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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@skillkit/core",
|
||||
"version": "1.19.2",
|
||||
"version": "1.21.0",
|
||||
"description": "Core functionality for SkillKit - skill discovery, parsing, and translation",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import { existsSync, readFileSync, writeFileSync, mkdirSync, statSync } from 'node:fs';
|
||||
import { existsSync, readFileSync, writeFileSync, mkdirSync, statSync, renameSync } from 'node:fs';
|
||||
import { join, dirname, basename } from 'node:path';
|
||||
import { homedir } from 'node:os';
|
||||
import { createHash } from 'node:crypto';
|
||||
import { parse as parseYaml, stringify as stringifyYaml } from 'yaml';
|
||||
import { SkillkitConfig, type AgentType, type SkillMetadata, type AgentAdapterInfo } from './types.js';
|
||||
import { SkillkitConfig, LockFile, type AgentType, type SkillMetadata, type AgentAdapterInfo, type LockEntry } from './types.js';
|
||||
|
||||
const CONFIG_FILE = 'skillkit.yaml';
|
||||
const METADATA_FILE = '.skillkit.json';
|
||||
@@ -150,6 +151,58 @@ export function setSkillEnabled(skillPath: string, enabled: boolean): boolean {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function computeSkillChecksum(skillPath: string): string {
|
||||
const mdPath = skillPath.endsWith('.md') ? skillPath : join(skillPath, 'SKILL.md');
|
||||
if (!existsSync(mdPath)) return '';
|
||||
return createHash('sha256').update(readFileSync(mdPath)).digest('hex').slice(0, 16);
|
||||
}
|
||||
|
||||
const LOCK_FILE = join(homedir(), '.skillkit', 'lock.json');
|
||||
|
||||
export function loadLockFile(): LockFile {
|
||||
if (!existsSync(LOCK_FILE)) return { version: 1, skills: {} };
|
||||
try {
|
||||
return LockFile.parse(JSON.parse(readFileSync(LOCK_FILE, 'utf-8')));
|
||||
} catch {
|
||||
return { version: 1, skills: {} };
|
||||
}
|
||||
}
|
||||
|
||||
export function saveLockFile(lock: LockFile): void {
|
||||
const dir = dirname(LOCK_FILE);
|
||||
if (!existsSync(dir)) mkdirSync(dir, { recursive: true });
|
||||
const tmpFile = `${LOCK_FILE}.${process.pid}.tmp`;
|
||||
writeFileSync(tmpFile, JSON.stringify(lock, null, 2), 'utf-8');
|
||||
renameSync(tmpFile, LOCK_FILE);
|
||||
}
|
||||
|
||||
export function addSkillToLock(name: string, entry: LockEntry): void {
|
||||
const lock = loadLockFile();
|
||||
const key = `${entry.source}:${name}`;
|
||||
const existing = lock.skills[key];
|
||||
if (existing) {
|
||||
const mergedAgents = [...new Set([...existing.agents, ...entry.agents])];
|
||||
lock.skills[key] = { ...entry, agents: mergedAgents };
|
||||
} else {
|
||||
lock.skills[key] = entry;
|
||||
}
|
||||
saveLockFile(lock);
|
||||
}
|
||||
|
||||
export function removeSkillFromLock(name: string, source?: string): void {
|
||||
const lock = loadLockFile();
|
||||
if (source) {
|
||||
delete lock.skills[`${source}:${name}`];
|
||||
} else {
|
||||
for (const key of Object.keys(lock.skills)) {
|
||||
if (key === name || key.endsWith(`:${name}`)) {
|
||||
delete lock.skills[key];
|
||||
}
|
||||
}
|
||||
}
|
||||
saveLockFile(lock);
|
||||
}
|
||||
|
||||
export async function initProject(
|
||||
type: AgentType,
|
||||
adapter: AgentAdapterInfo
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* - Plan approval workflow
|
||||
* - Review stages (spec-compliance, code-quality)
|
||||
* - Inter-agent messaging (direct + broadcast)
|
||||
* - Universal agent support (44 agents)
|
||||
* - Universal agent support (45 agents)
|
||||
*/
|
||||
|
||||
// Team Orchestrator
|
||||
|
||||
@@ -329,7 +329,7 @@ Follow these guidelines`;
|
||||
});
|
||||
|
||||
describe('supported agents', () => {
|
||||
it('should support all 44 agents', () => {
|
||||
it('should support all 45 agents', () => {
|
||||
const allAgents = [
|
||||
'claude-code',
|
||||
'cursor',
|
||||
|
||||
@@ -94,6 +94,23 @@ export const SkillMetadata = z.object({
|
||||
});
|
||||
export type SkillMetadata = z.infer<typeof SkillMetadata>;
|
||||
|
||||
export const LockEntry = z.object({
|
||||
source: z.string(),
|
||||
sourceType: GitProvider,
|
||||
installedAt: z.string().datetime(),
|
||||
updatedAt: z.string().datetime().optional(),
|
||||
checksum: z.string().optional(),
|
||||
agents: z.array(z.string()),
|
||||
path: z.string(),
|
||||
});
|
||||
export type LockEntry = z.infer<typeof LockEntry>;
|
||||
|
||||
export const LockFile = z.object({
|
||||
version: z.literal(1),
|
||||
skills: z.record(z.string(), LockEntry),
|
||||
});
|
||||
export type LockFile = z.infer<typeof LockFile>;
|
||||
|
||||
export const SkillLocation = z.enum(["project", "global"]);
|
||||
export type SkillLocation = z.infer<typeof SkillLocation>;
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 220 KiB |
@@ -23,7 +23,7 @@ Then in Chrome:
|
||||
|
||||
Skills download to `Downloads/skillkit-skills/{name}/SKILL.md`.
|
||||
|
||||
To make available to all 44 agents:
|
||||
To make available to all 45 agents:
|
||||
|
||||
```bash
|
||||
skillkit install ~/Downloads/skillkit-skills/my-skill
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -2,7 +2,7 @@
|
||||
"manifest_version": 3,
|
||||
"name": "SkillKit - Save as Skill",
|
||||
"version": "1.20.0",
|
||||
"description": "Save any webpage as an AI agent skill — instantly available across 44 agents",
|
||||
"description": "Save any webpage as an AI agent skill — instantly available across 45 agents",
|
||||
"permissions": ["contextMenus", "activeTab", "downloads", "scripting"],
|
||||
"background": {
|
||||
"service_worker": "background.global.js"
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
SkillKit - Save as Skill
|
||||
|
||||
## Summary (132 chars max)
|
||||
Save any webpage as an AI agent skill file. One click, works across 44 coding agents.
|
||||
Save any webpage as an AI agent skill file. One click, works across 45 coding agents.
|
||||
|
||||
## Description
|
||||
SkillKit lets you save any webpage as a reusable AI agent skill with one click. The extension extracts page content directly in your browser and generates a SKILL.md file that works instantly across 44 coding agents including Claude Code, Cursor, Codex, Gemini CLI, Windsurf, and more.
|
||||
SkillKit lets you save any webpage as a reusable AI agent skill with one click. The extension extracts page content directly in your browser and generates a SKILL.md file that works instantly across 45 coding agents including Claude Code, Cursor, Codex, Gemini CLI, Windsurf, and more.
|
||||
|
||||
How it works:
|
||||
- Click the extension icon to save the current page as a skill
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@skillkit/mcp-memory",
|
||||
"version": "1.19.2",
|
||||
"version": "1.21.0",
|
||||
"description": "MCP (Model Context Protocol) server for SkillKit persistent memory",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@skillkit/mcp",
|
||||
"version": "1.19.2",
|
||||
"version": "1.21.0",
|
||||
"description": "MCP server for SkillKit skill discovery — agent-native skill search",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@skillkit/memory",
|
||||
"version": "1.19.2",
|
||||
"version": "1.21.0",
|
||||
"description": "CozoDB-backed semantic memory with embeddings for SkillKit",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@skillkit/mesh",
|
||||
"version": "1.19.2",
|
||||
"version": "1.21.0",
|
||||
"description": "Peer mesh network for multi-machine agent distribution",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@skillkit/messaging",
|
||||
"version": "1.19.2",
|
||||
"version": "1.21.0",
|
||||
"description": "Inter-agent messaging system for SkillKit",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@skillkit/resources",
|
||||
"version": "1.19.2",
|
||||
"version": "1.21.0",
|
||||
"description": "Bundled resources for SkillKit - agents, commands, profiles, guidelines, and hooks",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
@@ -34,7 +34,7 @@ pnpm ui
|
||||
- **Animated UI** - Smooth entrance animations and transitions
|
||||
- **Browse Skills** - Explore skill repositories with search and filtering
|
||||
- **Smart Recommendations** - AI-powered skill suggestions with match scores
|
||||
- **Cross-Agent Translation** - Convert skills between 44 agent formats
|
||||
- **Cross-Agent Translation** - Convert skills between 45 agent formats
|
||||
- **Team Collaboration** - Share and sync skills across teams
|
||||
- **Responsive Design** - Adapts to any terminal size
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@skillkit/tui",
|
||||
"version": "1.19.2",
|
||||
"version": "1.21.0",
|
||||
"description": "Unified Terminal UI for SkillKit - Built on OpenTUI",
|
||||
"type": "module",
|
||||
"main": "./dist/index.js",
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"version": 1,
|
||||
"skills": {
|
||||
"code-review-expert": {
|
||||
"source": "sanyuan0704/code-review-expert",
|
||||
"sourceType": "github",
|
||||
"computedHash": "11d1a39f1d3be326fcced613c97f300cb98cd36c928dbbf5dcbf66edf4642fcd"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user