improve-codebase-architecture
Warn
Audited by Gen Agent Trust Hub on Oct 26, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill instructs the agent to execute shell commands locally, specifically
git log --onelineto extract commit history and platform-specific commands (xdg-open,open, orstart) to launch the generated HTML report in the user's default web browser. - [DYNAMIC_EXECUTION]: The agent generates a local HTML report that imports Mermaid.js and initializes it with
securityLevel: "loose". This configuration allows the browser to execute scripts or HTML tags contained within diagram labels. If the agent populates these labels with unescaped data from the analyzed codebase, it creates a risk for local cross-site scripting (XSS) when the report is opened. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from the local environment to inform its analysis, which could influence its architectural recommendations.
- Ingestion points: Reads commit history via git commands and parses file contents from
GLOSSARY.md, architectural decision records (ADRs), and other codebase files discovered during exploration. - Boundary markers: The instructions do not specify any delimiters or safety warnings to ignore instructions embedded within the codebase data.
- Capability inventory: The skill has capabilities to execute shell commands, write files to the temporary directory, and trigger sub-agents for domain modeling and code design.
- Sanitization: There is no mention of sanitizing or escaping the content read from the codebase before processing it or writing it to the HTML report.
- [EXTERNAL_DOWNLOADS]: The generated HTML report fetches styling and diagramming libraries from Cloudflare's CDN and the jsDelivr package registry to render the review visuals.
Audit Metadata