git-prefs
Pass
Audited by Gen Agent Trust Hub on Nov 8, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses
gitcommands and local Node.js scripts to manage the repository state. - Evidence: In
SKILL.md, the agent is instructed to runnode scripts/check.mjsandnode <skill_dir>/scripts/empty-worktree.mjs. - Evidence:
scripts/empty-worktree.mjsutilizesexecFileSyncto performgit rev-parseandgit worktree pruneoperations. - [INDIRECT_PROMPT_INJECTION]: The skill evaluates untrusted repository state to perform automated actions.
- Ingestion points:
SKILL.mddescribes usinggit status --porcelainto decide on commit or cleanup actions in files. - Boundary markers: The instructions mandate user confirmation for deleting files or modifying
.gitignore. - Capability inventory: File system modification via
rmSync(inscripts/empty-worktree.mjs) and git commits/syncing. - Sanitization: The
empty-worktree.mjsscript verifies that the current directory is a linked worktree and not the main repository before allowing deletion.
Audit Metadata