code-refactoring
Pass
Audited by Gen Agent Trust Hub on Sep 23, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSPERSISTENCEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill requires the installation of the
node-notifierpackage from the public npm registry to enable its desktop alert functionality. This is a documented requirement for the background file watcher. - [PERSISTENCE]: The skill documentation provides instructions for users to add a
SessionStarthook to their global~/.claude/settings.jsonfile. This configuration ensures thefile-watcher.jsprocess is automatically launched whenever a new Claude Code session begins. - [DYNAMIC_EXECUTION]: Helper scripts such as
auto-start-watcher.jsandstart-watcher-interactive.jsutilize Node.jsspawnandexecSyncmethods to manage and monitor the background execution of the file-watching daemon. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to read, analyze, and refactor arbitrary source code files from the user's project. This creates an attack surface where malicious instructions embedded in a processed file could potentially influence the agent's behavior.
- Ingestion points: Project source code files (e.g.,
.ts,.tsx,.py) read during analysis or refactoring phases. - Boundary markers: None identified in the skill instructions to delimit untrusted code content.
- Capability inventory: The skill directs the agent to perform file writes, version control operations (
git commit), and execute project testing suites (npm run test). - Sanitization: No sanitization or safety-filtering logic is applied to the content of the files before they are processed by the agent.
- [COMMAND_EXECUTION]: The skill instructions provide a workflow where the agent executes various shell commands for routine tasks, including
wcfor line counting,nodefor running alert scripts,gitfor backup and incremental commits, andnpmfor running linters and test suites.
Audit Metadata