setup-pre-commit
Pass
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill installs widely-used development dependencies including
husky,lint-staged, andprettierfrom the public npm registry using the detected local package manager (npm, pnpm, yarn, or bun). - [COMMAND_EXECUTION]: Executes shell commands to initialize tools and install dependencies, such as
npx husky initand package manager install commands. It also creates an executable shell script at.husky/pre-committo run linting and testing tasks. - [INDIRECT_PROMPT_INJECTION]: The skill processes existing project files to adapt its behavior, which creates a potential surface for indirect instruction injection if the target repository contains malicious configuration.
- Ingestion points: Reads
package.jsonto detect existingtypecheckandtestscripts, and scans for specific lock files (package-lock.json,pnpm-lock.yaml, etc.) to identify the environment. - Boundary markers: None present; the skill assumes the structure of the repository configuration files is standard.
- Capability inventory: The skill has permissions to write files (
.husky/pre-commit,.lintstagedrc,.prettierrc), modifypackage.json, and execute shell commands through the system's package manager andnpx. - Sanitization: No explicit sanitization or validation of the script names or contents retrieved from
package.jsonis mentioned before they are incorporated into the pre-commit hook script.
Audit Metadata