code-refactoring
Pass
Audited by Gen Agent Trust Hub on Mar 9, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill instructions in
SKILL.mdsuggest executing shell commands for behavior validation, specificallynpm test,npx tsc, andnpm run lint. It also describes a multi-agent workflow using CLI tools such asask-geminiandcodex-clifor codebase analysis and verification. - [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection (Category 8) because it processes untrusted code provided by users or external repositories.
- Ingestion points: Untrusted source code provided for refactoring as described in the instructions of
SKILL.md. - Boundary markers: Absent. The instructions do not specify delimiters or warnings to ignore instructions embedded within the code being refactored.
- Capability inventory: The skill encourages the use of shell commands (
npm test,npx tsc,npm run lint) which could be exploited if the code being refactored contains malicious configuration files (e.g., a poisonedpackage.jsonscript). - Sanitization: Absent. There is no mention of sanitizing or escaping the input code before the agent processes or executes tests against it.
Audit Metadata