sf-diagram-mermaid

Pass

Audited by Gen Agent Trust Hub on Sep 14, 2026

Risk Level: SAFE
Full Analysis
  • [COMMAND_EXECUTION]: The skill includes two Python scripts that execute commands via the subprocess module. scripts/query-org-metadata.py invokes the Salesforce CLI (sf) to fetch record counts and sharing models. scripts/mermaid_preview.py uses subprocess.Popen to launch itself as a background daemon. Both scripts use list-based command arguments without shell=True, which is a secure pattern that prevents shell injection.
  • [DYNAMIC_EXECUTION]: The skill provides a local HTTP server (scripts/mermaid_preview.py) to provide live-reloading previews of diagrams in a browser. This server runs on localhost, uses Server-Sent Events (SSE) for reloading, and does not serve arbitrary files from the filesystem, limiting its security surface area. The HTML template used by the server includes basic escaping for the Mermaid code strings to prevent script injection within the preview context.
  • [EXTERNAL_DOWNLOADS]: The preview server's HTML template loads the Mermaid.js library from the jsdelivr CDN. This is a common and standard practice for web-based diagramming tools.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 14, 2026, 05:48 PM