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.sh which utilizes the mmdc command-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_SPEC and EXISTING_FLOW_OR_DIAGRAM in SKILL.md.\n
  • Boundary markers: Present; SKILL.md and subagents/diagram-builder.md explicitly 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.sh and file-write operations as defined in the decompose mode in SKILL.md.\n
  • Sanitization: Present; references/input-contract.md defines strict MUTATION_LIMITS that 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
Risk Level
SAFE
Analyzed
Nov 23, 2026, 07:50 PM