create-worktree
Warn
Audited by Gen Agent Trust Hub on Sep 16, 2026
Risk Level: MEDIUMINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection via project-level configuration files which can lead to unauthorized code execution.
- Ingestion points: The
scripts/create-worktree.shscript reads command strings from the.catalyst/config.jsonfile found within the target repository being processed. - Boundary markers: Absent. There are no delimiters or instructions provided to the agent to ignore or sanitize commands embedded in the configuration file.
- Capability inventory: The skill can execute arbitrary shell commands via
eval, perform network operations (e.g.,git fetch,npm install), and modify sensitive local configuration files such as~/.claude.json. - Sanitization: Absent. The script performs simple variable substitution (e.g.,
${WORKTREE_PATH}) before passing the entire configuration string toevalfor execution. - [COMMAND_EXECUTION]: The skill performs command executions that explicitly bypass security oversight.
- Evidence: In
SKILL.md, the instructions for launching an implementation session include the use of the--dangerously-skip-permissionsflag. This flag is designed to suppress the agent's interactive security prompts and permission checks. - Evidence: The
scripts/create-worktree.shscript utilizes theevalcommand within therun_hook_arrayfunction to execute arbitrary setup hooks defined in thecatalyst.worktree.setupconfiguration key. - Evidence: The
scripts/lib/claude-json-mutate.shscript is used to programmatically modify~/.claude.jsonto mark project directories as trusted (hasTrustDialogAccepted: true), which bypasses the manual trust verification process typically required by the platform. - [EXTERNAL_DOWNLOADS]: The skill triggers the download and installation of external packages based on repository content.
- Evidence:
scripts/create-worktree.shautomatically detects the presence ofpackage.jsonorbun.lockand executesnpm installorbun installaccordingly.
Audit Metadata