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 --oneline output, the GLOSSARY.md file, Architecture Decision Records (ADRs) at docs/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 log to analyze commit history and identify high-activity hotspots in the repository.
  • Uses environment-specific commands (xdg-open, open, or start) 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.com for report styling.
  • Fetches the Mermaid visualization library from cdn.jsdelivr.net to render call graphs and dependency diagrams.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 17, 2026, 10:48 AM