improve-codebase-architecture
Pass
Audited by Gen Agent Trust Hub on Oct 7, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses
git log --onelineto explore codebase hot spots. It also invokes platform-specific commands—xdg-open(Linux),open(macOS), andstart(Windows)—to automatically open the generated HTML architectural report in the user's browser. - [EXTERNAL_DOWNLOADS]: The HTML report template defined in
HTML-REPORT.mdfetches the Tailwind CSS framework fromcdn.tailwindcss.comand the Mermaid.js library fromcdn.jsdelivr.net. These are well-known content delivery networks used for layout and diagram rendering. - [INDIRECT_PROMPT_INJECTION]: The skill represents a surface for indirect injection because it processes untrusted codebase data and renders it into a local HTML file.
- Ingestion points: Codebase files, git commit messages,
GLOSSARY.md, and Architecture Decision Records (ADRs) are read to populate the report. - Boundary markers: No explicit boundary markers or isolation instructions are used when interpolating codebase content into the report scaffold.
- Capability inventory: The skill can write files to the OS temporary directory and trigger the execution of the default web browser to view those files.
- Sanitization: The skill lacks explicit sanitization of codebase content before rendering. The Mermaid.js configuration in
HTML-REPORT.mdis set tosecurityLevel: "loose", which permits the rendering of HTML tags within diagrams. This configuration could allow malicious content embedded in the codebase (e.g., in filenames or comments) to execute scripts (XSS) or spoof information when the user views the report.
Audit Metadata