improve-codebase-architecture
Pass
Audited by Gen Agent Trust Hub on Nov 17, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from the codebase (git history, source files, and design documents) to generate an architectural HTML report.
- Ingestion points: Data enters the context during the 'Explore' phase via
git log --onelineoutput, theGLOSSARY.mdfile, Architecture Decision Records (ADRs) atdocs/adr/, and general codebase content traversed by a sub-agent. - Boundary markers: The skill lacks explicit delimiters or instructions to the model to ignore or escape potentially malicious content embedded within the files it analyzes.
- Capability inventory: The skill writes a local HTML file to the user's temporary directory (
$TMPDIR) and uses system-level commands to open the browser. The browser then executes the contained scripts. - Sanitization: No sanitization is implemented for codebase-derived content before it is interpolated into the HTML report. Key risk: The Mermaid diagram configuration uses
securityLevel: "loose", which explicitly allows the execution of scripts embedded within diagram definitions, potentially leading to Cross-Site Scripting (XSS) when the report is opened. - [COMMAND_EXECUTION]: The skill invokes system commands to perform analysis and display results.
- Uses
git logto analyze commit history and identify high-activity hotspots in the repository. - Uses environment-specific commands (
xdg-open,open, orstart) to navigate the operating system and launch the generated report in the default browser. - [EXTERNAL_DOWNLOADS]: The architectural report fetches necessary stylesheets and scripts from external, well-known content delivery services.
- Retrieves the Tailwind CSS framework from
cdn.tailwindcss.comfor report styling. - Fetches the Mermaid visualization library from
cdn.jsdelivr.netto render call graphs and dependency diagrams.
Audit Metadata