repo-craft-and-distribute

Pass

Audited by Gen Agent Trust Hub on Oct 30, 2026

Risk Level: SAFECOMMAND_EXECUTIONPERSISTENCEINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The wrapper script bin/repo-craft.js utilizes node:child_process.spawn to execute the core scaffolding logic in scripts/scaffold-repo.ts using the Bun runtime.
  • [PERSISTENCE]: The install.sh script establishes persistence within various agent environments (such as Claude Code, Gemini CLI, and Codex) by copying the skill's directory into standard configuration paths like ~/.claude/skills/ and ~/.agents/skills/.
  • [INDIRECT_PROMPT_INJECTION]: The scripts/scaffold-repo.ts script allows for a surface of indirect injection by interpolating unsanitized user-provided arguments into executable files.
  • Ingestion points: The CLI parameters --name, --author, and --desc processed in scripts/scaffold-repo.ts serve as entry points for external data.
  • Boundary markers: No delimiters or safety warnings are included in the generated manifests or shell scripts to prevent instructions in the data from being interpreted as code.
  • Capability inventory: The script performs file writing (fs.writeFile), directory creation (fs.mkdir), and permission modification (fs.chmod).
  • Sanitization: The tool fails to escape or validate user-supplied strings before embedding them directly into the install.sh script, which could permit shell command injection in the resulting installer.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 30, 2026, 01:17 PM