agent check

    by curro garrido

    1

    One-page audit of your Claude Code setup: permissions, hooks, MCP servers and secrets. Tells you what to fix first and exactly how. Reads files only, never runs your code.

    Free

    Security scanned

    Works with the AI Agents you already use

    agent check

    Example session with this skill installed

    Check my Claude Code setup in this project and tell me what to fix first.

    • Read your context and instructions
    • Compiled the agent check

    Real output on the example project in the repo (examples/messy-project):

    messy-project: agent setup check

    4 things to fix before you trust this setup.

    Fix first

    1. .claude/settings.json allows whole tools without limits
      Bash
      Fix: Replace with narrow rules such as Bash(npm test:*).

    2. PostToolUse hook points at a missing file
      .claude/settings.json: ./scripts/format.sh
      Fix: Fix the path or remove the hook; a missing script fails on every event.

    3. MCP server 'tickets' uses plain http
      http://tickets.example.com/mcp
      Fix: Use https; tokens and tool results travel in clear text.

    4. MCP server 'tickets' has a secret written into .mcp.json
      env API_TOKEN is a literal value.
      Fix: Use ${API_TOKEN} and keep the value in the environment.

    Worth fixing

    1. No CLAUDE.md or AGENTS.md
      The agent starts every session without project rules.
      Fix: Add a short CLAUDE.md: how to build, test, and what never to touch.

    2. .env is not in .gitignore
      One git add -A away from leaking keys.
      Fix: Add .env* (and keep .env.example).

    3. .claude/settings.json pre-approves risky commands
      Bash(git push:*)
      Fix: Move these to ask, or narrow them to exact arguments.

    4. PostToolUse hook hides its own failures
      $CLAUDE_PROJECT_DIR/scripts/format.sh || true
      Fix: Let it fail loudly, or log the error; a silent hook looks like a working one.

    When you have a minute

    1. .claude/settings.local.json is not ignored
      Personal permissions can end up shared.
      Fix: Add .claude/settings.local.json to .gitignore.

    2. .claude/settings.json has no deny rules
      Nothing blocks reading .env or secrets folders.
      Fix: Add deny rules such as "Read(./.env*)" and "Read(./secrets/**)".


    What this looked at: project settings, hooks, MCP config, project files for keys and .env files, project instructions.
    What it can't see: how the agent behaves while running, or whether MCP servers connect. It reads files only.

    MCP server 'tickets' has a secret written into .mcp.json

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Ask your agent "check my Claude Code setup" and get a plain one-page report: what to fix first, what's worth tidying, and the exact fix for each item.

    What it checks

    • Permissions in project and user settings: bypass mode, whole tools allowed with no limits, risky commands pre-approved, no deny rules.
    • Hooks: scripts that don't exist, commands that aren't installed, hooks that hide their own errors.
    • MCP servers in .mcp.json: plain http, servers whose command can't be found, keys written straight into the file.
    • Secrets: API keys, tokens, private keys and .env files in the project.
    • Basics: a CLAUDE.md or AGENTS.md, and a .gitignore that keeps .env and personal settings out of git.

    How it works

    Python 3 standard library only. It reads files and never runs your hooks, MCP servers or code. Recognised keys are masked in the report. It exits with 1 when something is in "Fix first", so it also works in CI. After the report, your agent offers each fix and reruns the check to confirm.

    Limits

    It only sees files. It can't see how the agent behaves in a live session or whether MCP servers actually connect. For a human review of that: guraforge.com/agent-check

    Open source (MIT): github.com/campeomsergio-ui/agent-check

    Reads static files only. Cannot monitor live agent behavior, active sessions, or runtime MCP connection status.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 12 days ago

    • Free with an Agensi account

    Accounts
    GitHub
    Software
    Python 3Git

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Write Files

    Allowed Hosts

    raw.githubusercontent.com
    Listed12 days ago

    What's inside

    Creator

    curro garrido

    curro garrido

    2 skills on Agensi

    Frequently Asked Questions

    No, it doesn't block anything itself. It reads your settings, hooks and .mcp.json and tells you where the setup allows risky commands, has no deny rules, or exposes keys, with the exact change to make. You or your agent apply the fixes, then rerun it to confirm.

    This skill is purpose-built for Claude Code environments and projects utilizing the Model Context Protocol (MCP); it specifically audits `.mcp.json` files and Claude-specific project metadata.

    No, for security reasons, the auditor only performs static analysis on your configuration files and does not monitor or intercept live agent sessions or runtime terminal activity.

    SKILL.md, the audit script (audit.py, Python standard library only), the README and the MIT licence. It's free and open source: github.com/campeomsergio-ui/agent-check

    The audit script requires a local Python 3 installation and read-access permissions to the project directory you wish to scan.

    New in Security

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.

    Free