/guardx:scan — Run a security scan on a system prompt
Run a security scan on system prompts to identify vulnerabilities quickly.
Trigger
User invokes /guardx:scan or asks to "scan a system prompt for vulnerabilities".
Steps
-
Ask the user: "Please provide the system prompt to scan — paste it directly or give me a file path."
-
If the user provides a file path, use the
Readtool to load the file contents. -
Call the
scan_system_promptMCP tool:Tool: scan_system_prompt Arguments: systemPrompt: <the prompt text> mode: "dual" -
When the scan completes, immediately invoke the
/guardx:interpretskill on the result to present structured findings to the user.
Notes
- Default mode is
dual(runs both extraction and injection testing). - If the user specifies a mode (
extraction,injection, ordual), pass it through. - If the user specifies custom models or
maxTurns, include those parameters. - Scans take 1–3 minutes depending on
maxTurns. Let the user know before starting.