About likec4-architecture
A workflow skill for creating and maintaining LikeC4 software architecture models. It guides teams from model structure and focused views through CLI validation and preview or export commands.
Key features
- 01Reuse or bootstrap model files
- 02Define elements and relationships
- 03Create focused architecture views
- 04Validate models with LikeC4 CLI
- 05Provide preview and export commands
Use cases
- 01Start an architecture model for a system
- 02Organize diagrams by domain or team
- 03Validate architecture changes before sharing
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ timseriakov/ likec4-architecture-skill --skill likec4-architectureAfter installing, type/likec4-architecturein Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
README.mdagents/openai.yamlassets/likec4-starter/docs/architecture/model.c4evaluations/create-new-model.jsonexport-artifacts.jsonupdate-existing-model.jsonreferences/examples.mdlikec4-capabilities-reference.mdlikec4-checklist.mdlikec4-dsl-quickstart.mdlikec4-patterns.mdscripts/bootstrap_likec4_starter.shDetails
From the project READMELikeC4 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
Comments
Markdown supported