- Home
- Skills
- Testing & Debugging
- Agent Skill Eval Kit — Static Security & Quality Auditor
Agent Skill Eval Kit — Static Security & Quality Auditor
by SunQi
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
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
| Severity | Category | File:Line | Finding |
|---|---|---|---|
| P0 | Security | scripts/fetch.py:14 | Hardcoded API Secret detected in variable AUTH_KEY |
| P0 | Injection | scripts/db.py:42 | Unsafe SQL interpolation detected; use parameterized queries |
| P1 | Spec | SKILL.md:4 | Missing required YAML field: version in frontmatter |
| P2 | Budget | SKILL.md | File exceeds recommended 350-line budget (currently 412 lines) |
Gate Evaluation
- Gate 1 (Triggers): PASS. Clear routing boundaries defined in SKILL.md.
- Gate 2 (Logic): FAIL. External script relies on LLM-generated JSON without schema validation.
- Gate 3 (Context): WARN. Log persistence is missing; context-window bloat likely during long runs.
- Gate 4 (Security): FAIL. See P0 findings above regarding secrets and SQLi.
- Gate 5 (Resilience): PASS. Script includes basic try/except blocks for network timeouts.
Next steps
- Move the
AUTH_KEYinscripts/fetch.pyto an environment variable. - Refactor
scripts/db.pyto use?placeholders for all SQL queries to prevent injection. - Add the
versionfield to theSKILL.mdYAML frontmatter and prune the 'Examples' section to stay under the 350-line budget.
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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Creator
SunQi
3 skills on Agensi
Frequently Asked Questions
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.