arch7 CLAUDE.md

arch7 CLAUDE.md is an instructions file for coding agents from KTCrisis/arch7. It costs 1,328 tokens per session, scanned A, original, MIT.

Project instructions for arch7, an MCP server that turns architecture descriptions or Mermaid diagrams into Excalidraw files. Excalidraw is a diagramming tool that stores editable drawings as JSON files.

In plain words
What is it for?
Use it when installing, running, modifying, or extending arch7, including its diagram creation, Mermaid conversion, layout, rendering, and state-editing code.
Why use it?
It gives a coding agent the project’s commands, folder structure, component library, layout system, and available diagram tools in one place.

Instructions file

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.

agentmods
npx agentmods add instructions/ktcrisis/arch7/claude-md
Clone the repo
git clone --depth 1 https://github.com/KTCrisis/arch7

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 arch7 CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ktcrisis/arch7/claude-md.svg)](https://agentmods.dev/instructions/ktcrisis/arch7/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/ktcrisis/arch7/claude-md"><img src="https://agentmods.dev/badge/instructions/ktcrisis/arch7/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,328 This file is loaded in full into every session.
When invoked 1,328 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01328 $0.01328
Opus 5 $0.00664 $0.00664
Sonnet 5 $0.00266 $0.00266
Haiku 4.5 $0.00133 $0.00133

Measured 4d ago against content hash 4fdee2748f9c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

arch7 CLAUDE.md 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 4d 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.

CLAUDE.md · 128 lines

How it starts

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

CLAUDE.md — arch7

What it is

Architecture diagram generator for Excalidraw, exposed as an MCP server. Fork of excalidraw-architect-mcp v0.2.3 (MIT).

Quick commands

pip install -e .                    # editable install
python -m arch7_mcp                 # run MCP server (stdio)
arch7                               # same, via entry point

Structure

arch7_mcp/
├── core/
│   ├── components.py    # 60+ component registry (GCP, Kong, Confluent, Dynatrace, AI...)
│   ├── icons.py         # 18 tech SVG icons (simple-icons CC0), auto-matched to components
│   ├── models.py        # Pydantic models, ShapeType (incl. CYLINDER_V, CYLINDER_H)
│   └── themes.py        # default, dark, colorful, professional
├── engine/
│   ├── layout.py        # Sugiyama auto-layout (grandalf), node sizing
│   └── renderer.py      # Excalidraw JSON builder, cylinder shapes
├── parsers/
│   ├── mermaid.py       # Mermaid → DiagramGraph
│   └── state.py         # Stateful modifications
└── server.py            # FastMCP server, 4 tools

MCP Tools

Tool Input Output
create_diagram nodes[] + connections[] + output_path .excalidraw file
mermaid_to_excalidraw mermaid syntax + output_path .excalidraw file
modify_diagram file_path + operations[] modified .excalidraw
get_diagram_info file_path text summary

Component types (component_type field)

Use these for auto-styling — shape + color + badge applied automatically:

  • GCP: gke, cloud run, cloud function, gcs, bigquery, cloud sql, pub/sub, vpc, psc, cloud armor
  • Kong: kong, kong konnect
  • Confluent: kafka, topic, confluent, schema registry, ksqldb, connect
  • Databases: postgresql, mysql, mongodb, dynamodb, clickhouse, cassandra, sqlite, elasticsearch → CYLINDER_V
  • Queues: kafka, rabbitmq, sqs, nats, pulsar, pub/sub → CYLINDER_H (flattened)
  • AI/Agentic: llm, agent, crewai, langchain, mcp, vector, rag
  • Monitoring: dynatrace, opentelemetry, prometheus, grafana, datadog
  • Infra: nginx, haproxy, envoy, traefik, redis, cloudflare, docker, kubernetes

Read the full file on GitHub · 128 lines

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. 4d ago First seen · 128 lines · 1,328 tokens per session scan A 4fdee2748f9c

Subscribe to this mod's changes

arch7 CLAUDE.md is an instructions file published in the GitHub repository KTCrisis/arch7 (1 stars, last pushed 2mo ago), licensed MIT. It adds 1,328 tokens to every session, about $0.0066 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.