mgiovani/ai-arsenal / skills/docs-diagram
docs-diagram
VerifiedGenerate a Mermaid diagram (ER, architecture, deployment, or security) by reading the actual codebase and writing it to docs/. Use for requests like "draw an ER diagram of these tables", "show me the architecture", "diagram the deployment setup", "visualize the security data flow", or "generate a system diagram". Not for scaffolding a new docs directory structure (use docs-init), syncing existing prose docs with code changes (use docs-update), or recording a design decision's rationale (use docs-adr), this skill only produces diagrams generated from code.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 6.6 KB |
| assets/templates/architecture.md | markdown | 745 B |
| assets/templates/data-model.md | markdown | 873 B |
| assets/templates/deployment.md | markdown | 829 B |
| assets/templates/security.md | markdown | 705 B |
| evals/evals.json | config | 3.1 KB |
| evals/trigger-eval.json | config | 1.8 KB |
| references/detection-patterns.md | markdown | 1.7 KB |
| references/mermaid-patterns.md | markdown | 3.1 KB |
assets/templates/security.md
View on GitHub# {{PROJECT_NAME}} - Security Architecture
**Last Updated:** {{DATE}}
## Overview
{{OVERVIEW}}
[One paragraph: the trust boundaries, auth model, and data protection approach.]
## Security Data Flow
```mermaid
{{DIAGRAM_CONTENT}}
```
## Controls
- **Authentication**: {{AUTH_APPROACH}}
- **Authorization**: {{AUTHZ_APPROACH}}
- **Encryption in transit**: {{ENCRYPTION_TRANSIT}}
- **Encryption at rest**: {{ENCRYPTION_REST}}
## Trust Boundaries
- {{TRUST_BOUNDARY_1}}
- {{TRUST_BOUNDARY_2}}
## Related
- [Data Model](data-model.md): entity relationships (generate with `docs-diagram er`)
---
*Generated from auth/middleware code. Regenerate with docs-diagram after security-relevant changes.*
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |