architecture-compass

architecture-compass is a skill for Claude Code from techygarg/lattice. It costs 114 tokens per session (3,781 once invoked), scanned A, original, MIT.

A structured review of an existing repository's architecture, meaning how its code is divided and how the parts depend on one another. It records the current state and a recommended direction without changing the code.

In plain words
What is it for?
Use it to inspect one repository, module, or folder, discuss architectural choices, identify domain boundaries, and produce a shareable insights document.
Why use it?
It turns an unclear or inconsistent codebase into a shared view of its structure and the decisions that may guide future work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the lattice plugin — 33 skills, 1 agent shipped together

Good fit Use it to inspect one repository, module, or folder, discuss architectural choices, identify domain boundaries, and produce a shareable insights document.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/techygarg/lattice/architecture-compass
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 techygarg/lattice --skill architecture-compass
Clone the repo
git clone --depth 1 https://github.com/techygarg/lattice

Made for: Claude Code.

Or install lattice, the plugin that ships this one along with the rest of its 33 skills, 1 agent.

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-compass

README.md
[![agentmods](https://agentmods.dev/badge/skills/techygarg/lattice/architecture-compass.svg)](https://agentmods.dev/skills/techygarg/lattice/architecture-compass)
Your own site
<a href="https://agentmods.dev/skills/techygarg/lattice/architecture-compass"><img src="https://agentmods.dev/badge/skills/techygarg/lattice/architecture-compass.svg" alt="Measured on agentmods" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,781 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00114 $0.03781
Opus 5 $0.00057 $0.01891
Sonnet 5 $0.00023 $0.00756
Haiku 4.5 $0.00011 $0.00378

Measured 8d ago against content hash 8bddcca171cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

architecture-compass 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 8d 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.

skills/architecture-compass/SKILL.md · 277 lines

How it starts

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

Architecture Compass

Required Skills

Read, apply:

  1. framework:knowledge-priming -- Load codebase context: language, framework, structure, conventions (always)
  2. framework:architecture -- Architectural audit lens and recommended direction guardrails (always)
  3. framework:domain-driven-design -- Strategic DDD only: bounded contexts, domain seams (conditional: only when domain complexity warrants it)
  4. framework:collaborative-judgment -- Surface judgment calls during co-design rounds (always)

Workflow

Step 1: Load Existing Context

Check for an existing insights document first. If .lattice/insights/architecture.md already exists:

  • Read it. Check the Session Status table using these three states:
    • pending — row exists, no content written yet
    • in-progress — content exists in the section but no agreed date recorded
    • ✅ agreed — content exists and date is recorded
  • Resume from the earliest pending or in-progress phase. For in-progress phases: present the existing content for re-confirmation rather than regenerating it.
  • In-progress without content: If Current Architecture is in-progress but the document has no Current Architecture content (the previous session's scan context was lost), re-run Step 2 scan before presenting.
  • Staleness check: If the most recent ✅ agreed date in the Session Status table is older than 30 days, run a lightweight re-scan (Steps 2.1 and 2.6 only — tree + imports). If material structural changes are detected, present them and ask whether Current Architecture needs revision before proceeding.
  • Do not re-scan if Current Architecture is already ✅ agreed and the staleness check passes.
  • Tell the user what was found and which phase the session resumes from.

If no existing document: proceed from Step 2.

Check for .lattice/config.yaml. Load knowledge-base.md and architecture.md from .lattice/standards/ if they exist — these shape both the audit lens and the recommended direction proposal.

Read the full file on GitHub · 277 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. 8d ago First seen · 277 lines · 114 tokens per session scan A 8bddcca171cf

Subscribe to this mod's changes

architecture-compass is a skill published in the GitHub repository techygarg/lattice (185 stars, last pushed today), licensed MIT. It adds 114 tokens to every session and 3,781 once invoked, about $0.0006 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-30.

Related

Other skills, from other repositories

code-standards

Apply a disciplined engineering workflow to any code change. Use whenever implementing a feature, fixing a bug, or refactoring — before writing code, not after. Walks orient → baseline → smallest change → test → verify → self-review, and enforces language-agnostic hard gates (don't mass-reformat, keep the linter and…

tamdogood/builder-essential-skills · 94 tokens

gaia-issue-resolver

End-to-end plan → implement → review pipeline that takes one triaged Gaia issue to a merged-ready PR, with Kill Criteria on the issue and zero follow-up debt. Use when someone says: "resolve this issue", "take #N end-to-end", "work the P0 queue", "fix and ship this issue", "run the resolver", "close out this issue…

gaia-research/gaia-skill-heaven · 174 tokens

gemini

Cross-model second opinion from Google Gemini — a different AI reviewing the same changes, with deep Google ecosystem knowledge. Three modes: review (pass/fail gate for Google Ads campaigns, SEO metadata, or code), challenge (adversarial stress-test that tries to break your changes), and consult (open Q&A with Gemini…

nowork-studio/notfair-plugin · 184 tokens

audit

Project health audit and health check — architecture, performance, tests, dependencies, code quality. Use when assessing overall project health, before releases, or after refactors.

oliver-kriska/claude-elixir-phoenix · 35 tokens

boundaries

Analyze Phoenix context boundaries and module coupling via mix xref. Use when checking cross-context calls, validating dependencies, before splitting modules, or reviewing architecture.

oliver-kriska/claude-elixir-phoenix · 33 tokens

triage

Triage review findings interactively — approve, skip, or prioritize each issue. Use after /phx:review to filter findings before fixing.

oliver-kriska/claude-elixir-phoenix · 32 tokens