consult-claude
Pass
Audited by Gen Agent Trust Hub on Sep 24, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/consult-claude.tsscript executes thegitandclaudeCLI tools to retrieve repository information and perform consultations. These commands are executed using structured argument arrays, and critical inputs like the session ID are validated with strict regular expressions to prevent command injection. - [INDIRECT_PROMPT_INJECTION]: The skill processes user-supplied "briefs" through the
claudeCLI, which is a surface for indirect prompt injection. The skill implements a strong defense-in-depth model: - Ingestion points: Untrusted briefs are read from
stdininscripts/consult-claude.ts. - Boundary markers: The subprocess is invoked with
--restricted,--tools Read,Glob,Grep,--permission-mode dontAsk, and--settingsthat block reads outside the working directory. The launcher also enforces that no hooks are triggered and no child agents are launched. - Capability inventory: The launcher is limited to repository root detection (
git) and restricted CLI execution; the consultant process itself is denied write, execution, and shell capabilities. - Sanitization: The launcher enforces a strict UUID format for session resumes to prevent argument manipulation and appends a system prompt that explicitly defines the restricted, read-only role of the consultant.
- [DYNAMIC_EXECUTION]: The test suite (
scripts/consult-claude.test.ts) generates a mockclaudeexecutable at runtime to verify launcher behavior. This involves writing a temporary script to the filesystem and executing it. This is a standard testing practice for CLI wrappers and does not affect the security of the production skill scripts.
Audit Metadata