improve-codebase-architecture
Pass
Audited by Gen Agent Trust Hub on Jul 5, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill generates an architectural review report as an HTML file in the system's temporary directory (
$TMPDIR) and uses platform-specific commands (xdg-open,open, orstart) to open it for the user. - [EXTERNAL_DOWNLOADS]: The generated HTML report includes scripts to load Tailwind CSS from
cdn.tailwindcss.comand Mermaid.js fromcdn.jsdelivr.net. These are well-known, trusted CDNs used for rendering the report's styling and diagrams. - [INDIRECT_PROMPT_INJECTION]: The skill possesses a surface for indirect prompt injection as it ingests untrusted codebase content to perform its analysis.
- Ingestion points: Codebase files, module lists, and commit history are ingested via
/code-graphqueries,git log, andgrepcommands across multiple files includingSKILL.mdandsweep-patterns.md. - Boundary markers: Absent; there are no explicit delimiters or instructions to ignore embedded commands within the analyzed code snippets.
- Capability inventory: The skill can execute shell commands (
git,grep,xdg-open), write to the local filesystem (HTML report,CONTEXT.md), and spawn sub-agents. - Sanitization: No explicit sanitization or escaping of the codebase content is performed before it is interpolated into agent prompts or the HTML report.
- [DATA_EXPOSURE]: The 'Security agent' defined in
sweep-patterns.mdis explicitly tasked with identifying hardcoded secrets and unguarded environment variable reads within the codebase. This behavior is transparently documented and aligns with the skill's stated purpose of codebase health and architectural review.
Audit Metadata