Agent Skill Eval Kit — Static Security & Quality Auditor

    by SunQi

    1

    Zero-dependency Python CLI & 5-gate evaluation rubric to audit AI Agent Skills (SKILL.md) for trigger hygiene, hardcoded secrets, shell/SQL injection, unguarded DB writes, and context-window bloat.

    Free

    Security scanned

    Works with the AI Agents you already use

    Agent Skill Eval Kit — Static Security & Quality Auditor

    Example session with this skill installed

    Run a strict audit on the ./weather-agent-skill directory and report any P0 security risks or spec violations.

    • Read your context and instructions
    • Compiled the agent eval kit

    I have completed the static security audit and spec compliance check for the ./weather-agent-skill directory. The audit identified two P0 blocking issues and one P1 hygiene finding.

    Audit Results Summary

    SeverityCategoryFile:LineFinding
    P0Securityscripts/fetch.py:14Hardcoded API Secret detected in variable AUTH_KEY
    P0Injectionscripts/db.py:42Unsafe SQL interpolation detected; use parameterized queries
    P1SpecSKILL.md:4Missing required YAML field: version in frontmatter
    P2BudgetSKILL.mdFile exceeds recommended 350-line budget (currently 412 lines)

    Gate Evaluation

    1. Gate 1 (Triggers): PASS. Clear routing boundaries defined in SKILL.md.
    2. Gate 2 (Logic): FAIL. External script relies on LLM-generated JSON without schema validation.
    3. Gate 3 (Context): WARN. Log persistence is missing; context-window bloat likely during long runs.
    4. Gate 4 (Security): FAIL. See P0 findings above regarding secrets and SQLi.
    5. Gate 5 (Resilience): PASS. Script includes basic try/except blocks for network timeouts.

    Next steps

    1. Move the AUTH_KEY in scripts/fetch.py to an environment variable.
    2. Refactor scripts/db.py to use ? placeholders for all SQL queries to prevent injection.
    3. Add the version field to the SKILL.md YAML frontmatter and prune the 'Examples' section to stay under the 350-line budget.
    PASS. Clear routing boundaries defined in SKILL.md

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

    About this skill

    Most AI Agent Skills look great in demos but break in real engineering workflows—overbroad triggers hijack unrelated prompts, raw logs blow up the context window, or helper scripts quietly ship hardcoded credentials, shell=True, unsafe deserialization, SQL interpolation, or unguarded writes.

    Agent Skill Eval Kit gives your coding agent a deterministic static auditor (scripts/skill_auditor.py, Python 3.9+ stdlib only, zero external packages) paired with a field-tested 5-Gate Evaluation Rubric (references/skill-eval-rubric.md):

    • G1 — Trigger & Frontmatter Hygiene: Validates SKILL.md, YAML name/description spec format and limits, and flags overly broad trigger phrases.
    • G3 — Context Budget & Log Governance: Detects oversized SKILL.md files and unbounded stdout log dumps.
    • G4 — Code-Level Security Guardrails (P0/P1): Catches hardcoded secrets/private keys, curl/wget piped to shell, dynamic eval/exec, os.system, shell=True, unsafe pickle/yaml deserialization, SQL string interpolation, unguarded DB writes, and prompt-override lines.
    • G5 — Negative-Path & Test Coverage: Verifies test suites for error handling and dirty inputs.
    • CI-Ready: Outputs Markdown or JSON reports (EN/ZH) and exits non-zero on P0 findings.

    Open Source (MIT License, Free) — Full source code, CI workflows, positive/negative test fixtures, and unit tests: https://github.com/sunqi-2025/agent-skill-eval-kit

    Requires target directory to contain a SKILL.md file. Auditor script requires Python 3.9+ standard library. Does not support non-agent codebases.

    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 10 days ago

    • Free with an Agensi account

    Software
    Python

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed10 days ago

    What's inside

    Creator

    S

    SunQi

    3 skills on Agensi

    Frequently Asked Questions

    Zero-dependency Python CLI & 5-gate evaluation rubric to audit AI Agent Skills (SKILL.md) for trigger hygiene, hardcoded secrets, shell/SQL injection, unguarded DB writes, and context-window bloat.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use Agent Skill Eval Kit — Static Security & Quality Auditor on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    New in Testing & Debugging

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

    Free