cleanup-code
Pass
Audited by Gen Agent Trust Hub on Aug 21, 2026
Risk Level: SAFEPROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill operates by scanning and processing external codebase files using
Read,Glob, andGreptools. This data is then used by the AI agent to make decisions about code removal or modification. There is a theoretical risk that malicious instructions embedded within the analyzed code (e.g., in comments or string literals) could attempt to influence the agent's behavior. - Ingestion points: Source code files and configuration files read via the
Read,Glob, andGreptools. - Boundary markers: The skill does not explicitly define instructions to the LLM to ignore embedded commands within the code it analyzes.
- Capability inventory: The skill has access to high-impact tools including
Write,Edit, andBash(restricted to specific commands likegit,npm, andpython3). - Sanitization: No explicit sanitization or filtering of codebase content is performed before the agent processes it.
- [DYNAMIC_CONTEXT_INJECTION]: The
SKILL.mdfile utilizes the dynamic context injection pattern (!command) to executegit,ls, andcatcommands at skill load time. This is used to provide the agent with immediate context regarding the project structure and recent changes. These commands are hardcoded and benign in the current implementation. - [UNVERIFIABLE_DEPENDENCIES]: The skill instructions and documentation recommend the use of several third-party Node.js and Python tools via
npxand standard package managers (e.g.,knip,madge,jscpd,ruff,bandit). These are well-known developer tools and their use is consistent with the primary purpose of the skill.
Audit Metadata