common-accessibility
Enforce WCAG 2.2 AA compliance with semantic HTML, ARIA roles, keyboard navigation, and color contrast standards for web UIs. Use…
Draws architecture diagrams as editable draw.io files with a fixed house style, C4 levels, evidence-tagged shapes, and optional multi-view identity checks. Use when producing a system context, container, component, deployment, data flow, sequence, state, or ERD, or redrawing an
Claude Code
$ npx -y skills add hoangnguyen0403/agent-skills-standard --skill common-architecture-diagramming --agent claude-code
Codex
$ npx skills add hoangnguyen0403/agent-skills-standard --skill common-architecture-diagramming -a codex -y
Cursor
$ npx skills add hoangnguyen0403/agent-skills-standard --skill common-architecture-diagramming -a cursor -y
Gemini CLI
$ npx skills add hoangnguyen0403/agent-skills-standard --skill common-architecture-diagramming -a gemini-cli -y
GitHub Copilot
$ npx skills add hoangnguyen0403/agent-skills-standard --skill common-architecture-diagramming -a github-copilot -y
OpenCode
$ npx skills add hoangnguyen0403/agent-skills-standard --skill common-architecture-diagramming -a opencode -y
Windsurf
$ npx skills add hoangnguyen0403/agent-skills-standard --skill common-architecture-diagramming -a windsurf -y
name: common-architecture-diagramming
description: Draws architecture diagrams as editable draw.io files with a fixed house style, C4 levels, evidence-tagged shapes, and optional multi-view identity checks. Use when producing a system context, container, component, deployment, data flow, sequence, state, or ERD, or redrawing an ASCII or Mermaid one.
metadata:
triggers:
files:
- "ARCHITECTURE.md"
- "**/*.drawio"
- "**/*.mermaid"
- "docs/architecture/**"
keywords:
- diagram
- c4
- drawio
- mermaid
- erd
- entity relationship
- schema diagram
- aws
- architecture diagram
- solution architecture
- system context
- deployment diagramNever hand-write mxGraph XML. Write a spec; the scripts own every visual decision, so diagrams stay identical across authors, repositories, and sessions.
1. Write `spec.json` — schema in [diagram-spec.md](references/diagram-spec.md). For an ERD, generate it: `python3 scripts/schema_to_spec.py db/schema.sql --title "<System> — ERD" -o spec.json` 2. `python3 scripts/validate_spec.py spec.json` 3. `python3 scripts/render_drawio.py spec.json -o docs/architecture/<slug>.drawio --strict` (exit 2 = a layout finding; change the spec, per [layout-rules.md](references/layout-rules.md)) 4. For related views, optionally validate [view-manifest.md](references/view-manifest.md): `python3 scripts/validate_manifest.py view-manifest.json` 5. Export the image: a draw.io MCP tool if the session has one, else `python3 scripts/export_drawio.py docs/architecture/<slug>.drawio -f png -o docs/architecture/<slug>.png`, else ship the `.drawio` and say the image was not exported. See [export paths](references/mermaid-fallback.md). For self-contained offline delivery with coordinated light and dark themes, use `python3 scripts/export_html.py spec.json --output-dir docs/architecture/<slug>-package/ [--manifest view-manifest.json]`. See [offline export](references/offline-export.md). 6. Inspect the exported image or static package at normal reading size; strict validation or zero exit codes cannot prove labels and edges are legible or semantically correct. Fix the spec and re-export before handoff. The JSON spec is the semantic source of truth; `.drawio` is the editable presentation and the image is a copy for a deck. Generated XML records its own baseline; regeneration protects manual edits by default. Use `--acknowledge-manual-edits` only after returning semantic changes to the spec.
observations; use `assumed` or `unverified` for honest design uncertainty.
`constraint` says why it exists; never invent either.
vendor is a `cloud:*` kind with the service named in `sublabel`. No Azure logos exist in the bundle, so Azure is always `cloud:*`.
valid own baseline, but refuses hand mutation until explicitly acknowledged.
| Thought | Reality | |---------|---------| | "It is one box, I will write the XML" | The renderer owns style, legend, and title block. Use it. | | "Close enough, I will guess this service" | Guesses ship as facts. Omit the evidence and let it render UNVERIFIED. | | "Managers want the whole system on one page" | Past 12 nodes they stop reading. Split it. |
The portable standards layer for AI coding agents. Sync once, then work in your own runtime.
Enforce WCAG 2.2 AA compliance with semantic HTML, ARIA roles, keyboard navigation, and color contrast standards for web UIs. Use…
Define deterministic guardrails for agent tool calls — protected paths, test-file locks during bug fixes, post-edit formatters,…
Apply REST API conventions — HTTP semantics, status codes, versioning, pagination, and OpenAPI standards for any framework. Use…
Audit structural debt, logic leakage, and monolithic components across Web, Mobile, and Backend codebases. Use when reviewing…
Enforce SOLID principles, guard-clause style, function size limits, and intention-revealing naming across all languages. Use when…
Turns authorized books into portable skill references with rights scoping, source mapping, synthesis, fidelity checks, and…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.