archinsight

archinsight is a skill for Codex from lonely-lockley/archinsight. It costs 77 tokens per session (1,510 once invoked), scanned A, a copy of archinsight, Apache-2.0.

An assistant skill for working with Archinsight's .ai architecture files. Archinsight is a typed language for describing systems, their parts, and how they are deployed.

In plain words
What is it for?
It is for maintaining architecture-as-code models, including C4-style system, container, component, code, and deployment diagrams.
Why use it?
It gives the assistant defined workflows for creating, importing, checking, repairing, and rendering architecture models.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit It is for maintaining architecture-as-code models, including C4-style system, container, component, code…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lonely-lockley/archinsight/codex
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lonely-lockley/archinsight --skill codex
Clone the repo
git clone --depth 1 https://github.com/lonely-lockley/archinsight

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 archinsight

README.md
[![agentmods](https://agentmods.dev/badge/skills/lonely-lockley/archinsight/codex.svg)](https://agentmods.dev/skills/lonely-lockley/archinsight/codex)
Your own site
<a href="https://agentmods.dev/skills/lonely-lockley/archinsight/codex"><img src="https://agentmods.dev/badge/skills/lonely-lockley/archinsight/codex.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,510 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 89% copy Near-identical to another mod 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.00077 $0.01510
Opus 5 $0.00039 $0.00755
Sonnet 5 $0.00015 $0.00302
Haiku 4.5 $0.00008 $0.00151

Measured today against content hash 3fac0468f0cb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

archinsight 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 today.

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.

Origin

This is a copy

89% identical to archinsight — 44 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

archinsight-cli/src/skill/resources/targets/codex/SKILL.md · 136 lines

How it starts

The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Archinsight

Use this skill when creating, analyzing, or repairing Insight .ai models, or when importing an existing architecture description into Insight.

Insight is its own typed architecture-as-code language. Do not infer its syntax from YAML, Mermaid, PlantUML, Structurizr, or C4 DSL.

Codex Usage Notes

Treat this SKILL.md as the entrypoint and load routed reference files only when the task needs them. Use shell access to run validation. Do not silently install global npm packages or change machine configuration.

This package was generated by Archinsight CLI {{CLI_VERSION}}. Run archinsight --version before editing. If the installed version differs, regenerate the skill so its references, core sources, examples, and built-in queries match the runtime.

Required Tool

Use the Archinsight CLI as the validation source of truth:

archinsight --help
archinsight link . --format text

If archinsight is not available, read references/cli.md. Do not install or update packages without the user's authorization.

Task modes

Choose one mode before acting:

  • Analyze: stay read-only and follow references/analysis.md. Inspect sources, run structure, link, and the relevant query, then separate authored facts, derived relationships, deployment projections, and rendered presentation in the findings.
  • Repair: reproduce the defect first. For a visual defect, inspect archinsight query ... --format json before treating the image as evidence that the model is wrong. Request the current image or rendered output when it is not available, make the smallest model or query change, and validate the same semantic path again before rendering.
  • Build or rebuild: perform discovery before editing, then model from the outside inward and validate after each architectural layer.
  • Extend an existing model: inventory existing ids, imports, edges, and view scope; preserve stable identities and compare linked/query results before and after each focused change.
  • Import an existing model: follow references/importing-models.md. Establish which source artifacts are authoritative, translate facts rather than drawing layout, record uncertain mappings, and validate one architectural layer at a time.

Read the full file on GitHub · 136 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today First seen · 136 lines · 77 tokens per session scan A 3fac0468f0cb

Subscribe to this mod's changes

archinsight is a skill published in the GitHub repository lonely-lockley/archinsight (87 stars, last pushed yesterday), licensed Apache-2.0. It adds 77 tokens to every session and 1,510 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to archinsight, differing in 44 lines, and is treated as a copy.

Related

Other skills, from other repositories

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…

timseriakov/likec4-architecture-skill · 87 tokens

pr-lens

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

coldteadotai/pr-lens · 81 tokens

FlowForge

A draw.io diagram tool that turns a description or document into editable visual diagrams. Draw.io is software for making flowcharts, system diagrams, and other structured illustrations.

wentong2022-arch/flowforge-skill · 153 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

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

pr-lens

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

coldteadotai/pr-lens · 81 tokens