code-cleanup
Pass
Audited by Gen Agent Trust Hub on Sep 20, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests and analyzes untrusted content from the user's codebase (source files, templates, styles, and configs). This content is processed by multiple agents to identify 'AI slop' and 'code smells', which could be manipulated by malicious code to influence agent behavior.
- Ingestion points: All files within the user-specified directory are read and processed by the scanner agents.
- Boundary markers: The skill does not implement delimiters or clear instructions to ignore instructions embedded within the target codebase files.
- Capability inventory: The skill utilizes the
Bashtool for refactoring and file system operations, and executes external commands. - Sanitization: No explicit sanitization or escaping of untrusted file content before processing.
- [DYNAMIC_EXECUTION]: The
validation-agentis designed to execute shell commands that run the project's own test suites and build scripts. - Evidence: Instructions in
agents/validation-agent.mddirect the agent to run commands such asbun test,npm test,pytest, andbun run build. - Risk: These commands trigger execution of scripts defined in the target project's configuration (e.g.,
package.json), which could lead to arbitrary command execution if the project is untrusted. - [COMMAND_EXECUTION]: The skill relies on the
Bashtool to perform its primary functions, including refactoring and validation. - Evidence:
SKILL.mdlistsBashas an allowed tool, and various agent roles describe using it to apply fixes and run automated checks.
Audit Metadata