beautiful-mermaid
Pass
Audited by Gen Agent Trust Hub on Nov 27, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes local TypeScript scripts using the tsx runner and performs file cleanup via the rm command. It also invokes the agent-browser CLI to manage browser sessions and capture screenshots.
- [EXTERNAL_DOWNLOADS]: The render.ts script fetches the beautiful-mermaid package from the NPM registry if it is not found in the local environment during execution.
- [DYNAMIC_EXECUTION]: The skill utilizes node:child_process to install dependencies at runtime and uses dynamic import() to load the rendering library. It also generates an HTML wrapper file at runtime to display diagram content for browser-based capture.
- [INDIRECT_PROMPT_INJECTION]:
- Ingestion points: Diagram descriptions and Mermaid syntax are sourced from user input or agent-generated text and processed in scripts/render.ts and scripts/create-html.ts.
- Boundary markers: No specific delimiters or instructions to ignore embedded content are used to isolate user-influenced data during HTML generation.
- Capability inventory: The skill can execute shell commands, perform file system operations, and interact with a browser instance via external tools.
- Sanitization: The scripts/create-html.ts script embeds raw SVG output directly into an HTML template without filtering or sanitization before it is opened in a browser.
Audit Metadata