generate-flow-diagram
Pass
Audited by Gen Agent Trust Hub on Nov 23, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONPRIVILEGE_ESCALATION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes a local shell script
scripts/check-mermaid.shwhich utilizes themmdccommand-line utility to validate Mermaid diagram syntax. This is an expected functionality for ensuring diagram correctness before finalization.\n- [EXTERNAL_DOWNLOADS]: The skill references and fetches documentation from well-known and trusted sources, including the official Mermaid.js documentation (mermaid.js.org), the Mermaid CLI repository on GitHub, and established research organizations like IBM and the Nielsen Norman Group.\n- [INDIRECT_PROMPT_INJECTION]: The skill possesses an attack surface for indirect prompt injection as it processes untrusted workflow descriptions and existing Mermaid code provided as inputs.\n - Ingestion points: Untrusted data enters via
PROCESS_SPECandEXISTING_FLOW_OR_DIAGRAMinSKILL.md.\n - Boundary markers: Present;
SKILL.mdandsubagents/diagram-builder.mdexplicitly instruct the agent to treat external content as data and never as instructions.\n - Capability inventory: The skill performs subprocess calls via
scripts/check-mermaid.shand file-write operations as defined in thedecomposemode inSKILL.md.\n - Sanitization: Present;
references/input-contract.mddefines strictMUTATION_LIMITSthat restrict file access to the specific package directory and block sensitive paths like.git.\n- [PRIVILEGE_ESCALATION]: The skill includes a 'decompose' mode that allows the agent to write new diagram files and modify instruction lines within its own skill package. This capability is managed through mandatory human-in-the-loop approval gates (AwaitDecomposeApproval) and path validation to ensure modifications stay within the resolved package root.
Audit Metadata