architecture-guide

architecture-guide is a skill for Claude Code from langwatch/langwatch. It costs 124 tokens per session (3,107 once invoked), scanned A, original, Apache-2.0.

A map of the project’s main architecture record and the skills that explain each part. It helps locate the rule for a question and says which sources take priority when documents disagree.

In plain words
What is it for?
Use it before composing a process, creating a module, adding an API operation, defining a repository, or checking what the project architecture says about a design choice.
Why use it?
It prevents developers from relying on an outdated or less authoritative document. It also reduces guesswork about where code belongs and which project rule applies.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md.

Good fit Use it before composing a process, creating a module, adding an API operation, defining a repository, or checking what the project architecture says about a design choice.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/langwatch/langwatch/architecture-guide
About the project

LangWatch is a platform for testing, evaluating, and monitoring LLM-powered agents before release and in production. Teams use it to run agent simulations, trace and evaluate behavior, improve prompts and models, review failures, and manage provider costs and governance.

langwatch/langwatch · 5,059 stars · on GitHub · langwatch.ai

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 langwatch/langwatch --skill architecture-guide
Clone the repo
git clone --depth 1 https://github.com/langwatch/langwatch

Made for: Claude Code.

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 architecture-guide

README.md
[![agentmods](https://agentmods.dev/badge/skills/langwatch/langwatch/architecture-guide/github.svg)](https://agentmods.dev/skills/langwatch/langwatch/architecture-guide)
Your own site
<a href="https://agentmods.dev/skills/langwatch/langwatch/architecture-guide"><img src="https://agentmods.dev/badge/skills/langwatch/langwatch/architecture-guide/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 architecture-guide

Your own site · 80×15
<a href="https://agentmods.dev/skills/langwatch/langwatch/architecture-guide"><img src="https://agentmods.dev/badge/skills/langwatch/langwatch/architecture-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,107 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.00124 $0.03107
Opus 5.5 $0.00050 $0.01243
Sonnet 5.5 $0.00025 $0.00621
Haiku 4.5 $0.00012 $0.00311

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

Security

Grade A, and why

architecture-guide 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 1mo 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/skills/architecture-guide/SKILL.md · 140 lines

How it starts

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

The architecture guide

One record: dev/docs/ARCHITECTURE.md. Every other architecture document is deleted or points there. This skill does not restate it. It tells you which section answers your question, what outranks the record, and what to do when the record and the tree disagree.

Truth order

  1. The linters (pnpm lint, pnpm lint:architecture). Highest. The linting skill reads a finding.
  2. dev/docs/ARCHITECTURE.md. On conflict between sections, the more specific wins.
  3. specs/ and modules/<name>/specs/. Feature files are requirements.

When a lower one disagrees with a higher one, the lower one is the defect (record intro and §17).

Question to section

You are asking Read Then skill Backed by (langwatch/* rule; enforcer policy)
What runs where; what an app is §1 repo-tree policy application-boundaries
Which package; where code lives; Chakra, colour §2 repo-tree, design-system package-boundaries, environment-boundaries; policies workspace-seams, manifests, cycles
Module anatomy; dependency direction §3 module module-layers, module-classes, feature-source-filename, feature-source-layout, feature-source-subject; policies feature-layout, feature-shape, source-folder-shape
*Api token, schemas, errors, verbs §3.1, §12 contract schema-outside-contract, handled-error-outside-contract, refusal-is-a-handled-error, banned-verb-prefix, fallible-result-naming
Services, repositories, channels, rules, file grammar §3.2 process-module service-does-not-open-a-channel, service-loads-its-own-config, store-containment, pass-through-class; policies prisma-table-ownership, clickhouse-table-ownership, memory-twin-drift, service-ceilings
What a module may demand; peers, supply, capabilities §3.3, §3.5, §6, §11 module-dependencies package-boundaries, store-containment, module-classes, environment-boundaries, service-loads-its-own-config, no-hand-rolled-plan-gate, plan-literals, enterprise-license-header; policies peer-cycles, cycles, feature-configuration; boot config_collision, secret_sealed
Browser half; no kits; closed packages §3.4, §10 browser-module web-imports-server-shaped-value, environment-boundaries; policies browser-package-closure, browser-package-exports, browser-node-leak
Reading another module's data in the browser §3.4, §10.1 module-client policies browser-package-exports, framework-module-contracts
main.ts, boot(), config, stores §4, §5, §6, §7 process-composition no-boot-hook-outside-guard, environment-boundaries, package-boundaries, store-containment, service-loads-its-own-config; policies application-boundaries, feature-configuration, peer-cycles, prisma-migration-access, eventing-table-access; enforcer tests generated-module-lists, redis-cache-ttl, system-migrations-start-order
Schema change, backfill, tenant step, upgrade, event rename §7, §9 migration (routes to postgres-migration, clickhouse-migration, migration-data-step, eventing-and-worker) policies prisma-migration-access, migration-owners; scanners migration-safety
REST routes, tRPC procedures, /api/<x> §8 api-transports transport-declares, rest-route; policy platform-operator-calls
Projections, subscribers, process managers, purge, cross-module facts §9, §9.1, ADR-179 eventing-and-worker eventing-role-purity, idempotency-key-is-stable; policies eventing-table-access, service-projection-boundaries
Browser state tiers, one global store §10.2, ADR-169 browser-module browser-store-containment, query-data-in-state, no-redux
Enterprise, entitlement, licences §11 module-dependencies no-hand-rolled-plan-gate, enterprise-license-header, package-boundaries (coreImportsEnterprise)
Throwing, error codes, REST error bodies §12 contract handled-error-outside-contract, refusal-is-a-handled-error
Tests, memory tier, spec binding §13, §14 testing test-description-is-an-action, unit-test-does-not-render, stand-in-cast, no-logger-spy, no-tautological-assertion; policy default-test-lane; check:feature-parity
Is this spelling dead? §15 none: do not write it none (some spellings are caught by the rules above)
Does the target name exist yet? §16 none none
What a finding means; baselines; disables §17 linting suppression-states-why, comment-block-size, id-generation-origin; every policy (pnpm lint:architecture --list-policies)
Is this diff or bind ready to commit? §3.1, §5, §8, §12, §13, §15 architecture-review, spec-binding-review every policy; check:feature-parity
Nx, test:affected, caches; how the drive runs §18 .claude/skills/core/testing-rules.md none
The local stack, haven, the sims, apps/server §19 haven, sims, dev-runtime, server-cli none

Read the full file on GitHub · 140 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. 1mo ago Changed · -6 lines e4ecf22de93f
  2. 1mo ago First seen · 146 lines · 124 tokens per session scan A e14f5a5915fd

Subscribe to this mod's changes

architecture-guide is a skill published in the GitHub repository langwatch/langwatch (5,059 stars, last pushed today), licensed Apache-2.0. It adds 124 tokens to every session and 3,107 once invoked, about $0.0005 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-10-13.

Related

architecture-guide compared with skills from other repositories

architecture-guide next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
architecture-guidelangwatch/langwatchSkill5.1ktodayApache-2.0A124Claude Code
trulens-evaluation-setuptruera/trulensSkill3.7k2d agoMITA17Claude Code, Codex
trulens-diagnosistruera/trulensSkill3.7k2d agoMITA17Claude Code, Codex
evalscopemodelscope/evalscopeSkill3.7k2d agoApache-2.0A195Claude Code, Codex
trulens-evaluation-workflowtruera/trulensSkill3.7k2d agoMITA18Claude Code, Codex
trulens-dataset-curationtruera/trulensSkill3.7k2d agoMITA19Claude Code, Codex
qaSkyvern-AI/skyvernSkill24ktodayAGPL-3.0A33Claude Code, Codex