1k-worktree-clean
Pass
Audited by Gen Agent Trust Hub on Sep 5, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes data from the local Git repository, including branch names and commit subjects, which are presented directly to the agent's context. An attacker with control over the repository's history or branch names could theoretically embed instructions to influence the agent's behavior.\n
- Ingestion points: The script
scripts/1k-worktree-clean.sh(specifically inresolve_last_commit_metadataandresolve_pr_metadata) extracts commit subjects viagit logand branch names viagit worktree list.\n - Boundary markers: There are no explicit delimiters or warnings to the agent to ignore instructions embedded within the Git metadata.\n
- Capability inventory: The skill allows the agent to execute shell commands, remove Git worktrees, and delete directories using
rm -rfas described inSKILL.mdStep 5.\n - Sanitization: No sanitization or filtering is performed on the commit messages or branch names before they are included in the output.\n- [COMMAND_EXECUTION]: The skill provides instructions for the agent to perform directory deletion and Git worktree removal. While these actions are the intended purpose of the skill, they represent a sensitive capability.\n
- Evidence:
SKILL.mdStep 5 describes the removal of stale directories usingrm -rfand worktrees usinggit worktree remove.\n - Note: The skill instructions explicitly require user confirmation before any destructive actions are taken.\n- [EXTERNAL_DOWNLOADS]: The skill fetches data from remote repositories to compare local state.\n
- Evidence:
SKILL.mdStep 2 includesrtk git fetch origin xand the script usesgh pr listto retrieve pull request status from GitHub.\n - Note: These are standard operations for a Git-related utility and target well-known services.
Audit Metadata