improve-codebase-architecture
Pass
Audited by Gen Agent Trust Hub on Oct 23, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted codebase data to generate an architectural report, which could be exploited to inject malicious content into the user's browser.
- Ingestion points: Local codebase files, git commit history via
git log, and Architecture Decision Records (ADRs) located indocs/adr/. - Boundary markers: Absent. There are no instructions to the agent to sanitize or treat ingested file content as untrusted when generating the HTML report.
- Capability inventory: Reading project files, executing
git log, writing to the filesystem (ADRs and glossary updates), and writing/opening HTML files in the temporary directory. - Sanitization: Absent. No specific escaping or validation mechanisms are defined for the content interpolated into the HTML template.
- [COMMAND_EXECUTION]: The skill invokes shell commands to perform analysis and display results.
- Executes
git log --onelineto identify codebase hotspots based on commit frequency. - Invokes platform-specific commands (
xdg-openon Linux,openon macOS,starton Windows) to launch the generated HTML report in the user's default browser. - [EXTERNAL_DOWNLOADS]: The generated report utilizes third-party libraries hosted on CDNs.
- Fetches the Tailwind CSS styling library from
cdn.tailwindcss.com. - Fetches the Mermaid diagramming library from
cdn.jsdelivr.net. - The Mermaid initialization includes
securityLevel: "loose", a setting that permits HTML tags within diagrams, which may increase the risk of cross-site scripting (XSS) if diagram content is influenced by malicious codebase comments or identifiers.
Audit Metadata