code-refactoring-refactor-clean
Pass
Audited by Gen Agent Trust Hub on Oct 4, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted code provided by the user through the
$ARGUMENTSparameter, which presents an inherent surface for indirect prompt injection. - Ingestion points:
SKILL.mdreceives input via$ARGUMENTSfor refactoring. - Boundary markers: No specific delimiters or warnings are used to distinguish user-provided code from instructions.
- Capability inventory: The agent has the capability to modify local files (refactoring) and execute commands for test verification as specified in the instructions.
- Sanitization: The skill does not explicitly describe sanitization or filtering for embedded instructions within the user-provided code.
- [EXTERNAL_DOWNLOADS]: The implementation playbook references and provides configuration examples for several well-known automated review and quality assurance tools.
- Evidence:
resources/implementation-playbook.mdsection 6 includes GitHub Action configurations forgithub/copilot-autofix,coderabbitai/action, andcodiumai/pr-agent. - Context: These are well-known services commonly used in modern software development workflows for code review and security analysis.
- [COMMAND_EXECUTION]: The skill instructions require the agent to execute commands to verify the integrity of the code after refactoring.
- Evidence:
SKILL.mdinstructs the agent to "Update tests and verify regressions." - Context: This involves running local test runners (e.g.,
pytest,npm test) and is a core requirement for the skill's primary purpose of safe code refactoring.
Audit Metadata