likec4-dsl

Model C4 system architectures in .c4 and .likec4 files.

9|2|Updated Nov 29, 2024
One-click install
npx skills add https://github.com/bbvch-ai/aihub-core --skill likec4-dsl-bbvch-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: likec4-dsl
Source: https://github.com/bbvch-ai/aihub-core/tree/main/.claude/skills/likec4-dsl
Command: npx skills add https://github.com/bbvch-ai/aihub-core --skill likec4-dsl-bbvch-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Architecture diagrams become outdated the moment code changes, creating dangerous misalignment between documentation and reality. This Skill treats architecture as code: you describe systems in .c4 or .likec4 files and LikeC4 generates interactive, always-current C4 diagrams.

Core Features & Use Cases

  • Exact DSL Syntax: Author .c4/.likec4 files with precise rules for identifiers, FQNs, typed relationships, and scoped view predicates.
  • CLI Command Precision: Run validation, export PNG/Draw.io/JSON, and serve previews using canonical commands and flags.
  • View Engineering: Build scoped element views, dynamic sequence diagrams, and deployment views with predicate-based inclusion and styling.
  • Use Case: A platform team maintains system-model.c4 alongside microservices; this Skill ensures they validate syntax, export deployment diagrams, and extend cross-file relationships without ambiguity.

Quick Start

Use the likec4-dsl skill to validate your .c4 file and export a PNG diagram of your architecture.

Frequently Asked Questions about likec4-dsl

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create C4 architecture diagrams as code?

Creating C4 architecture diagrams as code involves authoring `.c4` or `.likec4` source files with exact DSL syntax for identifiers, relationships, and scoped view predicates to generate interactive, always-current system models.

How do I validate infrastructure-as-code syntax for C4 deployment models?

Validating infrastructure-as-code syntax for C4 deployment models requires running canonical LikeC4 CLI commands to check `.c4` file identifiers, FQN reference resolution, and deployment topology tag filtering rules.

Can I export C4 diagrams to PNG or Draw.io from a DSL?

Exporting C4 diagrams to PNG or Draw.io from a DSL is supported by running canonical command-first CLI flags, allowing you to output architecture views directly from `.likec4` source files.

What is the best way to keep architecture diagrams synced with infrastructure changes?

Keeping architecture diagrams synced with infrastructure changes is best achieved through architecture-as-code, where you describe systems in `.c4` files to generate always-current diagrams that update the moment code changes.

How do view predicates control elements in dynamic sequence diagrams?

View predicates control elements in dynamic sequence diagrams using specific semantic rules for `*`, `_`, and `**` wildcards to manage scoped element inclusion, relationship extension, and styling within `.c4` files.

Does LikeC4 DSL support cross-file relationship extension for large microservice models?

LikeC4 DSL supports cross-file relationship extension for large microservice models, allowing you to split architecture definitions across multiple `.c4` files while maintaining cumulative deployment tag filtering and exact FQN resolution.