> ## Documentation Index
> Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Skills Registry

> Create versioned, team-shared skills in Portkey and sync them to Claude Code, Cursor, Codex, and more with one command.

<Info>
  Agent Skills is available on all Portkey [plans](https://portkey.ai/pricing). The sync CLI requires Node.js 18+.
</Info>

[Agent Skills](https://agentskills.io) are the standard for giving AI coding assistants domain-specific knowledge. A skill is a `SKILL.md` file that tells your agent how your team works — coding standards, review checklists, security patterns, API conventions.

Portkey is a skills registry for your team. Create and version skills in Prompt Engineering Studio, sync them to any agent with one command. When you publish an update, every engineer gets it on their next sync.

***

## How it works

Skills in Portkey are stored as versioned, team-shared assets. The sync CLI pulls them down and writes them to the correct directory for each agent automatically:

| Agent          | Skills directory    |
| -------------- | ------------------- |
| Claude Code    | `.claude/skills/`   |
| Cursor         | `.cursor/skills/`   |
| Codex          | `.codex/skills/`    |
| OpenCode       | `.opencode/skills/` |
| GitHub Copilot | `.github/skills/`   |

No additional configuration needed — the agent discovers `SKILL.md` files and uses the `description` field to decide when to activate each skill.

***

## Quick start

<Tip>
  Using Claude Code or Codex? The [Portkey CLI](/guides/coding-agents/agent-cli) sets up gateway routing, MCP servers, and skills in one command:

  ```bash theme={"system"}
  npx portkey
  ```
</Tip>

### Step 1: Create a skill in Portkey

In [Prompt Engineering Studio](https://app.portkey.ai/prompts), create a new Partial. Skills are stored as Prompt Partials with a YAML frontmatter block:

<Frame>
  <img src="https://mintcdn.com/portkey-docs/VWP2Y8zxPP5N4jE6/images/product/ai-gateway/ai-28.avif?fit=max&auto=format&n=VWP2Y8zxPP5N4jE6&q=85&s=5f4d65b9bf20f845747db90d1bf9d9ab" alt="Creating a skill partial in Portkey" width="2304" height="803" data-path="images/product/ai-gateway/ai-28.avif" />
</Frame>

```markdown theme={"system"}
---
name: code-reviewer
description: Expert code review assistant. Use when reviewing code, identifying bugs, or suggesting improvements.
---

# Code Review Expert

Your instructions here...
```

The `name` field becomes the directory name on disk (`code-reviewer/SKILL.md`). The `description` tells the agent when to activate the skill.

### Step 2: Sync to your machine

```bash theme={"system"}
PORTKEY_API_KEY=your-key npx portkey skills sync
```

<Card title="Portkey CLI reference" icon="terminal" href="/guides/coding-agents/agent-cli">
  Full CLI reference — gateway routing, MCP, and all options
</Card>

***

## Authoring skills

### The SKILL.md format

Every skill must start with YAML frontmatter containing `name` and `description`:

```markdown theme={"system"}
---
name: your-skill-name
description: What this skill does and when the agent should use it. Be specific — the agent reads this to decide when to activate the skill.
---

# Skill Title

Your instructions here...
```

**`name`** — lowercase, hyphens only, max 64 characters. Becomes the directory name on disk.

**`description`** — tells the agent when to activate this skill. Write it like a trigger condition: *"Use when reviewing Python code, or when the user asks about code quality, performance, or testing."*

## Versioning

Skills follow the same versioning workflow as all Portkey Prompt Partials:

1. **Edit** — make changes in the partial editor
2. **Save** — creates a new draft version (doesn't affect what's published)
3. **Publish** — promotes a version to production; everyone who syncs next gets it

<Frame>
  <img src="https://mintcdn.com/portkey-docs/nDVSDSKLH6tq-r5C/images/product/prompts/prompt-library.png?fit=max&auto=format&n=nDVSDSKLH6tq-r5C&q=85&s=f941673dd2a66d159b8f01858c5e135f" alt="Skills listed as versioned prompt partials in Portkey Prompt Engineering Studio" width="1024" height="481" data-path="images/product/prompts/prompt-library.png" />
</Frame>

### Rolling back

If a new version causes issues:

1. Open the skill in Portkey → Version History
2. Select the previous version → **Publish**
3. Team re-runs `sync` → rolled back immediately

***

## Using skills in agents

After syncing, skills are written to the agent's skills directory and discovered automatically at session start.

**Claude Code** reads from `.claude/skills/` — skills are available immediately in your next Claude Code session.

**Cursor** reads from `.cursor/skills/` — skills appear as active context in Cursor's rule system.

**Codex** reads from `.codex/skills/` — skills are loaded when Codex starts a session in the project.

## Next steps

<CardGroup cols={2}>
  <Card title="Claude Code" icon="terminal" href="/integrations/coding-agents/claude-code">
    Gateway routing, MCP, and skills for Claude Code
  </Card>

  <Card title="Cursor" icon="cursor" href="/integrations/coding-agents/cursor">
    Add skills to Cursor's rule system
  </Card>

  <Card title="OpenAI Codex" icon="code" href="/integrations/coding-agents/codex">
    Load skills into Codex sessions
  </Card>

  <Card title="All coding agents" icon="grid" href="/integrations/coding-agents">
    Cline, Roo Code, Goose, opencode, and more
  </Card>
</CardGroup>
