Compare commits

..
Author SHA1 Message Date
Rohit Ghumare 2b63b37ee6 fix: address CodeRabbit and Devin review findings for skills.sh integration
- Fix path traversal vulnerability in SkillsShProvider.clone (validate subpath containment)
- Fix federated search skipped for interactive queries (use searchTerm instead of this.query)
- Guard showSkillsShStats to skip network call for local providers
- Replace deprecated npm --production with --omit=dev
- Fix loose includes() match in getSkillStats to use strict endsWith()
- Fix FederatedSearch resilience: don't re-throw RateLimitError, return partial results
- Forward timeoutMs through FederatedSearch to registries
- Extract shared formatCount utility to helpers.ts (deduplicate find.ts/install.ts)
- Fix install hint to use skill.source instead of fragile skill.description
- Fix timer leak in fetchLeaderboard using finally block
- Deduplicate URL parsing via shared parseSkillsShParts helper
- Validate --agent flag values against known agent types
2026-02-22 21:38:39 +05:30
Rohit Ghumare 57b29014ec feat: integrate skills.sh as first-class registry
Add SkillsShRegistry and SkillsShProvider so users can install skills
directly from skills.sh (e.g. `skillkit install skills.sh/owner/repo/skill`).
The find command now searches skills.sh by default alongside the local
marketplace. Post-install shows skills.sh popularity stats and pro tips
highlighting skillkit's unique features (translate, recommend, evaluate).
2026-02-22 21:38:39 +05:30
Rohit Ghumare 39b94534ec chore: release v1.19.2 2026-02-20 00:16:28 +05:30
Rohit Ghumare aeb2b05f15 fix: update composioHQ repo name from awesome-claude-code-skills to awesome-claude-skills (#73)
Closes #72
2026-02-17 19:28:39 +00:00
Rohit Ghumare 5991fead9b fix: compact Features grid — 3 cols mobile, 4 cols desktop 2026-02-14 16:08:19 +05:30
Rohit Ghumare 1d3a779c2e fix: show Docs link on mobile nav (#71)
* chore: migrate domain from agenstskills.com to skillkit.sh

Update all OG/Twitter meta tags, API endpoints, docs links, badge
URLs, privacy policy, extension store listing, and README references
to use skillkit.sh. Both skillkit.sh and agenstskills.com are treated
as equal domains — privacy policy, store listing, and docs reference
both.

* perf: skip Vercel builds when docs unchanged

Add ignoreCommand to both docs/skillkit and docs/fumadocs vercel.json.
Vercel will skip rebuilds when the respective docs folder has no
changes, saving ~1h+ of build minutes per billing cycle.
2026-02-14 10:31:26 +00:00
Rohit Ghumare 2fe4702bd6 chore: migrate domain to skillkit.sh (#70)
* chore: migrate domain from agenstskills.com to skillkit.sh

Update all OG/Twitter meta tags, API endpoints, docs links, badge
URLs, privacy policy, extension store listing, and README references
to use skillkit.sh. Both skillkit.sh and agenstskills.com are treated
as equal domains — privacy policy, store listing, and docs reference
both.

* perf: skip Vercel builds when docs unchanged

Add ignoreCommand to both docs/skillkit and docs/fumadocs vercel.json.
Vercel will skip rebuilds when the respective docs folder has no
changes, saving ~1h+ of build minutes per billing cycle.
2026-02-14 10:24:08 +00:00
54 changed files with 1042 additions and 410 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ assignees: rohitg00
- [ ] Repository is public
- [ ] Repository contains valid SKILL.md files
- [ ] Repository has a clear license
- [ ] Skills follow the [Agent Skills specification](https://agenstskills.com)
- [ ] Skills follow the [Agent Skills specification](https://skillkit.sh)
## Additional Context
+1 -1
View File
@@ -83,7 +83,7 @@ body:
options:
- label: Repository is public
required: true
- label: SKILL.md follows the agenstskills.com standard format
- label: SKILL.md follows the skillkit.sh standard format
required: true
- label: Skill has been tested with at least one AI agent
required: false
+1 -1
View File
@@ -206,7 +206,7 @@ To add support for a new AI coding agent:
If you want to contribute skills to the ecosystem:
1. Follow the [Agent Skills specification](https://agenstskills.com)
1. Follow the [Agent Skills specification](https://skillkit.sh)
2. Include a `SKILL.md` with proper frontmatter
3. Test with multiple agents using `skillkit translate`
4. Submit to the appropriate skill repository
+6 -6
View File
@@ -17,7 +17,7 @@
**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. 15,000+ skills in the marketplace.
[Website](https://agenstskills.com) · [Docs](https://agenstskills.com/docs) · [API Explorer](https://agenstskills.com/api) · [Chrome Extension](https://github.com/rohitg00/skillkit/tree/main/packages/extension#readme) · [npm](https://www.npmjs.com/package/skillkit)
[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>
@@ -125,7 +125,7 @@ async with SkillKitClient() as client:
results = await client.search("react performance", limit=5)
```
[REST API docs](https://agenstskills.com/docs/rest-api) &middot; [MCP Server docs](https://agenstskills.com/docs/mcp-server) &middot; [Python Client docs](https://agenstskills.com/docs/python-client) &middot; [Interactive API explorer](https://agenstskills.com/api)
[REST API docs](https://skillkit.sh/docs/rest-api) &middot; [MCP Server docs](https://skillkit.sh/docs/mcp-server) &middot; [Python Client docs](https://skillkit.sh/docs/python-client) &middot; [Interactive API explorer](https://skillkit.sh/api)
### Auto-generate agent instructions
@@ -191,7 +191,7 @@ Save any webpage as a skill directly from your browser.
The extension sends the page URL to the SkillKit API for server-side extraction with Turndown, 5-source weighted tag detection, and GitHub URL support. The resulting SKILL.md downloads automatically. Then run `skillkit install ~/Downloads/skillkit-skills/my-skill` to deploy to all agents.
[Extension docs](https://agenstskills.com/docs/chrome-extension)
[Extension docs](https://skillkit.sh/docs/chrome-extension)
### Interactive TUI
@@ -221,7 +221,7 @@ skillkit ui
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
[Full agent details](https://agenstskills.com/docs/agents)
[Full agent details](https://skillkit.sh/docs/agents)
## Commands
@@ -276,7 +276,7 @@ skillkit test # Test skills
skillkit cicd init # CI/CD templates
```
[Full command reference](https://agenstskills.com/docs/commands)
[Full command reference](https://skillkit.sh/docs/commands)
## Creating Skills
@@ -367,4 +367,4 @@ Apache License 2.0 — see [LICENSE](LICENSE).
## Links
[Documentation](https://agenstskills.com/docs) &middot; [Website](https://agenstskills.com) &middot; [API Explorer](https://agenstskills.com/api) &middot; [npm](https://www.npmjs.com/package/skillkit) &middot; [GitHub](https://github.com/rohitg00/skillkit)
[Documentation](https://skillkit.sh/docs) &middot; [Website](https://skillkit.sh) &middot; [API Explorer](https://skillkit.sh/api) &middot; [npm](https://www.npmjs.com/package/skillkit) &middot; [GitHub](https://github.com/rohitg00/skillkit)
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "skillkit",
"version": "1.19.1",
"version": "1.19.2",
"description": "Supercharge AI coding agents with portable skills. Install, translate, and share skills across Claude Code, Cursor, Codex, Copilot & 13 more",
"type": "module",
"bin": {
+1 -1
View File
@@ -38,5 +38,5 @@ dev = [
[project.urls]
Homepage = "https://github.com/rohitg00/skillkit"
Documentation = "https://agenstskills.com"
Documentation = "https://skillkit.sh"
Repository = "https://github.com/rohitg00/skillkit"
@@ -65,7 +65,7 @@ Extension → POST /api/save-skill { url } → Server pipeline → Download
1. **Popup** reads the current tab's URL and title via `activeTab` permission. No content script injection needed.
2. **Background service worker** sends the URL to `agenstskills.com/api/save-skill`:
2. **Background service worker** sends the URL to `skillkit.sh/api/save-skill` (or `agenstskills.com/api/save-skill`):
- Server fetches the page and converts HTML to markdown via Turndown
- GitHub URLs are auto-converted to raw content
- Tags are detected from 5 weighted sources (URL segments, headings, code blocks, keywords, language)
+1 -1
View File
@@ -188,7 +188,7 @@ const { app, cache } = createApp({
The server includes built-in Swagger UI at `/docs` and an OpenAPI 3.1 spec at `/openapi.json`. Open `http://localhost:3737/docs` in your browser to try endpoints interactively.
The hosted version is available at [agenstskills.com/api](https://agenstskills.com/api).
The hosted version is available at [skillkit.sh/api](https://skillkit.sh/api) and [agenstskills.com/api](https://agenstskills.com/api).
## All endpoints
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "skillkit-docs",
"version": "1.19.1",
"version": "1.19.2",
"private": true,
"scripts": {
"build": "next build",
+1 -1
View File
@@ -24,7 +24,7 @@ export const metadata: Metadata = {
openGraph: {
title: 'SkillKit - Universal Skills for AI Coding Agents',
description: 'One CLI to install, sync, and manage skills across Claude Code, Cursor, Windsurf, Copilot, and 28 more agents.',
url: 'https://agenstskills.com',
url: 'https://skillkit.sh',
siteName: 'SkillKit',
images: [{ url: '/og-image.png', width: 1200, height: 630 }],
type: 'website',
+1 -1
View File
@@ -18,7 +18,7 @@ export function Footer(): React.ReactElement {
</p>
<span className="hidden sm:inline text-zinc-700">•</span>
<a
href="https://agenstskills.com"
href="https://skillkit.sh"
target="_blank"
rel="noopener noreferrer"
className="text-zinc-600 hover:text-zinc-400 text-xs font-mono transition-colors"
+1
View File
@@ -1,5 +1,6 @@
{
"$schema": "https://openapi.vercel.sh/vercel.json",
"ignoreCommand": "git diff --quiet HEAD^ HEAD -- .",
"buildCommand": "next build",
"installCommand": "npm install",
"outputDirectory": ".next",
+23 -25
View File
@@ -80,16 +80,14 @@ export default function App(): React.ReactElement {
>
Generator
</a>
</div>
<div className="flex items-center gap-3 sm:gap-4">
<a
href="https://agenstskills.com/docs"
target="_blank"
rel="noopener noreferrer"
className="text-zinc-500 hover:text-white transition-colors"
href="/docs"
className="text-zinc-400 hover:text-white transition-colors text-xs sm:text-sm font-mono"
>
Docs
</a>
</div>
<div className="flex items-center gap-3 sm:gap-4">
<a
href="/api"
className="text-zinc-400 hover:text-white transition-colors text-xs sm:text-sm font-mono"
@@ -163,6 +161,24 @@ export default function App(): React.ReactElement {
{/* Core Features & Comparison - Value prop at a glance */}
<Features />
{/* Skill Generator */}
<section id="skills" className="py-12 border-b border-zinc-800" style={{ scrollMarginTop: '4rem' }}>
<SkillGenerator />
</section>
{/* Submit Skill */}
<section id="submit" className="py-12 border-b border-zinc-800" style={{ backgroundColor: '#09090b', scrollMarginTop: '4rem' }}>
<div className="mx-auto max-w-5xl px-4 sm:px-6 lg:px-8">
<div className="text-center mb-8">
<h2 className="text-2xl font-bold text-white mb-2 font-mono">Submit Your Skill</h2>
<p className="text-zinc-400 font-mono text-sm">
Share your AI agent skills with the community.
</p>
</div>
<SkillSubmitForm />
</div>
</section>
{/* Trending Skills - Social proof, what's popular */}
<section id="trending" style={{ scrollMarginTop: '4rem' }}>
<TrendingSkills />
@@ -184,7 +200,7 @@ export default function App(): React.ReactElement {
<p className="text-sm font-mono text-zinc-400">
Explore all 50+ commands, team workflows, and integrations in the{' '}
<a
href="https://agenstskills.com/docs"
href="/docs"
target="_blank"
rel="noopener noreferrer"
className="text-white underline underline-offset-4 hover:text-zinc-300 transition-colors"
@@ -200,24 +216,6 @@ export default function App(): React.ReactElement {
<section id="use-cases" style={{ scrollMarginTop: '4rem' }}>
<UseCases />
</section>
{/* Skill Generator */}
<section id="skills" className="py-12 border-b border-zinc-800" style={{ scrollMarginTop: '4rem' }}>
<SkillGenerator />
</section>
{/* Submit Skill */}
<section id="submit" className="py-12 border-b border-zinc-800" style={{ backgroundColor: '#09090b', scrollMarginTop: '4rem' }}>
<div className="mx-auto max-w-5xl px-4 sm:px-6 lg:px-8">
<div className="text-center mb-8">
<h2 className="text-2xl font-bold text-white mb-2 font-mono">Submit Your Skill</h2>
<p className="text-zinc-400 font-mono text-sm">
Share your AI agent skills with the community.
</p>
</div>
<SkillSubmitForm />
</div>
</section>
{/* Attribution & Sources */}
<section id="sources" style={{ scrollMarginTop: '4rem' }}>
+2 -2
View File
@@ -35,8 +35,8 @@ export function BadgeGenerator(): React.ReactElement {
const badgeUrl = useMemo(() => buildBadgeUrl(skills), [skills]);
const markdown = `[![SkillKit Stack](${badgeUrl})](https://agenstskills.com)`;
const html = `<a href="https://agenstskills.com"><img src="${badgeUrl}" alt="SkillKit Stack" /></a>`;
const markdown = `[![SkillKit Stack](${badgeUrl})](https://skillkit.sh)`;
const html = `<a href="https://skillkit.sh"><img src="${badgeUrl}" alt="SkillKit Stack" /></a>`;
function addSkill(skill: string): void {
const trimmed = skill.trim().toLowerCase();
+7 -7
View File
@@ -121,9 +121,9 @@ const COMPARISONS = [
export function Features(): React.ReactElement {
return (
<section id="features" className="py-12 border-b border-zinc-800 bg-surface">
<section id="features" className="py-8 border-b border-zinc-800 bg-surface">
<div className="mx-auto max-w-5xl px-4 sm:px-6 lg:px-8">
<div className="grid grid-cols-1 lg:grid-cols-5 gap-6 lg:gap-8 mb-10">
<div className="grid grid-cols-1 lg:grid-cols-5 gap-6 lg:gap-8 mb-6">
<div className="lg:col-span-2">
<h2 className="text-xl font-bold text-white mb-2 font-mono">At a Glance</h2>
<p className="text-zinc-500 font-mono text-sm mb-6">
@@ -167,20 +167,20 @@ export function Features(): React.ReactElement {
</div>
</div>
<div className="grid grid-cols-2 sm:grid-cols-3 gap-3">
<div className="grid grid-cols-3 sm:grid-cols-4 gap-2">
{FEATURES.map((feature, index) => (
<div
key={feature.title}
className="group relative p-4 border border-zinc-800 bg-zinc-900/30 hover:bg-zinc-900/80 hover:border-zinc-700 transition-all duration-300 cursor-default"
className="group relative p-2.5 border border-zinc-800 bg-zinc-900/30 hover:bg-zinc-900/80 hover:border-zinc-700 transition-all duration-300 cursor-default"
style={{ animationDelay: `${index * 50}ms` }}
>
<div className="absolute inset-0 bg-gradient-to-b from-zinc-800/0 to-zinc-800/20 opacity-0 group-hover:opacity-100 transition-opacity"></div>
<div className="relative">
<div className="text-zinc-500 group-hover:text-white transition-colors mb-2">
<div className="text-zinc-500 group-hover:text-white transition-colors mb-1">
{feature.icon}
</div>
<h4 className="text-xs font-bold text-white mb-1 font-mono">{feature.title}</h4>
<p className="text-zinc-600 text-[10px] leading-relaxed font-mono group-hover:text-zinc-400 transition-colors">
<h4 className="text-[11px] font-bold text-white mb-0.5 font-mono">{feature.title}</h4>
<p className="text-zinc-600 text-[10px] leading-snug font-mono group-hover:text-zinc-400 transition-colors">
{feature.description}
</p>
</div>
+1 -1
View File
@@ -18,7 +18,7 @@ export function Footer(): React.ReactElement {
</p>
<span className="hidden sm:inline text-zinc-700">•</span>
<a
href="https://agenstskills.com"
href="https://skillkit.sh"
target="_blank"
rel="noopener noreferrer"
className="text-zinc-600 hover:text-zinc-400 text-xs font-mono transition-colors"
+2 -2
View File
@@ -92,7 +92,7 @@ export function TeamEnterprise(): React.ReactElement {
</p>
</div>
<a
href="https://agenstskills.com/docs/api-reference"
href="https://skillkit.sh/docs/api-reference"
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-2 px-3 sm:px-4 py-2 bg-zinc-800 text-white font-mono text-xs sm:text-sm hover:bg-zinc-700 transition-colors border border-zinc-700 whitespace-nowrap"
@@ -108,7 +108,7 @@ export function TeamEnterprise(): React.ReactElement {
{/* Bottom CTA */}
<div className="mt-6 sm:mt-8 text-center">
<a
href="https://agenstskills.com/docs"
href="https://skillkit.sh/docs"
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-2 px-4 sm:px-6 py-2.5 sm:py-3 bg-white text-black font-mono text-xs sm:text-sm hover:bg-zinc-200 transition-colors cursor-pointer"
+4 -4
View File
@@ -8,20 +8,20 @@
<!-- Open Graph -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://agenstskills.com/">
<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:image" content="https://agenstskills.com/og-image.png">
<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">
<meta property="og:site_name" content="SkillKit">
<!-- Twitter -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="https://agenstskills.com/">
<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:image" content="https://agenstskills.com/og-image.png">
<meta name="twitter:image" content="https://skillkit.sh/og-image.png">
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32.png" />
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "skillkit",
"private": true,
"version": "1.19.1",
"version": "1.19.2",
"type": "module",
"scripts": {
"dev": "vite",
+3 -3
View File
@@ -32,7 +32,7 @@
<h2>Chrome Extension — "SkillKit - Save as Skill"</h2>
<p>The Chrome extension helps you save webpages as AI agent skill files.</p>
<ul>
<li><strong>What data is sent:</strong> When you click "Save as Skill", the extension sends the URL of the current page to our server at <code>agenstskills.com/api/save-skill</code>. This is required to fetch and convert the webpage content into a skill file.</li>
<li><strong>What data is sent:</strong> When you click "Save as Skill", the extension sends the URL of the current page to our server at <code>https://skillkit.sh/api/save-skill</code>. This is required to fetch and convert the webpage content into a skill file.</li>
<li><strong>What data is NOT sent:</strong> We do not send page content, browsing history, personal information, cookies, authentication tokens, or any data beyond the single URL you choose to save.</li>
<li><strong>No data stored on server:</strong> The URL is processed in real time to extract content, generate tags, and build the skill file. No URLs, page content, or user data are stored, logged, or retained on the server after the response is returned.</li>
<li><strong>Selection saves are local:</strong> When you save selected text via the right-click menu, the skill file is built entirely in the browser with no network requests.</li>
@@ -55,10 +55,10 @@
<p>The SkillKit MCP server runs locally and provides skill discovery over the Model Context Protocol. It loads skill data from a bundled JSON file and does not make external network requests or collect user data.</p>
<h2>Website</h2>
<p>The SkillKit website (<a href="https://agenstskills.com">agenstskills.com</a>) is a static site hosted on Vercel. We do not use cookies, analytics trackers, or collect personal information. Vercel may collect standard web server logs (IP address, user agent) as described in their <a href="https://vercel.com/legal/privacy-policy">privacy policy</a>.</p>
<p>The SkillKit website is available at <a href="https://skillkit.sh">skillkit.sh</a> and <a href="https://agenstskills.com">agenstskills.com</a>. It is a static site hosted on Vercel. We do not use cookies, analytics trackers, or collect personal information. Vercel may collect standard web server logs (IP address, user agent) as described in their <a href="https://vercel.com/legal/privacy-policy">privacy policy</a>.</p>
<h2>Third-Party Services</h2>
<p>The Chrome extension communicates with <code>agenstskills.com</code> (our own server, hosted on Vercel) to process webpage URLs. No third-party data processors, advertising networks, or analytics services are used.</p>
<p>The Chrome extension communicates with <code>skillkit.sh</code> and <code>agenstskills.com</code> (both our own servers, hosted on Vercel) to process webpage URLs. No third-party data processors, advertising networks, or analytics services are used.</p>
<h2>Data Retention</h2>
<p>We do not retain any user data. URLs sent to the API are processed in memory and discarded immediately after the response.</p>
+1
View File
@@ -1,4 +1,5 @@
{
"ignoreCommand": "git diff --quiet HEAD^ HEAD -- .",
"buildCommand": "npm run build",
"outputDirectory": "dist",
"installCommand": "npm install",
+6 -6
View File
@@ -536,28 +536,28 @@
]
},
{
"id": "composioHQ/awesome-claude-code-skills/python-best-practices",
"id": "composioHQ/awesome-claude-skills/python-best-practices",
"name": "Python Best Practices",
"description": "Python coding standards and patterns",
"source": "composioHQ/awesome-claude-code-skills",
"source": "composioHQ/awesome-claude-skills",
"tags": [
"python"
]
},
{
"id": "composioHQ/awesome-claude-code-skills/rust-patterns",
"id": "composioHQ/awesome-claude-skills/rust-patterns",
"name": "Rust Patterns",
"description": "Rust memory safety and performance patterns",
"source": "composioHQ/awesome-claude-code-skills",
"source": "composioHQ/awesome-claude-skills",
"tags": [
"rust"
]
},
{
"id": "composioHQ/awesome-claude-code-skills/go-patterns",
"id": "composioHQ/awesome-claude-skills/go-patterns",
"name": "Go Patterns",
"description": "Go concurrency and idiomatic patterns",
"source": "composioHQ/awesome-claude-code-skills",
"source": "composioHQ/awesome-claude-skills",
"tags": [
"golang",
"go"
+2 -1
View File
@@ -34,6 +34,7 @@
{ "source": "jimliu/baoyu-skills", "name": "Baoyu Tools" },
{ "source": "giuseppe-trisciuoglio/developer-kit", "name": "Shadcn / Radix" },
{ "source": "openrouterteam/agent-skills", "name": "OpenRouter SDK" },
{ "source": "intellectronica/agent-skills", "name": "Context7" }
{ "source": "intellectronica/agent-skills", "name": "Context7" },
{ "source": "skills.sh", "name": "Skills.sh Leaderboard", "official": true, "registry": "skills-sh" }
]
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "skillkit-monorepo",
"version": "1.19.1",
"version": "1.19.2",
"private": true,
"description": "The package manager for AI agent skills — install, translate, share across 32 coding agents",
"type": "module",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@skillkit/agents",
"version": "1.19.1",
"version": "1.19.2",
"description": "Agent adapters for SkillKit - supports 32 AI coding agents",
"type": "module",
"main": "./dist/index.js",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@skillkit/api",
"version": "1.19.1",
"version": "1.19.2",
"description": "REST API server for SkillKit skill discovery",
"type": "module",
"main": "./dist/index.js",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@skillkit/cli",
"version": "1.19.1",
"version": "1.19.2",
"description": "CLI commands for SkillKit",
"type": "module",
"main": "./dist/index.js",
+4 -4
View File
@@ -16,8 +16,8 @@ export function generateBadge(skills: string[]): {
const url = `https://img.shields.io/badge/SkillKit-No%20Skills-555555?style=flat-square&logo=data:image/svg+xml;base64,${SKILLKIT_LOGO_SVG_BASE64}`;
return {
url,
markdown: `[![SkillKit Stack](${url})](https://agenstskills.com)`,
html: `<a href="https://agenstskills.com"><img src="${url}" alt="SkillKit Stack" /></a>`,
markdown: `[![SkillKit Stack](${url})](https://skillkit.sh)`,
html: `<a href="https://skillkit.sh"><img src="${url}" alt="SkillKit Stack" /></a>`,
};
}
@@ -33,7 +33,7 @@ export function generateBadge(skills: string[]): {
return {
url,
markdown: `[![SkillKit Stack](${url})](https://agenstskills.com)`,
html: `<a href="https://agenstskills.com"><img src="${url}" alt="SkillKit Stack" /></a>`,
markdown: `[![SkillKit Stack](${url})](https://skillkit.sh)`,
html: `<a href="https://skillkit.sh"><img src="${url}" alt="SkillKit Stack" /></a>`,
};
}
+175 -92
View File
@@ -1,4 +1,4 @@
import { Command, Option } from 'clipanion';
import { Command, Option } from "clipanion";
import {
colors,
symbols,
@@ -7,8 +7,13 @@ import {
isCancel,
select,
header,
} from '../onboarding/index.js';
import { FederatedSearch, GitHubSkillRegistry, RateLimitError } from '@skillkit/core';
} from "../onboarding/index.js";
import {
FederatedSearch,
GitHubSkillRegistry,
SkillsShRegistry,
} from "@skillkit/core";
import { formatCount } from "../helpers.js";
interface SkillResult {
name: string;
@@ -17,46 +22,46 @@ interface SkillResult {
repoName: string;
}
import skillsData from '../../../../marketplace/skills.json' with { type: 'json' };
import sourcesData from '../../../../marketplace/sources.json' with { type: 'json' };
import skillsData from "../../../../marketplace/skills.json" with { type: "json" };
import sourcesData from "../../../../marketplace/sources.json" with { type: "json" };
export class FindCommand extends Command {
static override paths = [['find'], ['search']];
static override paths = [["find"], ["search"]];
static override usage = Command.Usage({
description: 'Search for skills in the marketplace',
description: "Search for skills in the marketplace",
details: `
Quickly find and install skills from the marketplace.
Interactive mode lets you browse and install in one step.
`,
examples: [
['Interactive search', '$0 find'],
['Search for specific skill', '$0 find pdf'],
['Search with keyword', '$0 find "nextjs"'],
['List top skills', '$0 find --top'],
["Interactive search", "$0 find"],
["Search for specific skill", "$0 find pdf"],
["Search with keyword", '$0 find "nextjs"'],
["List top skills", "$0 find --top"],
],
});
query = Option.String({ required: false });
top = Option.Boolean('--top,-t', false, {
description: 'Show top/featured skills',
top = Option.Boolean("--top,-t", false, {
description: "Show top/featured skills",
});
limit = Option.String('--limit,-l', '10', {
description: 'Maximum results to show',
limit = Option.String("--limit,-l", "10", {
description: "Maximum results to show",
});
install = Option.Boolean('--install,-i', false, {
description: 'Prompt to install after finding',
install = Option.Boolean("--install,-i", false, {
description: "Prompt to install after finding",
});
quiet = Option.Boolean('--quiet,-q', false, {
description: 'Minimal output (just list skills)',
quiet = Option.Boolean("--quiet,-q", false, {
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", false, {
description: "Search external registries (GitHub SKILL.md files)",
});
async execute(): Promise<number> {
@@ -64,17 +69,25 @@ export class FindCommand extends Command {
const limit = parseInt(this.limit, 10) || 10;
if (!this.quiet) {
header('Find Skills');
header("Find Skills");
}
const allSkills: SkillResult[] = (skillsData.skills || []).map((skill: { name: string; description?: string; source?: string; repo?: string }) => ({
name: skill.name,
description: skill.description,
source: skill.source || '',
repoName: skill.repo || skill.source?.split('/').pop() || '',
}));
const allSkills: SkillResult[] = (skillsData.skills || []).map(
(skill: {
name: string;
description?: string;
source?: string;
repo?: string;
}) => ({
name: skill.name,
description: skill.description,
source: skill.source || "",
repoName: skill.repo || skill.source?.split("/").pop() || "",
}),
);
let results: SkillResult[];
let searchTerm: string | undefined;
if (this.top) {
const featured = sourcesData.sources
@@ -82,35 +95,43 @@ export class FindCommand extends Command {
.slice(0, 5);
results = allSkills
.filter(skill => featured.some((f: { source: string }) => skill.source.includes(f.source)))
.filter((skill) =>
featured.some((f: { source: string }) =>
skill.source.includes(f.source),
),
)
.slice(0, limit);
if (!this.quiet) {
step('Showing featured skills');
step("Showing featured skills");
}
} else if (this.query) {
const query = this.query.toLowerCase();
searchTerm = this.query;
s.start('Searching...');
s.start("Searching...");
results = allSkills.filter(skill =>
skill.name.toLowerCase().includes(query) ||
skill.description?.toLowerCase().includes(query) ||
skill.source.toLowerCase().includes(query) ||
skill.repoName.toLowerCase().includes(query)
).slice(0, limit);
results = allSkills
.filter(
(skill) =>
skill.name.toLowerCase().includes(query) ||
skill.description?.toLowerCase().includes(query) ||
skill.source.toLowerCase().includes(query) ||
skill.repoName.toLowerCase().includes(query),
)
.slice(0, limit);
s.stop(`Found ${results.length} skill(s)`);
} else {
if (!this.quiet) {
step('Enter a search term or browse featured skills');
step("Enter a search term or browse featured skills");
}
const { text } = await import('../onboarding/prompts.js');
const { text } = await import("../onboarding/prompts.js");
const searchResult = await text({
message: 'Search skills',
placeholder: 'e.g., pdf, nextjs, testing',
message: "Search skills",
placeholder: "e.g., pdf, nextjs, testing",
});
if (isCancel(searchResult)) {
@@ -118,101 +139,163 @@ export class FindCommand extends Command {
}
const query = (searchResult as string).toLowerCase();
searchTerm = searchResult as string;
if (query) {
s.start('Searching...');
results = allSkills.filter(skill =>
skill.name.toLowerCase().includes(query) ||
skill.description?.toLowerCase().includes(query) ||
skill.source.toLowerCase().includes(query) ||
skill.repoName.toLowerCase().includes(query)
).slice(0, limit);
s.start("Searching...");
results = allSkills
.filter(
(skill) =>
skill.name.toLowerCase().includes(query) ||
skill.description?.toLowerCase().includes(query) ||
skill.source.toLowerCase().includes(query) ||
skill.repoName.toLowerCase().includes(query),
)
.slice(0, limit);
s.stop(`Found ${results.length} skill(s)`);
} else {
results = allSkills.slice(0, limit);
}
}
if (this.federated && this.query) {
s.start('Searching external registries...');
if (searchTerm) {
s.start("Searching skills.sh + external registries...");
const fedSearch = new FederatedSearch();
fedSearch.addRegistry(new GitHubSkillRegistry());
fedSearch.addRegistry(new SkillsShRegistry());
if (this.federated) {
fedSearch.addRegistry(new GitHubSkillRegistry());
}
try {
const fedResult = await fedSearch.search(this.query, { limit: parseInt(this.limit, 10) || 10 });
s.stop(`Found ${fedResult.total} external skill(s) from ${fedResult.registries.join(', ') || 'none'}`);
const fedResult = await fedSearch.search(searchTerm, {
limit: parseInt(this.limit, 10) || 10,
});
const sourceLabel = fedResult.registries.join(", ") || "none";
s.stop(`Found ${fedResult.total} skill(s) from ${sourceLabel}`);
if (fedResult.skills.length > 0) {
console.log('');
console.log(colors.bold('External Skills (SKILL.md):'));
for (const skill of fedResult.skills) {
const stars = typeof skill.stars === 'number' ? colors.muted(` ★${skill.stars}`) : '';
const desc = skill.description
? colors.muted(` - ${skill.description.slice(0, 50)}${skill.description.length > 50 ? '...' : ''}`)
: '';
console.log(` ${colors.cyan(symbols.bullet)} ${colors.primary(skill.name)}${stars}${desc}`);
if (!this.quiet) {
console.log(` ${colors.muted(skill.source)}`);
const skillsShResults = fedResult.skills.filter(
(sk) => sk.registry === "skills.sh",
);
const githubResults = fedResult.skills.filter(
(sk) => sk.registry !== "skills.sh",
);
if (skillsShResults.length > 0) {
console.log("");
console.log(colors.bold("Skills.sh Registry:"));
for (const skill of skillsShResults) {
const installs =
typeof skill.stars === "number" && skill.stars > 0
? colors.muted(` ${formatCount(skill.stars)} installs`)
: "";
const desc = skill.description
? colors.muted(
` - ${skill.description.slice(0, 50)}${skill.description.length > 50 ? "..." : ""}`,
)
: "";
console.log(
` ${colors.cyan(symbols.bullet)} ${colors.primary(skill.name)}${installs}${desc}`,
);
if (!this.quiet) {
const installSource = skill.source.replace(
"https://github.com/",
"",
);
console.log(
` ${colors.muted(`skillkit install skills.sh/${installSource}/${skill.name}`)}`,
);
}
}
}
console.log('');
}
} catch (err) {
if (err instanceof RateLimitError) {
s.stop(colors.warning('Rate limited by GitHub API'));
console.log(colors.muted('Set GITHUB_TOKEN env var or wait before retrying.'));
} else {
s.stop(colors.warning('Federated search failed'));
if (githubResults.length > 0) {
console.log("");
console.log(colors.bold("GitHub (SKILL.md):"));
for (const skill of githubResults) {
const stars =
typeof skill.stars === "number"
? colors.muted(` ★${skill.stars}`)
: "";
const desc = skill.description
? colors.muted(
` - ${skill.description.slice(0, 50)}${skill.description.length > 50 ? "..." : ""}`,
)
: "";
console.log(
` ${colors.cyan(symbols.bullet)} ${colors.primary(skill.name)}${stars}${desc}`,
);
if (!this.quiet) {
console.log(` ${colors.muted(skill.source)}`);
}
}
}
console.log("");
}
} catch {
s.stop(colors.warning("External search unavailable"));
}
}
if (results.length === 0) {
console.log(colors.muted('No skills found matching your search'));
console.log('');
console.log(colors.muted('Try:'));
console.log(colors.muted(' skillkit find --top # Show featured skills'));
console.log(colors.muted(' skillkit find -f <query> # Search external registries'));
console.log(colors.muted(' skillkit ui # Browse in TUI'));
console.log(colors.muted("No skills found matching your search"));
console.log("");
console.log(colors.muted("Try:"));
console.log(
colors.muted(" skillkit find --top # Show featured skills"),
);
console.log(
colors.muted(
" skillkit find -f <query> # Also search GitHub SKILL.md files",
),
);
console.log(colors.muted(" skillkit ui # Browse in TUI"));
return 0;
}
console.log('');
console.log("");
for (const skill of results) {
const desc = skill.description
? colors.muted(` - ${skill.description.slice(0, 50)}${skill.description.length > 50 ? '...' : ''}`)
: '';
console.log(` ${colors.success(symbols.bullet)} ${colors.primary(skill.name)}${desc}`);
? colors.muted(
` - ${skill.description.slice(0, 50)}${skill.description.length > 50 ? "..." : ""}`,
)
: "";
console.log(
` ${colors.success(symbols.bullet)} ${colors.primary(skill.name)}${desc}`,
);
if (!this.quiet && skill.source) {
console.log(` ${colors.muted(skill.source)}`);
}
}
console.log('');
console.log(colors.muted(`Showing ${results.length} of ${allSkills.length} skills`));
console.log('');
console.log("");
console.log(
colors.muted(`Showing ${results.length} of ${allSkills.length} skills`),
);
console.log("");
if (this.install || (!this.query && !this.top && process.stdin.isTTY)) {
const installResult = await select({
message: 'Install a skill?',
message: "Install a skill?",
options: [
{ value: 'none', label: 'No, just browsing' },
...results.slice(0, 5).map(skill => ({
{ value: "none", label: "No, just browsing" },
...results.slice(0, 5).map((skill) => ({
value: skill.source,
label: skill.name,
hint: skill.repoName,
})),
],
initialValue: 'none',
initialValue: "none",
});
if (!isCancel(installResult) && installResult !== 'none') {
console.log('');
console.log(colors.cyan('To install, run:'));
if (!isCancel(installResult) && installResult !== "none") {
console.log("");
console.log(colors.cyan("To install, run:"));
console.log(` ${colors.bold(`skillkit install ${installResult}`)}`);
}
} else {
console.log(colors.muted('To install: skillkit install <source>'));
console.log(colors.muted("To install: skillkit install <source>"));
}
return 0;
+334 -131
View File
@@ -1,15 +1,36 @@
import { existsSync, mkdirSync, cpSync, rmSync, symlinkSync, readFileSync, writeFileSync } from 'node:fs';
import { join } from 'node:path';
import { execFile } from 'node:child_process';
import { promisify } from 'node:util';
import {
existsSync,
mkdirSync,
cpSync,
rmSync,
symlinkSync,
readFileSync,
writeFileSync,
} from "node:fs";
import { join } from "node:path";
import { execFile } from "node:child_process";
import { promisify } from "node:util";
const execFileAsync = promisify(execFile);
import { Command, Option } from 'clipanion';
import { detectProvider, isLocalPath, getProvider, evaluateSkillDirectory, SkillScanner, formatSummary, Severity, WellKnownProvider, AgentsMdParser, AgentsMdGenerator } from '@skillkit/core';
import type { SkillMetadata, GitProvider, AgentType } from '@skillkit/core';
import { isPathInside } from '@skillkit/core';
import { getAdapter, detectAgent, getAllAdapters } from '@skillkit/agents';
import { getInstallDir, saveSkillMetadata } from '../helpers.js';
import { Command, Option } from "clipanion";
import {
detectProvider,
isLocalPath,
getProvider,
evaluateSkillDirectory,
SkillScanner,
formatSummary,
Severity,
WellKnownProvider,
AgentsMdParser,
AgentsMdGenerator,
SkillsShRegistry,
} from "@skillkit/core";
import type { SkillsShStats } from "@skillkit/core";
import type { SkillMetadata, GitProvider, AgentType } from "@skillkit/core";
import { isPathInside } from "@skillkit/core";
import { getAdapter, detectAgent, getAllAdapters } from "@skillkit/agents";
import { getInstallDir, saveSkillMetadata, formatCount } from "../helpers.js";
import {
welcome,
colors,
@@ -35,71 +56,80 @@ import {
formatQualityBadge,
getQualityGradeFromScore,
type InstallResult,
} from '../onboarding/index.js';
} from "../onboarding/index.js";
export class InstallCommand extends Command {
static override paths = [['install'], ['i'], ['add']];
static override paths = [["install"], ["i"], ["add"]];
static override usage = Command.Usage({
description: 'Install skills from GitHub, GitLab, Bitbucket, or local path',
description:
"Install skills from GitHub, GitLab, Bitbucket, skills.sh, or local path",
examples: [
['Install from GitHub', '$0 install owner/repo'],
['Install from GitLab', '$0 install gitlab:owner/repo'],
['Install from Bitbucket', '$0 install bitbucket:owner/repo'],
['Install specific skill', '$0 install owner/repo --skill=pdf'],
['Install multiple skills (CI/CD)', '$0 install owner/repo --skills=pdf,xlsx'],
['Install all skills non-interactively', '$0 install owner/repo --all'],
['Install from local path', '$0 install ./my-skills'],
['Install globally', '$0 install owner/repo --global'],
['List available skills', '$0 install owner/repo --list'],
['Install to specific agents', '$0 install owner/repo --agent claude-code --agent cursor'],
["Install from GitHub", "$0 install owner/repo"],
["Install from skills.sh", "$0 install skills.sh/owner/repo/skill-name"],
["Install from GitLab", "$0 install gitlab:owner/repo"],
["Install from Bitbucket", "$0 install bitbucket:owner/repo"],
["Install specific skill", "$0 install owner/repo --skill=pdf"],
[
"Install multiple skills (CI/CD)",
"$0 install owner/repo --skills=pdf,xlsx",
],
["Install all skills non-interactively", "$0 install owner/repo --all"],
["Install from local path", "$0 install ./my-skills"],
["Install globally", "$0 install owner/repo --global"],
["List available skills", "$0 install owner/repo --list"],
[
"Install to specific agents",
"$0 install owner/repo --agent claude-code --agent cursor",
],
],
});
source = Option.String({ required: true });
skills = Option.String('--skills,--skill,-s', {
description: 'Comma-separated list of skills to install (non-interactive)',
skills = Option.String("--skills,--skill,-s", {
description: "Comma-separated list of skills to install (non-interactive)",
});
all = Option.Boolean('--all,-a', false, {
description: 'Install all discovered skills (non-interactive)',
all = Option.Boolean("--all,-a", false, {
description: "Install all discovered skills (non-interactive)",
});
yes = Option.Boolean('--yes,-y', false, {
description: 'Skip confirmation prompts',
yes = Option.Boolean("--yes,-y", false, {
description: "Skip confirmation prompts",
});
global = Option.Boolean('--global,-g', false, {
description: 'Install to global skills directory',
global = Option.Boolean("--global,-g", false, {
description: "Install to global skills directory",
});
force = Option.Boolean('--force,-f', false, {
description: 'Overwrite existing skills',
force = Option.Boolean("--force,-f", false, {
description: "Overwrite existing skills",
});
provider = Option.String('--provider,-p', {
description: 'Force specific provider (github, gitlab, bitbucket)',
provider = Option.String("--provider,-p", {
description: "Force specific provider (github, gitlab, bitbucket)",
});
list = Option.Boolean('--list,-l', false, {
description: 'List available skills without installing',
list = Option.Boolean("--list,-l", false, {
description: "List available skills without installing",
});
agent = Option.Array('--agent', {
description: 'Target specific agents (can specify multiple)',
agent = Option.Array("--agent", {
description: "Target specific agents (can specify multiple)",
});
quiet = Option.Boolean('--quiet,-q', false, {
description: 'Minimal output (no logo)',
quiet = Option.Boolean("--quiet,-q", false, {
description: "Minimal output (no logo)",
});
scan = Option.Boolean('--scan', true, {
description: 'Run security scan before installing (default: true)',
scan = Option.Boolean("--scan", true, {
description: "Run security scan before installing (default: true)",
});
async execute(): Promise<number> {
const isInteractive = process.stdin.isTTY && !this.skills && !this.all && !this.yes;
const isInteractive =
process.stdin.isTTY && !this.skills && !this.all && !this.yes;
const s = spinner();
try {
@@ -109,21 +139,37 @@ export class InstallCommand extends Command {
}
let providerAdapter = detectProvider(this.source);
let result: { success: boolean; path?: string; tempRoot?: string; error?: string; skills?: string[]; discoveredSkills?: Array<{ name: string; dirName: string; path: string }> } | null = null;
let result: {
success: boolean;
path?: string;
tempRoot?: string;
error?: string;
skills?: string[];
discoveredSkills?: Array<{
name: string;
dirName: string;
path: string;
}>;
} | null = null;
const isUrl = this.source.startsWith('http://') || this.source.startsWith('https://');
const isUrl =
this.source.startsWith("http://") || this.source.startsWith("https://");
if (isUrl && !this.provider && !providerAdapter) {
s.start('Checking for well-known skills...');
s.start("Checking for well-known skills...");
const wellKnown = new WellKnownProvider();
const discovery = await wellKnown.discoverFromUrl(this.source);
if (discovery.success) {
s.stop(`Found ${discovery.skills?.length || 0} skill(s) via well-known discovery`);
s.stop(
`Found ${discovery.skills?.length || 0} skill(s) via well-known discovery`,
);
providerAdapter = wellKnown;
result = discovery;
} else {
s.stop('No well-known skills found');
s.stop("No well-known skills found");
warn(`No well-known skills found at ${this.source}`);
console.log(colors.muted('You can save this URL as a skill instead:'));
console.log(
colors.muted("You can save this URL as a skill instead:"),
);
console.log(colors.muted(` skillkit save ${this.source}`));
return 1;
}
@@ -135,20 +181,31 @@ export class InstallCommand extends Command {
if (!providerAdapter) {
error(`Could not detect provider for: ${this.source}`);
console.log(colors.muted('Use --provider flag or specify source as:'));
console.log(colors.muted(' GitHub: owner/repo or https://github.com/owner/repo'));
console.log(colors.muted(' GitLab: gitlab:owner/repo or https://gitlab.com/owner/repo'));
console.log(colors.muted(' Bitbucket: bitbucket:owner/repo'));
console.log(colors.muted(' Local: ./path or ~/path'));
console.log(colors.muted("Use --provider flag or specify source as:"));
console.log(
colors.muted(
" GitHub: owner/repo or https://github.com/owner/repo",
),
);
console.log(
colors.muted(" Skills.sh: skills.sh/owner/repo/skill-name"),
);
console.log(
colors.muted(
" GitLab: gitlab:owner/repo or https://gitlab.com/owner/repo",
),
);
console.log(colors.muted(" Bitbucket: bitbucket:owner/repo"));
console.log(colors.muted(" Local: ./path or ~/path"));
return 1;
}
if (!result) {
s.start(`Fetching from ${providerAdapter.name}...`);
result = await providerAdapter.clone(this.source, '', { depth: 1 });
result = await providerAdapter.clone(this.source, "", { depth: 1 });
if (!result.success || !result.path) {
s.stop(colors.error(result.error || 'Failed to fetch source'));
s.stop(colors.error(result.error || "Failed to fetch source"));
return 1;
}
@@ -161,23 +218,35 @@ export class InstallCommand extends Command {
// List mode - just show skills and exit
if (this.list) {
if (discoveredSkills.length === 0) {
warn('No skills found in this repository');
warn("No skills found in this repository");
} else {
console.log('');
console.log(colors.bold('Available skills:'));
console.log('');
console.log("");
console.log(colors.bold("Available skills:"));
console.log("");
for (const skill of discoveredSkills) {
const quality = evaluateSkillDirectory(skill.path);
const qualityBadge = quality ? ` ${formatQualityBadge(quality.overall)}` : '';
console.log(` ${colors.success(symbols.stepActive)} ${colors.primary(skill.name)}${qualityBadge}`);
const qualityBadge = quality
? ` ${formatQualityBadge(quality.overall)}`
: "";
console.log(
` ${colors.success(symbols.stepActive)} ${colors.primary(skill.name)}${qualityBadge}`,
);
}
console.log('');
console.log(colors.muted(`Total: ${discoveredSkills.length} skill(s)`));
console.log(colors.muted('To install: skillkit install <source> --skill=name'));
console.log("");
console.log(
colors.muted(`Total: ${discoveredSkills.length} skill(s)`),
);
console.log(
colors.muted("To install: skillkit install <source> --skill=name"),
);
}
const cleanupPath = cloneResult.tempRoot || cloneResult.path;
if (!isLocalPath(this.source) && cleanupPath && existsSync(cleanupPath)) {
if (
!isLocalPath(this.source) &&
cleanupPath &&
existsSync(cleanupPath)
) {
rmSync(cleanupPath, { recursive: true, force: true });
}
@@ -188,17 +257,19 @@ export class InstallCommand extends Command {
// Non-interactive: use --skills filter
if (this.skills) {
const requestedSkills = this.skills.split(',').map(s => s.trim());
const available = discoveredSkills.map(s => s.name);
const notFound = requestedSkills.filter(s => !available.includes(s));
const requestedSkills = this.skills.split(",").map((s) => s.trim());
const available = discoveredSkills.map((s) => s.name);
const notFound = requestedSkills.filter((s) => !available.includes(s));
if (notFound.length > 0) {
error(`Skills not found: ${notFound.join(', ')}`);
console.log(colors.muted(`Available: ${available.join(', ')}`));
error(`Skills not found: ${notFound.join(", ")}`);
console.log(colors.muted(`Available: ${available.join(", ")}`));
return 1;
}
skillsToInstall = discoveredSkills.filter(s => requestedSkills.includes(s.name));
skillsToInstall = discoveredSkills.filter((s) =>
requestedSkills.includes(s.name),
);
} else if (this.all || this.yes) {
skillsToInstall = discoveredSkills;
} else if (isInteractive && discoveredSkills.length > 1) {
@@ -206,21 +277,23 @@ export class InstallCommand extends Command {
step(`Source: ${colors.cyan(this.source)}`);
const skillResult = await skillMultiselect({
message: 'Select skills to install',
skills: discoveredSkills.map(s => ({ name: s.name })),
initialValues: discoveredSkills.map(s => s.name),
message: "Select skills to install",
skills: discoveredSkills.map((s) => ({ name: s.name })),
initialValues: discoveredSkills.map((s) => s.name),
});
if (isCancel(skillResult)) {
cancel('Installation cancelled');
cancel("Installation cancelled");
return 0;
}
skillsToInstall = discoveredSkills.filter(s => (skillResult as string[]).includes(s.name));
skillsToInstall = discoveredSkills.filter((s) =>
(skillResult as string[]).includes(s.name),
);
}
if (skillsToInstall.length === 0) {
warn('No skills to install');
warn("No skills to install");
return 0;
}
@@ -228,26 +301,35 @@ export class InstallCommand extends Command {
let targetAgents: AgentType[];
if (this.agent && this.agent.length > 0) {
// Explicitly specified agents
const allValid = getAllAdapters().map((a) => a.type);
const invalid = this.agent.filter(
(a) => !allValid.includes(a as AgentType),
);
if (invalid.length > 0) {
error(`Unknown agent(s): ${invalid.join(", ")}`);
console.log(colors.muted(`Available: ${allValid.join(", ")}`));
return 1;
}
targetAgents = this.agent as AgentType[];
} else if (isInteractive) {
const allAgentTypes = getAllAdapters().map(a => a.type);
const allAgentTypes = getAllAdapters().map((a) => a.type);
const lastAgents = getLastAgents();
step(`Detected ${allAgentTypes.length} agents`);
const agentResult = await quickAgentSelect({
message: 'Install to',
message: "Install to",
agents: allAgentTypes,
lastSelected: lastAgents,
});
if (isCancel(agentResult)) {
cancel('Installation cancelled');
cancel("Installation cancelled");
return 0;
}
targetAgents = (agentResult as { agents: string[] }).agents as AgentType[];
targetAgents = (agentResult as { agents: string[] })
.agents as AgentType[];
// Save selection for next time
saveLastAgents(targetAgents);
@@ -258,21 +340,25 @@ export class InstallCommand extends Command {
}
// Interactive: select installation method
let installMethod: 'symlink' | 'copy' = 'copy';
let installMethod: "symlink" | "copy" = "copy";
if (isInteractive && targetAgents.length > 1) {
const methodResult = await selectInstallMethod({});
if (isCancel(methodResult)) {
cancel('Installation cancelled');
cancel("Installation cancelled");
return 0;
}
installMethod = methodResult as 'symlink' | 'copy';
installMethod = methodResult as "symlink" | "copy";
}
// Check for low-quality skills and warn
const lowQualitySkills: Array<{ name: string; score: number; warnings: string[] }> = [];
const lowQualitySkills: Array<{
name: string;
score: number;
warnings: string[];
}> = [];
for (const skill of skillsToInstall) {
const quality = evaluateSkillDirectory(skill.path);
if (quality && quality.overall < 60) {
@@ -289,42 +375,60 @@ export class InstallCommand extends Command {
for (const skill of skillsToInstall) {
const scanResult = await scanner.scan(skill.path);
if (scanResult.verdict === 'fail' && !this.force) {
if (scanResult.verdict === "fail" && !this.force) {
error(`Security scan FAILED for "${skill.name}"`);
console.log(formatSummary(scanResult));
console.log(colors.muted('Use --force to install anyway, or --no-scan to skip scanning'));
console.log(
colors.muted(
"Use --force to install anyway, or --no-scan to skip scanning",
),
);
const cleanupPath = cloneResult.tempRoot || cloneResult.path;
if (!isLocalPath(this.source) && cleanupPath && existsSync(cleanupPath)) {
if (
!isLocalPath(this.source) &&
cleanupPath &&
existsSync(cleanupPath)
) {
rmSync(cleanupPath, { recursive: true, force: true });
}
return 1;
}
if (scanResult.verdict === 'warn' && !this.quiet) {
warn(`Security warnings for "${skill.name}" (${scanResult.stats.medium} medium, ${scanResult.stats.low} low)`);
if (scanResult.verdict === "warn" && !this.quiet) {
warn(
`Security warnings for "${skill.name}" (${scanResult.stats.medium} medium, ${scanResult.stats.low} low)`,
);
}
}
}
// Confirm installation
if (isInteractive && !this.yes) {
console.log('');
console.log("");
// Show low-quality warning if any
if (lowQualitySkills.length > 0) {
console.log(colors.warning(`${symbols.warning} Warning: ${lowQualitySkills.length} skill(s) have low quality scores (< 60)`));
console.log(
colors.warning(
`${symbols.warning} Warning: ${lowQualitySkills.length} skill(s) have low quality scores (< 60)`,
),
);
for (const lq of lowQualitySkills) {
const grade = getQualityGradeFromScore(lq.score);
const warningText = lq.warnings.length > 0 ? ` - ${lq.warnings.join(', ')}` : '';
console.log(colors.muted(` - ${lq.name} [${grade}]${warningText}`));
const warningText =
lq.warnings.length > 0 ? ` - ${lq.warnings.join(", ")}` : "";
console.log(
colors.muted(` - ${lq.name} [${grade}]${warningText}`),
);
}
console.log('');
console.log("");
}
const agentDisplay = targetAgents.length <= 3
? targetAgents.map(formatAgent).join(', ')
: `${targetAgents.slice(0, 2).map(formatAgent).join(', ')} +${targetAgents.length - 2} more`;
const agentDisplay =
targetAgents.length <= 3
? targetAgents.map(formatAgent).join(", ")
: `${targetAgents.slice(0, 2).map(formatAgent).join(", ")} +${targetAgents.length - 2} more`;
const confirmResult = await confirm({
message: `Install ${skillsToInstall.length} skill(s) to ${agentDisplay}?`,
@@ -332,7 +436,7 @@ export class InstallCommand extends Command {
});
if (isCancel(confirmResult) || !confirmResult) {
cancel('Installation cancelled');
cancel("Installation cancelled");
return 0;
}
}
@@ -359,21 +463,26 @@ export class InstallCommand extends Command {
if (existsSync(targetPath) && !this.force) {
if (!this.quiet) {
warn(`Skipping ${skillName} for ${adapter.name} (already exists, use --force)`);
warn(
`Skipping ${skillName} for ${adapter.name} (already exists, use --force)`,
);
}
continue;
}
const securityRoot = cloneResult.tempRoot || cloneResult.path || '';
const securityRoot = cloneResult.tempRoot || cloneResult.path || "";
if (!securityRoot || !isPathInside(sourcePath, securityRoot)) {
error(`Skipping ${skillName} (path traversal detected)`);
continue;
}
const isSymlinkMode = installMethod === 'symlink' && targetAgents.length > 1;
const isSymlinkMode =
installMethod === "symlink" && targetAgents.length > 1;
const useSymlink = isSymlinkMode && primaryPath !== null;
s.start(`Installing ${skillName} to ${adapter.name}${useSymlink ? ' (symlink)' : ''}...`);
s.start(
`Installing ${skillName} to ${adapter.name}${useSymlink ? " (symlink)" : ""}...`,
);
try {
if (existsSync(targetPath)) {
@@ -381,24 +490,33 @@ export class InstallCommand extends Command {
}
if (useSymlink && primaryPath) {
symlinkSync(primaryPath, targetPath, 'dir');
symlinkSync(primaryPath, targetPath, "dir");
} else {
cpSync(sourcePath, targetPath, { recursive: true, dereference: true });
cpSync(sourcePath, targetPath, {
recursive: true,
dereference: true,
});
if (isSymlinkMode && primaryPath === null) {
primaryPath = targetPath;
}
// Auto-install npm dependencies if package.json exists
const packageJsonPath = join(targetPath, 'package.json');
const packageJsonPath = join(targetPath, "package.json");
if (existsSync(packageJsonPath)) {
s.stop(`Installed ${skillName} to ${adapter.name}`);
s.start(`Installing npm dependencies for ${skillName}...`);
try {
await execFileAsync('npm', ['install', '--production'], { cwd: targetPath });
await execFileAsync("npm", ["install", "--omit=dev"], {
cwd: targetPath,
});
s.stop(`Installed dependencies for ${skillName}`);
} catch (npmErr) {
s.stop(colors.warning(`Dependencies failed for ${skillName}`));
console.log(colors.muted('Run manually: npm install in ' + targetPath));
s.stop(
colors.warning(`Dependencies failed for ${skillName}`),
);
console.log(
colors.muted("Run manually: npm install in " + targetPath),
);
}
s.start(`Finishing ${skillName} installation...`);
}
@@ -406,7 +524,7 @@ export class InstallCommand extends Command {
const metadata: SkillMetadata = {
name: skillName,
description: '',
description: "",
source: this.source,
sourceType: providerAdapter.type,
subpath: skillName,
@@ -416,10 +534,16 @@ export class InstallCommand extends Command {
saveSkillMetadata(targetPath, metadata);
installedAgents.push(agentType);
s.stop(`Installed ${skillName} to ${adapter.name}${useSymlink ? ' (symlink)' : ''}`);
s.stop(
`Installed ${skillName} to ${adapter.name}${useSymlink ? " (symlink)" : ""}`,
);
} catch (err) {
s.stop(colors.error(`Failed to install ${skillName} to ${adapter.name}`));
console.log(colors.muted(err instanceof Error ? err.message : String(err)));
s.stop(
colors.error(`Failed to install ${skillName} to ${adapter.name}`),
);
console.log(
colors.muted(err instanceof Error ? err.message : String(err)),
);
}
}
@@ -429,7 +553,10 @@ export class InstallCommand extends Command {
skillName,
method: installMethod,
agents: installedAgents,
path: join(getInstallDir(this.global, installedAgents[0] as AgentType), skillName),
path: join(
getInstallDir(this.global, installedAgents[0] as AgentType),
skillName,
),
});
}
}
@@ -442,19 +569,22 @@ export class InstallCommand extends Command {
if (totalInstalled > 0) {
try {
const agentsMdPath = join(process.cwd(), 'AGENTS.md');
const agentsMdPath = join(process.cwd(), "AGENTS.md");
if (existsSync(agentsMdPath)) {
const parser = new AgentsMdParser();
const existing = readFileSync(agentsMdPath, 'utf-8');
const existing = readFileSync(agentsMdPath, "utf-8");
if (parser.hasManagedSections(existing)) {
const gen = new AgentsMdGenerator({ projectPath: process.cwd() });
const genResult = gen.generate();
const updated = parser.updateManagedSections(existing, genResult.sections.filter(s => s.managed));
writeFileSync(agentsMdPath, updated, 'utf-8');
const updated = parser.updateManagedSections(
existing,
genResult.sections.filter((s) => s.managed),
);
writeFileSync(agentsMdPath, updated, "utf-8");
}
}
} catch {
warn('Failed to update AGENTS.md');
warn("Failed to update AGENTS.md");
}
}
@@ -468,32 +598,105 @@ export class InstallCommand extends Command {
source: this.source,
});
outro('Installation complete!');
await this.showSkillsShStats(
installResults.map((r) => r.skillName),
providerAdapter,
);
outro("Installation complete!");
if (!this.yes) {
showNextSteps({
skillNames: installResults.map(r => r.skillName),
skillNames: installResults.map((r) => r.skillName),
agentTypes: targetAgents,
syncNeeded: true,
});
this.showProTips(installResults.map((r) => r.skillName));
}
} else {
success(`Installed ${totalInstalled} skill(s) to ${targetAgents.length} agent(s)`);
success(
`Installed ${totalInstalled} skill(s) to ${targetAgents.length} agent(s)`,
);
for (const r of installResults) {
console.log(colors.muted(` ${symbols.success} ${r.skillName} ${symbols.arrowRight} ${r.agents.map(getAgentIcon).join(' ')}`));
console.log(
colors.muted(
` ${symbols.success} ${r.skillName} ${symbols.arrowRight} ${r.agents.map(getAgentIcon).join(" ")}`,
),
);
}
console.log('');
console.log(colors.muted('Run `skillkit sync` to update agent configs'));
console.log("");
console.log(
colors.muted("Run `skillkit sync` to update agent configs"),
);
}
} else {
warn('No skills were installed');
warn("No skills were installed");
}
return 0;
} catch (err) {
s.stop(colors.error('Installation failed'));
console.log(colors.muted(err instanceof Error ? err.message : String(err)));
s.stop(colors.error("Installation failed"));
console.log(
colors.muted(err instanceof Error ? err.message : String(err)),
);
return 1;
}
}
private async showSkillsShStats(
skillNames: string[],
provider: {
type: string;
parseSource: (s: string) => { owner: string; repo: string } | null;
},
): Promise<void> {
try {
if (provider.type === "local") return;
const parsed = provider.parseSource(this.source);
if (!parsed) return;
const registry = new SkillsShRegistry();
const statsResults: SkillsShStats[] = [];
for (const name of skillNames) {
const stats = await registry.getSkillStats(
parsed.owner,
parsed.repo,
name,
);
if (stats) statsResults.push(stats);
}
if (statsResults.length > 0) {
console.log("");
console.log(colors.bold("Skills.sh Popularity:"));
for (const s of statsResults) {
const rank =
s.rank <= 10
? colors.success(`#${s.rank}`)
: colors.muted(`#${s.rank}`);
const installs = s.installs > 0 ? formatCount(s.installs) : "n/a";
console.log(
` ${rank} ${colors.primary(s.skillName)} ${colors.muted(`(${installs} installs)`)}`,
);
}
}
} catch {
// Non-critical, silently skip
}
}
private showProTips(skillNames: string[]): void {
const tips = [
`Translate to any agent format: ${colors.bold(`skillkit translate ${skillNames[0] || "skill-name"} --to cursor`)}`,
`Get AI recommendations: ${colors.bold("skillkit recommend")}`,
`Score quality: ${colors.bold(`skillkit evaluate ${skillNames[0] || "skill-name"}`)}`,
`Browse all skills: ${colors.bold("skillkit find --top")}`,
];
const tip = tips[Math.floor(Math.random() * tips.length)];
console.log("");
console.log(colors.muted(`Pro tip: ${tip}`));
}
}
+1 -1
View File
@@ -23,7 +23,7 @@ export class MarketplaceCommand extends Command {
from curated repositories.
Skills are aggregated from multiple sources including:
- composioHQ/awesome-claude-code-skills
- composioHQ/awesome-claude-skills
- anthropics/courses
- User-added custom sources
`,
+1 -1
View File
@@ -351,7 +351,7 @@ export class QuickCommand extends Command {
console.log('');
const badgeUrl = `https://img.shields.io/badge/SkillKit-${encodeURIComponent(matchedSkill.name)}-black?style=flat-square`;
console.log(colors.dim('Add to your README:'));
console.log(colors.muted(` [![SkillKit](${badgeUrl})](https://agenstskills.com)`));
console.log(colors.muted(` [![SkillKit](${badgeUrl})](https://skillkit.sh)`));
outro('Quick setup complete!');
+9 -3
View File
@@ -7,9 +7,9 @@ import {
initProject as coreInitProject,
loadSkillMetadata as coreLoadSkillMetadata,
saveSkillMetadata as coreSaveSkillMetadata,
} from '@skillkit/core';
import { getAdapter, detectAgent } from '@skillkit/agents';
import type { AgentType, AgentAdapterInfo } from '@skillkit/core';
} from "@skillkit/core";
import { getAdapter, detectAgent } from "@skillkit/agents";
import type { AgentType, AgentAdapterInfo } from "@skillkit/core";
// Re-export metadata functions directly (they don't need adapter bridging)
export const loadSkillMetadata = coreLoadSkillMetadata;
@@ -62,3 +62,9 @@ export async function initProject(agentType?: AgentType): Promise<void> {
};
return coreInitProject(type, adapterInfo);
}
export function formatCount(count: number): string {
if (count >= 1_000_000) return `${(count / 1_000_000).toFixed(1)}M`;
if (count >= 1_000) return `${(count / 1_000).toFixed(1)}K`;
return String(count);
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@skillkit/core",
"version": "1.19.1",
"version": "1.19.2",
"description": "Core functionality for SkillKit - skill discovery, parsing, and translation",
"type": "module",
"main": "./dist/index.js",
+18 -15
View File
@@ -1,20 +1,23 @@
import type { GitProviderAdapter } from './base.js';
import type { GitProvider } from '../types.js';
import { GitHubProvider } from './github.js';
import { GitLabProvider } from './gitlab.js';
import { BitbucketProvider } from './bitbucket.js';
import { LocalProvider } from './local.js';
import { WellKnownProvider } from './wellknown.js';
import type { GitProviderAdapter } from "./base.js";
import type { GitProvider } from "../types.js";
import { GitHubProvider } from "./github.js";
import { GitLabProvider } from "./gitlab.js";
import { BitbucketProvider } from "./bitbucket.js";
import { LocalProvider } from "./local.js";
import { WellKnownProvider } from "./wellknown.js";
import { SkillsShProvider } from "./skills-sh.js";
export * from './base.js';
export * from './github.js';
export * from './gitlab.js';
export * from './bitbucket.js';
export * from './local.js';
export * from './wellknown.js';
export * from "./base.js";
export * from "./github.js";
export * from "./gitlab.js";
export * from "./bitbucket.js";
export * from "./local.js";
export * from "./wellknown.js";
export * from "./skills-sh.js";
const providers: GitProviderAdapter[] = [
new LocalProvider(),
new SkillsShProvider(),
new GitLabProvider(),
new BitbucketProvider(),
new WellKnownProvider(),
@@ -22,7 +25,7 @@ const providers: GitProviderAdapter[] = [
];
export function getProvider(type: GitProvider): GitProviderAdapter | undefined {
return providers.find(p => p.type === type);
return providers.find((p) => p.type === type);
}
export function getAllProviders(): GitProviderAdapter[] {
@@ -30,7 +33,7 @@ export function getAllProviders(): GitProviderAdapter[] {
}
export function detectProvider(source: string): GitProviderAdapter | undefined {
return providers.find(p => p.matches(source));
return providers.find((p) => p.matches(source));
}
export function parseSource(source: string): {
+122
View File
@@ -0,0 +1,122 @@
import { execFileSync } from "node:child_process";
import { existsSync, rmSync } from "node:fs";
import { join, basename, resolve } from "node:path";
import { tmpdir } from "node:os";
import { randomUUID } from "node:crypto";
import type { GitProviderAdapter, CloneOptions } from "./base.js";
import type { GitProvider, CloneResult } from "../types.js";
import { discoverSkills } from "../skills.js";
/**
* Resolves `skills.sh/owner/repo/skill` references to their underlying
* GitHub repos and clones them the same way the GitHubProvider does.
*/
export class SkillsShProvider implements GitProviderAdapter {
readonly type: GitProvider = "skills-sh";
readonly name = "Skills.sh";
readonly baseUrl = "https://skills.sh";
parseSource(
source: string,
): { owner: string; repo: string; subpath?: string } | null {
const cleaned = source
.replace(/^https?:\/\//, "")
.replace(/^skills\.sh\//, "");
if (!this.isSkillsShSource(source)) return null;
const parts = cleaned.split("/").filter(Boolean);
if (parts.length < 2) return null;
return {
owner: parts[0],
repo: parts[1],
subpath: parts.length > 2 ? parts.slice(2).join("/") : undefined,
};
}
matches(source: string): boolean {
return this.isSkillsShSource(source);
}
getCloneUrl(owner: string, repo: string): string {
return `https://github.com/${owner}/${repo}.git`;
}
getSshUrl(owner: string, repo: string): string {
return `git@github.com:${owner}/${repo}.git`;
}
async clone(
source: string,
_targetDir: string,
options: CloneOptions = {},
): Promise<CloneResult> {
const parsed = this.parseSource(source);
if (!parsed) {
return { success: false, error: `Invalid skills.sh source: ${source}` };
}
const { owner, repo, subpath } = parsed;
const cloneUrl = options.ssh
? this.getSshUrl(owner, repo)
: this.getCloneUrl(owner, repo);
const tempDir = join(tmpdir(), `skillkit-skillssh-${randomUUID()}`);
try {
const args = ["clone"];
if (options.depth) {
args.push("--depth", String(options.depth));
}
if (options.branch) {
args.push("--branch", options.branch);
}
args.push(cloneUrl, tempDir);
execFileSync("git", args, {
stdio: ["pipe", "pipe", "pipe"],
encoding: "utf-8",
});
const searchDir = subpath ? join(tempDir, subpath) : tempDir;
if (!resolve(searchDir).startsWith(resolve(tempDir))) {
rmSync(tempDir, { recursive: true, force: true });
return {
success: false,
error: `Invalid subpath in source: ${source}`,
};
}
const skills = discoverSkills(searchDir);
return {
success: true,
path: searchDir,
tempRoot: tempDir,
skills: skills.map((s) => s.name),
discoveredSkills: skills.map((s) => ({
name: s.name,
dirName: basename(s.path),
path: s.path,
})),
};
} catch (error) {
if (existsSync(tempDir)) {
rmSync(tempDir, { recursive: true, force: true });
}
const message = error instanceof Error ? error.message : String(error);
return { success: false, error: `Failed to clone: ${message}` };
}
}
private isSkillsShSource(source: string): boolean {
return (
source.startsWith("skills.sh/") ||
source.startsWith("https://skills.sh/") ||
source.startsWith("http://skills.sh/")
);
}
}
+1 -1
View File
@@ -12,7 +12,7 @@ import { discoverSkills, extractFrontmatter } from '../skills.js';
export const KNOWN_SKILL_REPOS = [
{ owner: 'anthropics', repo: 'courses', description: 'Anthropic official courses and skills' },
{ owner: 'vercel-labs', repo: 'ai-sdk-preview-internal-knowledge-base', description: 'Vercel AI SDK skills' },
{ owner: 'composioHQ', repo: 'awesome-claude-code-skills', description: 'Curated Claude Code skills' },
{ owner: 'composioHQ', repo: 'awesome-claude-skills', description: 'Curated Claude Code skills' },
] as const;
/**
+30 -17
View File
@@ -10,7 +10,10 @@ export interface ExternalSkill {
export interface ExternalRegistry {
name: string;
search(query: string, options?: { limit?: number; timeoutMs?: number }): Promise<ExternalSkill[]>;
search(
query: string,
options?: { limit?: number; timeoutMs?: number },
): Promise<ExternalSkill[]>;
}
export interface FederatedResult {
@@ -22,16 +25,21 @@ export interface FederatedResult {
export class RateLimitError extends Error {
constructor(registry: string) {
super(`Rate limited by ${registry} API. Authenticate with a token or wait before retrying.`);
this.name = 'RateLimitError';
super(
`Rate limited by ${registry} API. Authenticate with a token or wait before retrying.`,
);
this.name = "RateLimitError";
}
}
export class GitHubSkillRegistry implements ExternalRegistry {
name = 'github';
private baseUrl = 'https://api.github.com';
name = "github";
private baseUrl = "https://api.github.com";
async search(query: string, options?: { limit?: number; timeoutMs?: number }): Promise<ExternalSkill[]> {
async search(
query: string,
options?: { limit?: number; timeoutMs?: number },
): Promise<ExternalSkill[]> {
const limit = options?.limit ?? 20;
const timeoutMs = options?.timeoutMs ?? 10_000;
const searchQuery = `SKILL.md ${query} in:path,file`;
@@ -41,8 +49,8 @@ export class GitHubSkillRegistry implements ExternalRegistry {
try {
const headers: Record<string, string> = {
Accept: 'application/vnd.github.v3+json',
'User-Agent': 'skillkit-cli',
Accept: "application/vnd.github.v3+json",
"User-Agent": "skillkit-cli",
};
const token = process.env.GITHUB_TOKEN || process.env.GH_TOKEN;
if (token) {
@@ -89,15 +97,15 @@ export class GitHubSkillRegistry implements ExternalRegistry {
if (seen.has(repo)) continue;
seen.add(repo);
const pathParts = item.path.split('/');
const pathParts = item.path.split("/");
const skillName =
pathParts.length > 1
? pathParts[pathParts.length - 2]
: repo.split('/').pop() || repo;
: repo.split("/").pop() || repo;
skills.push({
name: skillName,
description: item.repository.description || '',
description: item.repository.description || "",
source: item.repository.html_url,
registry: this.name,
path: item.path,
@@ -115,7 +123,9 @@ export class GitHubSkillRegistry implements ExternalRegistry {
}
}
export { CommunityRegistry } from './community.js';
export { CommunityRegistry } from "./community.js";
export { SkillsShRegistry, resolveSkillsShUrl } from "./skills-sh.js";
export type { SkillsShStats } from "./skills-sh.js";
export class FederatedSearch {
private registries: ExternalRegistry[] = [];
@@ -124,10 +134,15 @@ export class FederatedSearch {
this.registries.push(registry);
}
async search(query: string, options?: { limit?: number }): Promise<FederatedResult> {
async search(
query: string,
options?: { limit?: number; timeoutMs?: number },
): Promise<FederatedResult> {
const limit = options?.limit ?? 20;
const results = await Promise.allSettled(
this.registries.map((r) => r.search(query, { limit })),
this.registries.map((r) =>
r.search(query, { limit, timeoutMs: options?.timeoutMs }),
),
);
const allSkills: ExternalSkill[] = [];
@@ -135,11 +150,9 @@ export class FederatedSearch {
for (let i = 0; i < results.length; i++) {
const result = results[i];
if (result.status === 'fulfilled' && result.value.length > 0) {
if (result.status === "fulfilled" && result.value.length > 0) {
allSkills.push(...result.value);
activeRegistries.push(this.registries[i].name);
} else if (result.status === 'rejected' && result.reason instanceof RateLimitError) {
throw result.reason;
}
}
+190
View File
@@ -0,0 +1,190 @@
import type { ExternalRegistry, ExternalSkill } from "./index.js";
const SKILLS_SH_BASE = "https://skills.sh";
const SKILLS_SH_CACHE_TTL = 10 * 60 * 1000; // 10 minutes
export interface SkillsShStats {
rank: number;
installs: number;
name: string;
source: string;
skillName: string;
}
interface CachedLeaderboard {
skills: ExternalSkill[];
fetchedAt: number;
}
export class SkillsShRegistry implements ExternalRegistry {
name = "skills.sh";
private cache: CachedLeaderboard | null = null;
async search(
query: string,
options?: { limit?: number; timeoutMs?: number },
): Promise<ExternalSkill[]> {
const limit = options?.limit ?? 20;
const skills = await this.fetchLeaderboard(options?.timeoutMs);
const q = query.toLowerCase();
return skills
.filter(
(s) =>
s.name.toLowerCase().includes(q) ||
s.description.toLowerCase().includes(q) ||
s.source.toLowerCase().includes(q),
)
.slice(0, limit);
}
async getLeaderboard(
limit = 50,
timeoutMs?: number,
): Promise<ExternalSkill[]> {
const skills = await this.fetchLeaderboard(timeoutMs);
return skills.slice(0, limit);
}
async getSkillStats(
owner: string,
repo: string,
skillName: string,
): Promise<SkillsShStats | null> {
const skills = await this.fetchLeaderboard();
const source = `${owner}/${repo}`;
for (let i = 0; i < skills.length; i++) {
const skill = skills[i];
if (skill.name === skillName && skill.source.endsWith(`/${source}`)) {
return {
rank: i + 1,
installs: skill.stars ?? 0,
name: skill.name,
source: skill.source,
skillName,
};
}
}
return null;
}
private async fetchLeaderboard(timeoutMs = 15_000): Promise<ExternalSkill[]> {
if (this.cache && Date.now() - this.cache.fetchedAt < SKILLS_SH_CACHE_TTL) {
return this.cache.skills;
}
const controller = new AbortController();
const timer = setTimeout(() => controller.abort(), timeoutMs);
try {
const response = await fetch(SKILLS_SH_BASE, {
headers: {
Accept: "text/html",
"User-Agent": "skillkit-cli",
},
signal: controller.signal,
});
if (!response.ok) return this.cache?.skills ?? [];
const html = await response.text();
const skills = this.parseLeaderboard(html);
this.cache = { skills, fetchedAt: Date.now() };
return skills;
} catch {
return this.cache?.skills ?? [];
} finally {
clearTimeout(timer);
}
}
private parseLeaderboard(html: string): ExternalSkill[] {
const skills: ExternalSkill[] = [];
const lines = html.split("\n");
for (const line of lines) {
// Match patterns like: [1vercel-labs/skills290.0K] from the page links
const hrefMatch = line.match(
/href="\/([^/]+)\/([^/]+)\/([^"]+)".*?(\d[\d,.]*[KMB]?)\s*<\/a>/,
);
if (hrefMatch) {
const [, owner, repo, skillName, installStr] = hrefMatch;
const installs = this.parseInstallCount(installStr);
skills.push({
name: skillName,
description: `${owner}/${repo}`,
source: `https://github.com/${owner}/${repo}`,
registry: this.name,
path: skillName,
stars: installs,
});
}
}
// Fallback: try simpler pattern matching if structured parsing found nothing
if (skills.length === 0) {
const simplePattern = /skills\.sh\/([^/]+)\/([^/]+)\/([^/"]+)/g;
let match;
while ((match = simplePattern.exec(html)) !== null) {
const [, owner, repo, skillName] = match;
skills.push({
name: skillName,
description: `${owner}/${repo}`,
source: `https://github.com/${owner}/${repo}`,
registry: this.name,
path: skillName,
});
}
}
return skills;
}
private parseInstallCount(str: string): number {
if (!str) return 0;
const cleaned = str.replace(/,/g, "");
const multiplier = cleaned.endsWith("K")
? 1_000
: cleaned.endsWith("M")
? 1_000_000
: cleaned.endsWith("B")
? 1_000_000_000
: 1;
const num = parseFloat(cleaned.replace(/[KMB]$/, ""));
return Math.round(num * multiplier);
}
}
function parseSkillsShParts(
source: string,
): { owner: string; repo: string; rest?: string } | null {
const cleaned = source
.replace(/^https?:\/\//, "")
.replace(/^skills\.sh\//, "");
const parts = cleaned.split("/").filter(Boolean);
if (parts.length < 2) return null;
return {
owner: parts[0],
repo: parts[1],
rest: parts.length > 2 ? parts.slice(2).join("/") : undefined,
};
}
export function resolveSkillsShUrl(
source: string,
): { owner: string; repo: string; skillName?: string } | null {
const parsed = parseSkillsShParts(source);
if (!parsed) return null;
return {
owner: parsed.owner,
repo: parsed.repo,
skillName: parsed.rest,
};
}
+2 -2
View File
@@ -125,13 +125,13 @@ export function formatSarif(result: ScanResult): string {
driver: {
name: 'skillkit-scanner',
version: SCANNER_VERSION,
informationUri: 'https://agenstskills.com',
informationUri: 'https://skillkit.sh',
rules: [...rules.values()].map((r) => ({
id: r.ruleId,
name: r.ruleId,
shortDescription: { text: r.title },
fullDescription: { text: r.description },
helpUri: 'https://agenstskills.com/docs/security',
helpUri: 'https://skillkit.sh/docs/security',
defaultConfiguration: {
level: severityToSarif[r.severity] ?? 'warning',
},
+62 -51
View File
@@ -1,66 +1,77 @@
import { z } from 'zod';
import { z } from "zod";
export const AgentType = z.enum([
'claude-code',
'codex',
'cursor',
'antigravity',
'opencode',
'gemini-cli',
'amp',
'clawdbot',
'droid',
'github-copilot',
'goose',
'kilo',
'kiro-cli',
'roo',
'trae',
'windsurf',
'universal',
'cline',
'codebuddy',
'commandcode',
'continue',
'crush',
'factory',
'mcpjam',
'mux',
'neovate',
'openhands',
'pi',
'qoder',
'qwen',
'vercel',
'zencoder',
'devin',
'aider',
'sourcegraph-cody',
'amazon-q',
'augment-code',
'replit-agent',
'bolt',
'lovable',
'tabby',
'tabnine',
'codegpt',
'playcode-agent',
"claude-code",
"codex",
"cursor",
"antigravity",
"opencode",
"gemini-cli",
"amp",
"clawdbot",
"droid",
"github-copilot",
"goose",
"kilo",
"kiro-cli",
"roo",
"trae",
"windsurf",
"universal",
"cline",
"codebuddy",
"commandcode",
"continue",
"crush",
"factory",
"mcpjam",
"mux",
"neovate",
"openhands",
"pi",
"qoder",
"qwen",
"vercel",
"zencoder",
"devin",
"aider",
"sourcegraph-cody",
"amazon-q",
"augment-code",
"replit-agent",
"bolt",
"lovable",
"tabby",
"tabnine",
"codegpt",
"playcode-agent",
]);
export type AgentType = z.infer<typeof AgentType>;
export const GitProvider = z.enum(['github', 'gitlab', 'bitbucket', 'local', 'wellknown']);
export const GitProvider = z.enum([
"github",
"gitlab",
"bitbucket",
"local",
"wellknown",
"skills-sh",
]);
export type GitProvider = z.infer<typeof GitProvider>;
export const SkillFrontmatter = z.object({
name: z.string()
name: z
.string()
.min(1)
.max(64)
.regex(/^[a-z0-9]+(-[a-z0-9]+)*$/, 'Skill name must be lowercase alphanumeric with hyphens, no leading/trailing/consecutive hyphens'),
.regex(
/^[a-z0-9]+(-[a-z0-9]+)*$/,
"Skill name must be lowercase alphanumeric with hyphens, no leading/trailing/consecutive hyphens",
),
description: z.string().min(1).max(1024),
license: z.string().optional(),
compatibility: z.string().max(500).optional(),
metadata: z.record(z.string()).optional(),
'allowed-tools': z.string().optional(),
"allowed-tools": z.string().optional(),
version: z.string().optional(),
author: z.string().optional(),
tags: z.array(z.string()).optional(),
@@ -82,7 +93,7 @@ export const SkillMetadata = z.object({
});
export type SkillMetadata = z.infer<typeof SkillMetadata>;
export const SkillLocation = z.enum(['project', 'global']);
export const SkillLocation = z.enum(["project", "global"]);
export type SkillLocation = z.infer<typeof SkillLocation>;
export const Skill = z.object({
@@ -97,7 +108,7 @@ export type Skill = z.infer<typeof Skill>;
export const SkillkitConfig = z.object({
version: z.literal(1),
agent: AgentType.default('universal'),
agent: AgentType.default("universal"),
skillsDir: z.string().optional(),
enabledSkills: z.array(z.string()).optional(),
disabledSkills: z.array(z.string()).optional(),
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@skillkit/extension",
"version": "1.19.1",
"version": "1.19.2",
"private": true,
"description": "Chrome extension to save any webpage as an AI agent skill",
"type": "module",
+1 -1
View File
@@ -1,6 +1,6 @@
import type { SaveResponse, ErrorResponse, ExtensionMessage } from './types';
const API_URL = 'https://agenstskills.com/api/save-skill';
const API_URL = 'https://skillkit.sh/api/save-skill';
chrome.runtime.onInstalled.addListener(() => {
chrome.contextMenus.create({
@@ -14,7 +14,7 @@ How it works:
- Right-click any page and select "Save page as Skill"
- Select text, right-click, and choose "Save selection as Skill"
When you save a page, the extension sends the page URL to agenstskills.com where it is converted to clean markdown with auto-generated tags and YAML frontmatter. The resulting skill file is downloaded to your computer. No page content, browsing history, or personal data is ever sent — only the URL of the page you choose to save.
When you save a page, the extension sends the page URL to our server (skillkit.sh / agenstskills.com) where it is converted to clean markdown with auto-generated tags and YAML frontmatter. The resulting skill file is downloaded to your computer. No page content, browsing history, or personal data is ever sent — only the URL of the page you choose to save.
Saving selected text works entirely offline with no network requests.
@@ -29,7 +29,7 @@ Features:
- Works on any webpage
- No account or API key required
Part of the SkillKit ecosystem: https://agenstskills.com
Part of the SkillKit ecosystem: https://skillkit.sh
## Category
Developer Tools
@@ -38,13 +38,13 @@ Developer Tools
English
## Website
https://agenstskills.com
https://skillkit.sh
## Support URL
https://github.com/rohitg00/skillkit/issues
## Privacy Policy URL
https://agenstskills.com/privacy.html
https://skillkit.sh/privacy.html
## Single Purpose
Save webpages as AI agent skill files (SKILL.md) for use with coding AI agents.
@@ -56,10 +56,10 @@ Save webpages as AI agent skill files (SKILL.md) for use with coding AI agents.
## Data Usage Disclosure (for Chrome Web Store Privacy tab)
- Does the extension use remote code? No
- Does it collect user data? No personal data. The page URL is sent to agenstskills.com when the user clicks save.
- Does it collect user data? No personal data. The page URL is sent to our server (skillkit.sh / agenstskills.com) when the user clicks save.
- Data type: Website content (URL only, on user action)
- Use: Required for core functionality (converting webpage to skill file)
- Transfer: Sent to agenstskills.com (our own server) over HTTPS
- Transfer: Sent to our server (skillkit.sh / agenstskills.com) over HTTPS
- Not sold to third parties
- Not used for creditworthiness or lending
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@skillkit/mcp-memory",
"version": "1.19.1",
"version": "1.19.2",
"description": "MCP (Model Context Protocol) server for SkillKit persistent memory",
"type": "module",
"main": "./dist/index.js",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@skillkit/mcp",
"version": "1.19.1",
"version": "1.19.2",
"description": "MCP server for SkillKit skill discovery — agent-native skill search",
"type": "module",
"main": "./dist/index.js",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@skillkit/memory",
"version": "1.19.1",
"version": "1.19.2",
"description": "CozoDB-backed semantic memory with embeddings for SkillKit",
"type": "module",
"main": "./dist/index.js",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@skillkit/mesh",
"version": "1.19.1",
"version": "1.19.2",
"description": "Peer mesh network for multi-machine agent distribution",
"type": "module",
"main": "./dist/index.js",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@skillkit/messaging",
"version": "1.19.1",
"version": "1.19.2",
"description": "Inter-agent messaging system for SkillKit",
"type": "module",
"main": "./dist/index.js",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@skillkit/resources",
"version": "1.19.1",
"version": "1.19.2",
"description": "Bundled resources for SkillKit - agents, commands, profiles, guidelines, and hooks",
"type": "module",
"main": "./dist/index.js",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@skillkit/tui",
"version": "1.19.1",
"version": "1.19.2",
"description": "Unified Terminal UI for SkillKit - Built on OpenTUI",
"type": "module",
"main": "./dist/index.js",
+1 -1
View File
@@ -12,7 +12,7 @@ import {
Timeline, Lineage, Handoff,
} from './screens/index.js';
const DOCS_URL = 'https://agenstskills.com/docs';
const DOCS_URL = 'https://skillkit.sh/docs';
function openUrl(url: string): void {
if (process.platform === 'win32') {
+1 -1
View File
@@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://skillkit.dev/schemas/skill.schema.json",
"title": "Skill Frontmatter",
"description": "Schema for SKILL.md frontmatter validation (follows Agent Skills spec: https://agenstskills.com)",
"description": "Schema for SKILL.md frontmatter validation (follows Agent Skills spec: https://skillkit.sh)",
"type": "object",
"required": ["name", "description"],
"properties": {
+2 -2
View File
@@ -8,7 +8,7 @@ export class ValidateCommand extends Command {
static override paths = [['validate'], ['v']];
static override usage = Command.Usage({
description: 'Validate skill(s) against the Agent Skills specification (agenstskills.com)',
description: 'Validate skill(s) against the Agent Skills specification (skillkit.sh)',
examples: [
['Validate a skill directory', '$0 validate ./my-skill'],
['Validate all skills in a directory', '$0 validate ./skills --all'],
@@ -77,7 +77,7 @@ export class ValidateCommand extends Command {
if (hasErrors) {
console.log(chalk.red('Validation failed'));
console.log(chalk.dim('See https://agenstskills.com for the complete format'));
console.log(chalk.dim('See https://skillkit.sh for the complete format'));
return 1;
}