refactor
Pass
Audited by Gen Agent Trust Hub on Oct 14, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [SAFE]: The skill defines a robust process for code refactoring that emphasizes the use of test suites as a safety net and mandates behavioral equivalence.
- [COMMAND_EXECUTION]: The skill utilizes project-specific commands for testing, linting, and type-checking (e.g.,
[test command],[lint command]). These are standard development operations restricted to the execution of established project tools. - [INDIRECT_PROMPT_INJECTION]: The skill processes source code, which serves as an ingestion point for untrusted data.
- Ingestion points: Target code files identified in Step 2.
- Boundary markers: The skill provides explicit constraints against changing behavior and requires a pre-existing passing test suite.
- Capability inventory: Execution of shell commands for testing and linting, and invocation of the
agentic-linterskill. - Sanitization: Automated verification via type-checkers, linters, and baseline test comparisons (Step 5 and Step 7) acts as a validation layer for the refactored output.
Audit Metadata