setup-pre-commit
Pass
Audited by Gen Agent Trust Hub on Mar 17, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill installs several third-party packages including
husky,lint-staged, andprettier. - These are well-known development tools installed from official package registries (npm, yarn, pnpm, bun).
- [COMMAND_EXECUTION]: The skill executes various system and package manager commands to set up the environment.
- It runs
npx husky initand triggers repository scripts liketypecheckandtestvia the detected package manager. - [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection due to its interaction with untrusted repository data.
- Ingestion points: The skill reads the repository's
package.jsonand lock files to determine the environment and existing scripts (SKILL.md Steps 1 and 4). - Boundary markers: None identified. There are no instructions to the agent to verify or ignore malicious content within the repository's metadata or script definitions.
- Capability inventory: The skill performs package installations, file writes (
.husky/pre-commit,.lintstagedrc), and command execution vianpm runandnpx(SKILL.md Steps 2, 3, 4, 8). - Sanitization: No sanitization or validation of the
typecheckortestscript content is performed before execution. An attacker who controls thepackage.jsoncould execute arbitrary commands when the agent attempts to verify the setup.
Audit Metadata