optimizing-sql-queries

Pass

Audited by Gen Agent Trust Hub on May 6, 2026

Risk Level: SAFEPROMPT_INJECTION
Full Analysis
  • [SAFE]: The skill's primary purpose is to provide guidance and best practices for SQL query optimization, which is a standard development task.
  • [SAFE]: All external resource links point to official documentation for PostgreSQL and MySQL (trusted/well-known services) and reputable technical blogs.
  • [PROMPT_INJECTION]: The skill presents an indirect prompt injection surface due to the nature of database optimization tasks.
  • Ingestion points: The skill instructions in SKILL.md and diagnostic scripts in scripts/ process external data including raw SQL query text and execution plan outputs (e.g., EXPLAIN ANALYZE).
  • Boundary markers: No explicit delimiters or 'ignore' instructions are used when interpolating or processing these inputs.
  • Capability inventory: The skill frontmatter permits access to powerful database CLI tools via Bash(psql:*), Bash(mysql:*), and Bash(mongosh:*). The Python scripts use pathlib for file system traversal.
  • Sanitization: There is no evidence of sanitization or validation of the ingested SQL or execution plan content before processing.
  • [SAFE]: The bundled scripts (analyze_query.py, explain_query.sh) are benign. They are used to calculate file metrics such as size and count, and do not perform network operations or access sensitive system files.
Audit Metadata
Risk Level
SAFE
Analyzed
May 6, 2026, 06:04 AM