Skills security
Create security architecture diagrams using PlantUML syntax with identity, encryption, firewall, and compliance stencil icons. Best for IAM flows, zero-trust models, encryption pipelines, and threat detection architectures.
install
source · Clone the upstream repo
git clone https://github.com/markdown-viewer/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/markdown-viewer/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/security" ~/.claude/skills/markdown-viewer-skills-security && rm -rf "$T"
manifest:
security/SKILL.mdsource content
Security Architecture Diagram Generator
Quick Start: Define trust boundaries → Place identity/encryption/firewall icons → Connect with access flows → Group into security zones → Wrap in
```plantuml fence.
⚠️ IMPORTANT: Always use
or```plantumlcode fence. NEVER use```puml— it will NOT render as a diagram.```text
Critical Rules
- Every diagram starts with
and ends with@startuml@enduml - Use
for access flows (User → AuthN → AuthZ → Resource)left to right direction - Use
stencil syntax for security service iconsmxgraph.aws4.* - Default colors are applied automatically — you do NOT need to specify
orfillColorstrokeColor - Use
for security zonesrectangle "Trust Boundary" { ... } - Directed flows use
, audit/async flows use-->
(dashed)..>
Full stencil reference: See stencils/README.md for 9500+ available icons.
Mxgraph Stencil Syntax
mxgraph.aws4.<icon> "Label" as <alias>
Identity & Access Stencils
| Category | Stencils | Purpose |
|---|---|---|
| IAM | , | Identity policies & roles |
| SSO/Directory | , , , | User authentication & federation |
| STS | , | Temporary security credentials |
| Organizations | , , | Multi-account governance |
Encryption & Secrets Stencils
| Category | Stencils | Purpose |
|---|---|---|
| KMS | , | Key management & encryption |
| Secrets | | Secrets rotation & storage |
| Certificates | , | TLS certificate lifecycle |
| HSM | | Hardware security module |
| Encryption | | Encrypted data at rest |
Network Security Stencils
| Category | Stencils | Purpose |
|---|---|---|
| Firewall | , , | Network traffic filtering |
| WAF | | Web application firewall |
| Shield | , , | DDoS protection |
| Security Group | , | Instance-level firewall |
Threat Detection & Compliance Stencils
| Category | Stencils | Purpose |
|---|---|---|
| Detection | , , | Threat detection & investigation |
| Data Protection | | Sensitive data discovery |
| Compliance | , , , | Compliance posture & audit |
| Logging | , , | Audit trail & log aggregation |
| Governance | , | Multi-account governance |
| Incident | | Incident management |
Connection Types
| Syntax | Meaning | Use Case |
|---|---|---|
| Solid arrow | Auth flow / access request |
| Dashed arrow | Audit event / async detection |
| Solid line | Trust relationship |
| Labeled connection | Describe protocol or credential |
Quick Example
@startuml left to right direction mxgraph.aws4.users "Users" as users mxgraph.aws4.cognito "Cognito" as auth mxgraph.aws4.identity_and_access_management "IAM" as iam rectangle "Protected Resources" { mxgraph.aws4.s3 "Data (S3)" as s3 mxgraph.aws4.encrypted_data "Encrypted" as enc } users --> auth : "login" auth --> iam : "token" iam --> s3 s3 --> enc @enduml
Security Architecture Types
| Type | Purpose | Key Stencils | Example |
|---|---|---|---|
| IAM & AuthN | Identity and authentication | , , | iam-authn.md |
| Encryption Pipeline | Data encryption at rest/in-transit | , , | encryption-pipeline.md |
| Network Security | Perimeter defense & firewalls | , , | network-security.md |
| Threat Detection | Automated threat response | , , | threat-detection.md |
| Compliance Audit | Governance & audit trail | , , , | compliance-audit.md |
| Zero Trust | Zero-trust access model | , , | zero-trust.md |
| Data Protection | Sensitive data classification | , , | data-protection.md |
| Multi-account Gov | Organization-wide security | , , | multi-account-governance.md |