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 $0.00044 $0.00248
Sonnet 5 $0.00017 $0.00099
Haiku 4.5 $0.00009 $0.00050

Measured 11d ago against content hash 32052af0b2ad, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, 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 11d 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. 11d 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 (3 stars, last pushed 6mo ago), licensed MIT. It adds 87 tokens to every session and 496 once invoked, about $0.0004 per session on Opus 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

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

fireworks-tech-graph

Create technical diagrams such as software architecture, data flow, flowcharts, sequence diagrams, C4 reviews, cloud deployments, event streams, observability investigations, agent/memory systems, UML, ER, network topology, timelines, and technical concept maps, then export SVG, PNG, focused semantic SVG-to-GIF…

yizhiyanhua-ai/fireworks-tech-graph · 128 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

openhop

Render an interactive step-by-step diagram of a specific system, feature, codebase, workflow, pipeline, user journey, architecture, idea, or proposed solution using OpenHop. Use this skill whenever the user wants to understand, explain, describe, walk through, trace, diagram, or visualize a sequence of named hops…

naorsabag/openhop · 214 tokens

draw-io

Generate and validate draw.io diagrams in XML format. Strict quality rules for font settings, edge routing, containers, layers, and Japanese text. 23-rule validator with CLI. Use for flowcharts, architecture diagrams, sequence diagrams in .drawio format.

ekusiadadus/draw-mcp · 55 tokens

codemap

Turns a codebase into an explorable isometric architecture diagram — a self-contained HTML artifact with blocks on a grid, a component index, a what-it-does/how-it's-built panel, and real data snippets travelling along the edges that the reader can stop and inspect. Use this whenever someone asks for a codemap by name…

beadnall/codemap · 202 tokens