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.jsutilizesnode:child_process.spawnto execute the core scaffolding logic inscripts/scaffold-repo.tsusing the Bun runtime. - [PERSISTENCE]: The
install.shscript 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.tsscript allows for a surface of indirect injection by interpolating unsanitized user-provided arguments into executable files. - Ingestion points: The CLI parameters
--name,--author, and--descprocessed inscripts/scaffold-repo.tsserve 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.shscript, which could permit shell command injection in the resulting installer.
Audit Metadata