design-doc-diagramming

Pass

Audited by Gen Agent Trust Hub on Sep 30, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill instructs the agent to read existing source code, Terraform manifests, Kubernetes configurations, and OpenAPI specifications to generate architecture diagrams. This ingestion of external, potentially untrusted data represents an indirect prompt injection surface.
  • Ingestion points: The process involves reading code from Spring, FastAPI, Express, Terraform, K8s, and OpenAPI files to extract component boundaries and deployment topology.
  • Boundary markers: No explicit boundary markers or instructions to ignore embedded prompts in the source data are mentioned.
  • Capability inventory: The skill has the capability to write files to the project directory (e.g., docs/design/, docs/adr/).
  • Sanitization: There are no explicit sanitization steps mentioned for the content extracted from external files before it is processed by the agent.
  • [COMMAND_EXECUTION]: The skill suggests using the mermaid-cli (mmdc) tool to validate the syntax of generated diagrams if it is available in the project environment.
  • Evidence: "If mermaid-cli (mmdc) is available in the project, validate syntax with it... before embedding the diagram in the document."
  • Context: This is a functional requirement for ensuring the generated Mermaid diagrams are valid and render correctly in markdown viewers.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 30, 2026, 04:56 AM