code-refactoring
Pass
Audited by Gen Agent Trust Hub on Mar 29, 2026
Risk Level: SAFEPROMPT_INJECTION
Full Analysis
- [PROMPT_INJECTION]: The skill uses a placeholder
$ARGUMENTSin its command files to interpolate user input directly into the primary instruction set. This creates a surface for indirect prompt injection where malicious instructions embedded in the user-provided code or arguments could potentially influence the agent's behavior or safety constraints. - Evidence: The files
commands/refactor-clean.mdandcommands/tech-debt.mdboth utilize the$ARGUMENTSvariable without accompanying boundary markers (like XML tags) or specific instructions to disregard any embedded commands within that input. - Capability Inventory: The skill is designed for highly capable environments like
claude-codeandagent-zerowhich typically possess file system access and shell execution capabilities. - Sanitization: No explicit sanitization or validation of the
$ARGUMENTScontent is defined in the provided files. - [EXTERNAL_DOWNLOADS]: The skill's documentation and example configurations reference several well-known third-party security and analysis tools. These are documented neutrally as standard industry integrations.
- Evidence: References to tools such as Snyk, CodeQL, SonarQube, and various official GitHub Actions (e.g.,
github/copilot-autofix,coderabbitai/action) are found inagents/code-reviewer.mdandcommands/refactor-clean.md.
Audit Metadata