archinsight

archinsight is a skill for Codex from lonely-lockley/archinsight. It costs 84 tokens per session (1,670 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, and deployment diagrams.

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/github.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/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 archinsight

Your own site · 80×15
<a href="https://agentmods.dev/skills/lonely-lockley/archinsight/codex"><img src="https://agentmods.dev/badge/skills/lonely-lockley/archinsight/codex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,670 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.00084 $0.01670
Opus 5.5 $0.00034 $0.00668
Sonnet 5.5 $0.00017 $0.00334
Haiku 4.5 $0.00008 $0.00167

Measured 27d ago against content hash c66fd6d7ea62, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-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 27d ago.

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 · 145 lines

How it starts

The opening of the file, as written. The whole thing — 145 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 and .aiq custom views, 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. Lead with the verdict, then its model evidence; mention a limitation only when it could change the verdict. Search the whole project unless the user explicitly requests a context or source-file scope; only then add $context or $tab filtering.
  • 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 · 145 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. 27d ago Changed · +2 lines c66fd6d7ea62
  2. 29d ago Changed · +1 lines c70fb87793f7
  3. 1mo ago Changed · +1 lines 5a10120a3214
  4. 1mo ago Changed · +5 lines · +7 tokens per session 7c186347d860
  5. 1mo ago 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 (89 stars, last pushed 28d ago), licensed Apache-2.0. It adds 84 tokens to every session and 1,670 once invoked, about $0.0003 per session on Opus 5.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

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

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

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

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

eli5

WHAT: Explains a codebase, a folder, a feature, a command or a pull request to someone who knows nothing about it, as a PR Lens canvas whose walkthrough builds the picture one part at a time. WHEN: /eli5 , or asked to explain code simply, for a beginner, a new hire, a non-engineer, or 'like I'm five'. KEYWORDS: eli5…

coldteadotai/pr-lens · 105 tokens

drawio

Use when the user asks for any draw.io diagram — cloud architecture (AWS, Azure, GCP, Databricks, multi-cloud, hybrid/DR, landing zone, VPC/network, serverless, data pipeline) or a business process (BPMN, swimlane, workflow with roles). Builds with the drawio-ai layout engine using real stencils, validates, and runs a…

sparklabx/drawio-ai-kit · 102 tokens