Documentation

SkillsGate CLI & MCP

Everything you need to search, install, publish, and manage AI agent skills from the command line or through your AI coding assistant.

Getting started

Install the SkillsGate CLI globally to manage skills and auto-configure MCP for your AI tools.

bash
# Install globally
npm install -g skillsgate

# Auto-configure MCP for your AI tools
skillsgate setup

# Or use without installing
npx skillsgate search "seo audit"

After installing, run skillsgate setup to automatically detect and configure MCP for Claude Code, Cursor, Windsurf, and other supported AI tools.

CLI commands

The CLI provides 13 commands for managing skills. All commands accept global flags listed in the options section.

CommandDescription
skillsgate add <source>Install skills from SkillsGate (@user/slug), GitHub (owner/repo), or local path
skillsgate remove [name]Uninstall skills
skillsgate listShow installed skills
skillsgate update [name]Check and apply updates
skillsgate syncSync skills from node_modules
skillsgate search <query>Search for skills (requires auth)
skillsgate publish [path]Publish a skill to SkillsGate
skillsgate scan <source>Security-scan skills before installing
skillsgate loginAuthenticate with SkillsGate
skillsgate logoutSign out
skillsgate whoamiShow current user
skillsgate setupConfigure MCP for AI tools
skillsgate mcpRun as MCP server (stdio transport)

CLI options

Global flags available across commands.

FlagDescription
-g, --globalUse global scope (~/.agents/skills/)
-y, --yesSkip confirmation prompts
-a, --agent <id>Target specific agent(s)
--allSelect all skills/agents
--copyUse copy mode instead of symlink
-s, --scannerForce a specific coding agent (scan only)
--timeout <sec>Agent timeout, default 120 (scan only)
--no-shareDon't share results with community (scan only)

MCP server setup

The fastest way to configure MCP is to run skillsgate setup, which auto-detects your installed AI tools and configures them. You can also set it up manually for each tool.

Claude Code

Add to ~/.claude.json

json
{
  "mcpServers": {
    "skillsgate": {
      "command": "skillsgate",
      "args": ["mcp"]
    }
  }
}

Cursor

Add to ~/.cursor/mcp.json

json
{
  "mcpServers": {
    "skillsgate": {
      "command": "skillsgate",
      "args": ["mcp"]
    }
  }
}

Windsurf

Add to ~/.windsurf/mcp.json

json
{
  "mcpServers": {
    "skillsgate": {
      "command": "skillsgate",
      "args": ["mcp"]
    }
  }
}

Auto-detect all tools

Run skillsgate setup to automatically detect and configure all installed AI tools at once.

MCP tools reference

When running as an MCP server (skillsgate mcp), 12 tools are available to AI agents.

ToolDescription
skillsgate_searchSearch the SkillsGate registry
skillsgate_addInstall skills from any source
skillsgate_removeRemove installed skills
skillsgate_listList installed skills
skillsgate_updateUpdate skills to latest versions
skillsgate_syncSync from node_modules
skillsgate_publishPublish a skill
skillsgate_publish_initGenerate SKILL.md template
skillsgate_scanSecurity scan skills
skillsgate_auth_statusCheck authentication
skillsgate_whoamiCurrent user info
skillsgate_logoutSign out

Publishing a skill

Publish your own skills to SkillsGate so others can discover and install them.

01

Initialize SKILL.md

Generate a SKILL.md template in your skill directory with the correct frontmatter structure.

$ skillsgate publish --init
02

Write your instructions

Edit the generated SKILL.md with your skill's instructions. Include clear, actionable guidance that an AI agent can follow.

03

Validate

Run a dry-run to catch any issues before publishing. This checks name format, file sizes, and frontmatter.

$ skillsgate publish --dry-run
04

Publish

Publish the skill to SkillsGate. You'll be prompted to choose visibility (public or private).

$ skillsgate publish

Validation rules

FieldRequirement
Name1-64 chars, lowercase a-z, 0-9, hyphens. No start/end hyphen. Must match directory name.
Description1-1024 characters
SKILL.mdMust exist with YAML frontmatter containing name and description
Total size5 MB maximum
Per file1 MB maximum
SKILL.md size500 KB maximum

Security scanning

Scan any skill before installing to detect prompt injection, data exfiltration, malicious commands, and more. Scans use your own AI coding agent for full transparency.

bash
# Scan a SkillsGate skill
skillsgate scan @username/skill-name

# Scan a GitHub repo
skillsgate scan owner/repo

# Scan a specific skill in a repo
skillsgate scan owner/repo@skill-name

# Scan a local path
skillsgate scan ./local/skill

How scanning works

The scan command invokes an AI coding agent (Claude Code, Codex CLI, or others) in read-only mode to analyze the skill for security threats. After scanning, you can optionally share your results with the community.

Terminal

$ skillsgate scan @vercel/v0

Select a coding agent to run the scan:

Claude Code (recommended - read-only mode)

Scanning with Claude Code...

Risk: CLEAN

No security issues found.

Share your scan results with the SkillsGate community?

Yes, share

Scan submitted to SkillsGate community.

Threat categories

Scans check for 8 categories of threats:

Prompt injection
Data exfiltration
Credential harvesting
Malicious commands
Hidden instructions
Obfuscated code
Unauthorized network access
File system manipulation

Supported agents

SkillsGate works with any AI coding tool that supports the SKILL.md format or the Model Context Protocol. Currently 17+ agents are supported.

Claude Code
Cursor
Windsurf
GitHub Copilot
Codex CLI
Cline
Continue
Amp
Goose
Junie
Kilo Code
OpenCode
OpenClaw
Pear AI
Roo Code
Trae
Zed