system-prompt-doctor
Pass
Audited by Gen Agent Trust Hub on Sep 21, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes
subprocess.check_callinscripts/render.pyandscripts/test_audit_prompt.py. These calls are used to orchestrate internal utility scripts (render_card.pyandaudit_prompt.py) for rendering result cards and running internal tests. The commands are constructed usingsys.executableand target local file paths within the skill bundle. - [DYNAMIC_EXECUTION]: In
scripts/render_card.py, the skill uses__import__('os')to check for environment variables and includes a conditionalimport cairosvgwithin a try-except block. This is a standard pattern for handling optional dependencies (thecairosvglibrary) for specific tasks like PNG rendering. - [INDIRECT_PROMPT_INJECTION]: The skill's primary function is to ingest and optimize user-provided system prompts, which represents an attack surface for indirect prompt injection.
- Ingestion points: User-specified files are read by
scripts/audit_prompt.pyandscripts/scaffold_promptfoo.py. - Boundary markers: The
scaffold_promptfoo.pyscript appends a "User task:" marker to the ingested prompt content during preparation. - Capability inventory: The skill can execute internal scripts via
subprocessand recommends the use of external tools likepromptfoofor behavioral testing. - Sanitization: The audit logic in
scripts/audit_prompt.pyuses regex to identify prompt engineering patterns but does not explicitly sanitize the content for malicious instructions. - [EXTERNAL_DOWNLOADS]: The skill's documentation (
SKILL.mdandreferences/SOURCES.md) recommends the use ofpromptfooand references public repositories from well-known organizations like Anthropic and Sentry as standard primitives for the prompt optimization workflow.
Audit Metadata