likec4-architecture

likec4-architecture is a skill for Codex from timseriakov/likec4-architecture-skill. It costs 87 tokens per session (496 once invoked), scanned A, original, MIT.

A way to describe software architecture as code using the LikeC4 language. It supports C4 views, which show systems and their parts at different levels, such as system context, containers, and components.

In plain words
What is it for?
Use it to create or update architecture models, system landscapes, dependency maps, and focused context or container diagrams, then validate and preview them.
Why use it?
It keeps architecture diagrams in editable model files that can be checked for errors. This makes system boundaries and dependencies easier to maintain as the software changes.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is npx likec4 export png -o ./assets/architecture.

Good fit Use it to create or update architecture models, system landscapes, dependency maps, and focused context or container diagrams, then validate and preview them.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/timseriakov/likec4-architecture-skill
agentmods
npx agentmods add skills/timseriakov/likec4-architecture-skill/likec4-architecture

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for likec4-architecture

README.md
[![agentmods](https://agentmods.dev/badge/skills/timseriakov/likec4-architecture-skill/likec4-architecture/github.svg)](https://agentmods.dev/skills/timseriakov/likec4-architecture-skill/likec4-architecture)
Your own site
<a href="https://agentmods.dev/skills/timseriakov/likec4-architecture-skill/likec4-architecture"><img src="https://agentmods.dev/badge/skills/timseriakov/likec4-architecture-skill/likec4-architecture/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for likec4-architecture

Your own site · 80×15
<a href="https://agentmods.dev/skills/timseriakov/likec4-architecture-skill/likec4-architecture"><img src="https://agentmods.dev/badge/skills/timseriakov/likec4-architecture-skill/likec4-architecture.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 496 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00087 $0.00496
Opus 5.5 $0.00035 $0.00198
Sonnet 5.5 $0.00017 $0.00099
Haiku 4.5 $0.00009 $0.00050

Measured 2mo ago against content hash 32052af0b2ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

likec4-architecture scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/bootstrap_likec4_starter.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

likec4-architecture/SKILL.md · 71 lines

What it actually says

LikeC4 Architecture

Model software architecture in LikeC4, keep it executable, and return validation-backed outputs.

Workflow

  1. Scope the model:
  • Identify system boundary and audience.
  • Start with context and container views unless user asks otherwise.
  1. Locate model files:
  • Reuse existing .c4/.likec4 files when present.
  • If missing, bootstrap from assets/likec4-starter/docs/architecture/model.c4.
  1. Model structure before visuals:
  • Define stable element IDs and meaningful names.
  • Add explicit directional relationships with short labels.
  • Add technology/description fields where helpful.
  1. Keep views focused:
  • Build small, purposeful views.
  • Split crowded diagrams by domain, team, or bounded context.
  1. Validate and package:
  • Run npx likec4 validate and fix all errors.
  • Provide npx likec4 start preview command.
  • If requested, provide build/export commands.

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:

  1. Changed files.
  2. Validation result.
  3. One-line purpose for each view.
  4. 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
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 71 lines · 87 tokens per session scan A 32052af0b2ad

Subscribe to this mod's changes

likec4-architecture is a skill published in the GitHub repository timseriakov/likec4-architecture-skill (4 stars, last pushed 7mo ago), licensed MIT. It adds 87 tokens to every session and 496 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

dochub-architect

A tool-assisted workflow for creating and moving architecture diagrams into a DocHub YAML repository. It works with DrawIO and PlantUML diagrams using the C4 model, a way to describe systems at different levels of detail.

john7ross/dochub-architect-tool · 136 tokens

archinsight

Create, edit, import, analyze, repair, validate, inspect, and render Archinsight Insight architecture-as-code models and custom views. Use when working with .ai models or .aiq queries, migrating architecture from another DSL or diagram, C4-style architecture models, system/container/component/code diagrams, deployment…

lonely-lockley/archinsight · 84 tokens

diagram-design

Create branded architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart (polar/radial lollipop), loop/flywheel, nested, tree, org chart, layer stack, exploded axonometric, axonometric plan, Venn, pyramid/funnel…

cathrynlavery/diagram-design · 214 tokens

fireworks-tech-graph

Create precise SVG technical diagrams, export PNG or offline HTML, and animate supported semantic SVGs to GIF. Use for architecture, UML, agent, cloud or workflow diagrams; not photos, raster art or statistical charts.

yizhiyanhua-ai/fireworks-tech-graph · 49 tokens

card-design

A visual design system for social-media cards and posters, covering colour choices, Chinese typography, layouts, content density, and quality checks.

ZJU-REAL/Easel · 113 tokens

pr-lens

WHAT: Draws a code change or part of a codebase as an animated architecture, data-flow or data-model diagram, on its own or in a pull request. WHEN: asked to diagram, visualise or explain a change, a system or a schema change, or when a pull request should carry a diagram. KEYWORDS: PR Lens, diagram, architecture…

coldteadotai/pr-lens · 96 tokens