improve-codebase-architecture
Warn
Audited by Gen Agent Trust Hub on Sep 13, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill generates an HTML report (specified in HTML-REPORT.md) that initializes the Mermaid library with
securityLevel: "loose". This configuration disables Mermaid's internal sandbox, allowing JavaScript execution within diagrams. If the codebase being analyzed contains malicious architectural labels or descriptions, they could be used to perform Cross-Site Scripting (XSS) when the user views the report. - [COMMAND_EXECUTION]: The skill uses platform-specific shell commands (
xdg-open,open, andstart) to automatically launch the generated architectural report in the user's default browser. - [EXTERNAL_DOWNLOADS]: The generated HTML report fetches external resources from well-known services, including the Tailwind CSS framework from
cdn.tailwindcss.comand the Mermaid library fromcdn.jsdelivr.net. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data from the local project environment to generate architectural insights.
- Ingestion points: Local codebase files, domain glossary (
CONTEXT.md), and Architecture Decision Records (ADRs). - Boundary markers: The skill does not define specific delimiters or instructions to prevent the agent from obeying embedded instructions found within these files.
- Capability inventory: File writing (modifying
CONTEXT.md, creating the HTML report) and shell command execution (opening the report). - Sanitization: The instructions do not specify any sanitization or escaping of the content scanned from the codebase before it is rendered into the final HTML report.
Audit Metadata