Skip to content
cccskills
FreePublished on GitHub

common-architecture-diagramming

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.

The English summary is being prepared. Showing the original description.

Works withAzure

Run score Not tested

See how to install

Files included (65)

  • SKILL.md5.0 KB
  • assets/fixtures/component.drawio8.2 KB
  • assets/fixtures/component.spec.json3.9 KB
  • assets/fixtures/container.drawio13.1 KB
  • assets/fixtures/container.spec.json2.5 KB
  • assets/fixtures/context.drawio10.4 KB
  • assets/fixtures/context.spec.json1.5 KB
  • assets/fixtures/dataflow.drawio11.7 KB
  • assets/fixtures/dataflow.spec.json1.6 KB
  • assets/fixtures/deployment.drawio18.3 KB
  • assets/fixtures/deployment.spec.json2.3 KB
  • assets/fixtures/erd.drawio9.8 KB
  • assets/fixtures/erd.spec.json2.1 KB
  • assets/fixtures/evidence/component-view.md476 B
  • assets/fixtures/evidence/orders_api.py395 B
  • assets/fixtures/evidence/orders_retry.py427 B
  • assets/fixtures/evidence/orders_schema.sql169 B
  • assets/fixtures/schemas/orders_models.py834 B
  • assets/fixtures/schemas/orders_models.py.expected.json3.2 KB
  • assets/fixtures/schemas/orders.entity.ts729 B
  • assets/fixtures/schemas/orders.entity.ts.expected.json2.3 KB
  • assets/fixtures/schemas/orders.prisma451 B
  • assets/fixtures/schemas/orders.prisma.expected.json2.3 KB
  • assets/fixtures/schemas/orders.sql427 B
  • assets/fixtures/schemas/orders.sql.expected.json2.5 KB
  • assets/fixtures/sequence.drawio10.1 KB
  • assets/fixtures/sequence.spec.json1.4 KB
  • assets/fixtures/state.drawio9.2 KB
  • assets/fixtures/state.spec.json1.4 KB
  • assets/fixtures/view-manifest.json1.5 KB
  • assets/fixtures/views/orders-containers.spec.json2.6 KB
  • evals/evals.json14.3 KB
  • references/best-practices.md3.0 KB
  • references/c4-model.md968 B
  • references/checklist.md3.9 KB
  • references/cloud-architecture.md2.8 KB
  • references/diagram-selection.md2.7 KB
  • references/diagram-spec.md10.0 KB
  • references/exec-readability.md1.9 KB
  • references/house-style.md2.3 KB
  • references/layout-rules.md3.0 KB
  • references/mermaid-fallback.md2.9 KB
  • references/source-extraction.md2.5 KB
  • references/style-catalog.md3.2 KB
  • references/view-manifest.md4.6 KB
  • scripts/check_layout.py8.5 KB
  • scripts/export_drawio.py3.4 KB
  • scripts/render_drawio.py29.2 KB
  • scripts/render_erd.py3.8 KB
  • scripts/schema_parsers/__init__.py1.2 KB
  • scripts/schema_parsers/django_sqlalchemy.py3.7 KB
  • scripts/schema_parsers/model.py762 B
  • scripts/schema_parsers/prisma.py2.7 KB
  • scripts/schema_parsers/sql_ddl.py3.5 KB
  • scripts/schema_parsers/typeorm.py3.4 KB
  • scripts/schema_to_spec.py4.3 KB
  • scripts/style_catalog.py11.3 KB
  • scripts/test_check_layout.py13.1 KB
  • scripts/test_fixtures.py2.6 KB
  • scripts/test_render_drawio.py46.0 KB
  • scripts/test_schema_parsers.py9.0 KB
  • scripts/test_schema_to_spec.py3.1 KB
  • scripts/test_view_manifest.py19.1 KB
  • scripts/validate_manifest.py18.8 KB
  • scripts/validate_spec.py20.6 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Architecture Diagramming Standard

Priority: P1 (HIGH)

Pipeline

Never 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. 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)
  4. For related views, optionally validate 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.
  6. Inspect the exported image at normal reading size; strict validation cannot prove labels and edges are legible. 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.

Guidelines

  • Name the audience and the decision before drawing anything.
  • One C4 level per diagram: context, container, or component, never mixed.
  • Pick the type from the message, not from habit. See diagram-selection.md.
  • Evidence and confidence are separate. Code citations are documented evidence, not runtime observations; use assumed or unverified for honest design uncertainty.
  • Put the number on the box. metric carries the load or SLO that sized the node, constraint says why it exists; never invent either.
  • Label every edge with its protocol or event; use style: async for events.
  • Cloud icons only where verified. gcp:* and aws:* are official icons; every other vendor is a cloud:* kind with the service named in sublabel. No Azure logos exist in the bundle, so Azure is always cloud:*.
  • Exec audience caps at 12 nodes. Past that, split by level or by flow.
  • Legend and title block are generated. Do not remove or duplicate them.
  • Refine in the spec, not by mutating generated XML. Regeneration preserves files with a valid own baseline, but refuses hand mutation until explicitly acknowledged.

Anti-Patterns

  • No hand-written XML: Write the spec, run the renderer.
  • No invented boxes: Omit what the evidence does not support.
  • No mixed levels: Table columns never appear in a context diagram.
  • No unlabeled arrows: State the protocol or the event.
  • No mystery acronyms: Expand every abbreviation on first use.
  • No orphan nodes: Connect it or cut it.

Red Flags

ThoughtReality
"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.

References

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Upgrade an Android project to Android Gradle Plugin (AGP) 9. Use when migrating to AGP 9, updating Gradle build files, migrating to built-in Kotlin, or adopting the new AGP DSL.

The English summary is being prepared. Showing the original description.

HoangNguyen0403/agent-skills-standard581Updated Oct 24, 2026

Apply Clean Architecture layering, modularization, and Unidirectional Data Flow in Android projects. Use when setting up project structure, placing code in layers, configuring feature/core modules, or implementing UDF patterns; defer Compose state and ViewModel/StateFlow implementation to their specific skills.

The English summary is being prepared. Showing the original description.

HoangNguyen0403/agent-skills-standard581Updated Oct 24, 2026

Implement WorkManager and background processing correctly on Android. Use when creating Worker classes, scheduling tasks, choosing between WorkManager and Foreground Services, or setting up Hilt in workers; defer FCM and notification delivery to android-notifications.

The English summary is being prepared. Showing the original description.

HoangNguyen0403/agent-skills-standard581Updated Oct 24, 2026

Build high-performance declarative UI with Jetpack Compose. Use when writing Composable functions, optimizing recomposition, hoisting state, or working with LazyColumn and side effects; defer deep-link and navigation routing to android-navigation.

The English summary is being prepared. Showing the original description.

HoangNguyen0403/agent-skills-standard581Updated Oct 24, 2026

Migrate an Android XML View to Jetpack Compose following a structured 10-step workflow. Use when converting XML layouts to Compose, setting up Compose in an existing View-based project, or incrementally adopting Compose.

The English summary is being prepared. Showing the original description.

HoangNguyen0403/agent-skills-standard581Updated Oct 24, 2026

Write correct coroutine scopes, lifecycle collection, and dispatcher injection in Android production code. Use for suspend functions, coroutine scopes, and dispatcher mechanics; defer ViewModel StateFlow/LiveData architecture, Fragment lifecycle recipes, persistence/notifications, and unit-test recipes to their specific skills.

The English summary is being prepared. Showing the original description.

HoangNguyen0403/agent-skills-standard581Updated Oct 24, 2026

See all skills by HoangNguyen0403

Report a problem with this skill