to-diagram
Pass
Audited by Gen Agent Trust Hub on Oct 23, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/render_diagram.pyexecutes the Mermaid CLI (mmdc) ornpxusingsubprocess.run. The command is constructed as a list, avoiding shell interpolation, which is a standard security practice for external tool invocation. - [EXTERNAL_DOWNLOADS]: If the Mermaid CLI is not present on the system, the skill uses
npxto fetch the@mermaid-js/mermaid-clipackage from the NPM registry. This is a well-known tool from a reputable organization. - [INDIRECT_PROMPT_INJECTION]: The skill processes user-supplied data to create diagrams. Ingestion points: The agent reads user-supplied source files or notes as defined in the grounding workflow in
SKILL.md. Boundary markers: Instructions explicitly direct the agent to use plain text labels and disclose assumptions. Capability inventory: The skill includes file-writing and subprocess execution of the Mermaid CLI inscripts/render_diagram.py. Sanitization: The agent is instructed to quote human-facing labels and forbid HTML, scripts, click handlers, or remote resources within the diagram source.
Audit Metadata