# SkillRepo — for agents

SkillRepo is the open distribution and governance layer for AI agent skills, implementing the [agentskills.io](https://agentskills.io/specification) specification. This document is for coding agents and dev-environment integrations that consume SkillRepo programmatically.

## About

SkillRepo owns two category terms — Skill Distribution and Skill Governance — told through three value pillars:

- Distribute — one library reaches every agent and stays current.
- Govern — approved-version pins, per-repo scoping, drift visibility, organization-wide recall.
- Trust — a two-layer A–F safety grade, provenance, and verified GitHub identity on what you pull; your own skills private by default.

Grades are signals, not certification — review a skill before you run it. 36.8% of public skills contain a security flaw (Snyk ToxicSkills, February 2026: https://snyk.io/blog/toxicskills-malicious-ai-agent-skills-clawhub/).

## Three surfaces

| Surface | URL | Auth | Use when |
|---|---|---|---|
| Platform MCP | `https://skillrepo.dev/api/mcp` | `sk_live_*` key or OAuth 2.1 | A remote agent loads your account's skills, or a standalone MCP client (Claude Desktop/Cowork, ChatGPT) connects as a custom connector. Local dev environments use the CLI instead. |
| Catalog MCP | `https://skillrepo.dev/api/v1/catalog-mcp` | `ck_live_*` catalog key | You're building discovery on top of the public catalog |
| Catalog REST | `https://skillrepo.dev/api/v1/catalog/` | `ck_live_*` catalog key | You're consuming SkillRepo without MCP |

## Progressive disclosure

Skills follow the agentskills.io three-tier model. Load only what you need:

1. **Tier 1 (metadata, ~100 tokens)** — name + description only. Use this to decide whether a skill is relevant. Tools vary by server: Catalog MCP exposes `discover_skills` and `search_skills`; Platform MCP exposes `list_library`. Calling the wrong tool on a server returns `MethodNotFound`.
2. **Tier 2 (instructions, <5000 tokens)** — `get_skill` returns the full manifest including file list (both servers). `get_skill_content` returns SKILL.md body — **Platform MCP only**. Load when you've decided the skill is relevant.
3. **Tier 3 (resources, as needed)** — `get_skill_file` returns individual supporting files (both servers). Load on demand during skill execution.

Do not fetch Tier 2 or Tier 3 content until you've decided the skill is relevant. Fetching everything up-front defeats the token-budget purpose of the tiering.

## Mandatory practices

- **Retry on 429 / 5xx** with exponential backoff. Honor `X-RateLimit-Reset` and `X-DailyQuota-Reset` response headers.
- **Treat 404 as "not found"** — never probe for private skills. Private resources return 404, not 401/403.
- **Never cache `get_skill_content` (Platform MCP) or `get_skill` (both servers) results across sessions.** `currentVersionId` can move; stale instructions are worse than a re-fetch.
- **Never expect raw blob URLs** — all file content is served via proxied endpoints. Do not extract or follow storage URLs if you see them.

## You must never

- **Try to publish skills via MCP.** Both MCP servers are read-only. Skills are authored through git + webhook (see the [publishing guide](https://skillrepo.dev/docs)) — there is no programmatic MCP publish tool.
- **Use `list_library` as a search interface.** It's account-scoped — it enumerates the caller's library. Use `discover_skills` or `search_skills` on the catalog for cross-account discovery.

## Human-required setup

Pause and ask the user for the following — do not hallucinate values:

- A catalog API key (`ck_live_...`). Provisioned via `hello@skillrepo.dev` — there is no self-serve flow.
- The user's preferred MCP endpoint if they have both platform and catalog keys.

## References

- [Connect an MCP client](https://skillrepo.dev/docs/mcp-clients): Set up Claude Desktop (Cowork), ChatGPT, or any MCP client as a custom connector (OAuth)
- [llms.txt](https://skillrepo.dev/llms.txt): Discovery index with links to all public surfaces
- [llms-full.txt](https://skillrepo.dev/llms-full.txt): Complete catalog of public skills, designed for LLM ingestion
- [/.well-known/mcp.json](https://skillrepo.dev/.well-known/mcp.json): Machine-readable MCP endpoint listing (provisional schema, pending MCP discovery spec)
- [agentskills.io specification](https://agentskills.io/specification): The authoring format SkillRepo implements
