code-refactoring

Pass

Audited by Gen Agent Trust Hub on Jul 21, 2026

Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
  • [SAFE]: The skill is designed to guide an AI agent through the process of refactoring code using design patterns and SOLID principles. The examples provided are instructional and align with standard coding practices.
  • [COMMAND_EXECUTION]: The skill instructs the agent to use the Bash tool to run routine validation commands such as npm test and npm run lint. These actions are necessary for verifying that the refactored code preserves original behavior and adheres to quality standards within the project's local development environment.
  • [PROMPT_INJECTION]: As a code-processing skill, there is an inherent surface for indirect prompt injection if the source code being analyzed contains malicious instructions. However, this is a standard risk for all AI-assisted coding skills.
  • Ingestion points: Local source code files are read and processed by the agent.
  • Boundary markers: Not explicitly defined in the provided instructions.
  • Capability inventory: The skill has access to Read, Write, Edit, and Bash tools for code manipulation and validation.
  • Sanitization: No specific input sanitization or filtering logic is specified for the code content.
Audit Metadata
Risk Level
SAFE
Analyzed
Jul 21, 2026, 04:55 PM