Likec4 architecture
Skill timseriakov/likec4-architecture-skill/likec4-architecture
Build and maintain software architecture as code with LikeC4 DSL. Use when tasks mention architecture diagrams, C4/context/container/component views, system landscape, dependency/integration maps, or when the user wants architecture generated/evolved from code. Apply for creating new `.c4`/`.likec4` models, updating existing models, validating with LikeC4 CLI, and preparing preview/build/export outputs.From its SKILL.md
npx -y skills add timseriakov/likec4-architecture-skill --skill likec4-architectureAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 4 commands, including `npx likec4 validate` and 3 more.
SKILL.md
2.2 KB, 405 tokens by cl100k_base, as published. Nobody here has run it
LikeC4 Architecture
Model software architecture in LikeC4, keep it executable, and return validation-backed outputs.
Workflow
- Scope the model:
- Identify system boundary and audience.
- Start with context and container views unless user asks otherwise.
- Locate model files:
- Reuse existing
.c4/.likec4files when present. - If missing, bootstrap from
assets/likec4-starter/docs/architecture/model.c4.
- Model structure before visuals:
- Define stable element IDs and meaningful names.
- Add explicit directional relationships with short labels.
- Add technology/description fields where helpful.
- Keep views focused:
- Build small, purposeful views.
- Split crowded diagrams by domain, team, or bounded context.
- Validate and package:
- Run
npx likec4 validateand fix all errors. - Provide
npx likec4 startpreview command. - If requested, provide
build/exportcommands.
Required Quality Gates
- Do not leave unlabeled ambiguous relationships.
- Do not leave orphan elements that never appear in views.
- Prefer domain names over implementation noise in element titles.
- Finish only after successful CLI validation.
Command Set
Use the minimal commands needed for the task:
npx likec4 validate
npx likec4 start
npx likec4 build -o ./dist
npx likec4 export png -o ./assets/architecture
Output Contract
When architecture files change, return:
- Changed files.
- Validation result.
- One-line purpose for each view.
- Preview/build/export command(s) relevant to the request.
Resources
- CLI and modeling checklist:
references/likec4-checklist.md - Starter model template:
assets/likec4-starter/docs/architecture/model.c4 - Bootstrap helper:
scripts/bootstrap_likec4_starter.sh
What ships with it: 12 files
12.0 KB alongside SKILL.md, 1 of them executable
agents/
- openai.yaml254 B
assets/
evaluations/
references/
- examples.md964 B
- likec4-capabilities-reference.md1.7 KB
- likec4-checklist.md864 B
- likec4-dsl-quickstart.md1.6 KB
- likec4-patterns.md1.5 KB
scripts/
- bootstrap_likec4_starter.shruns451 B
- README.md2.6 KB