architecture

architecture is a skill for Claude Code from adamthewilliam/grepika. It costs 53 tokens per session (1,049 once invoked), scanned A, original, MIT.

A codebase analysis skill that maps modules, dependencies, and coupling. A module is a related part of a program, while coupling describes how strongly parts depend on one another.

In plain words
What is it for?
Mapping architecture, tracing which modules use one another, examining a subsystem, and building dependency graphs.
Why use it?
It makes the project’s structure and connections easier to understand before changing code. It can also reveal unclear boundaries and heavily connected areas.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Part of the grepika plugin — 9 skills, 3 commands, 2 agents shipped together

Good fit Mapping architecture, tracing which modules use one another, examining a subsystem, and building dependency graphs.

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

Made for: Claude Code.

Or install grepika, the plugin that ships this one along with the rest of its 9 skills, 3 commands, 2 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/adamthewilliam/grepika/architecture.svg)](https://agentmods.dev/skills/adamthewilliam/grepika/architecture)
Your own site
<a href="https://agentmods.dev/skills/adamthewilliam/grepika/architecture"><img src="https://agentmods.dev/badge/skills/adamthewilliam/grepika/architecture.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,049 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 13
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
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.00053 $0.01049
Opus 5 $0.00026 $0.00524
Sonnet 5 $0.00011 $0.00210
Haiku 4.5 $0.00005 $0.00105

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

Security

Grade A, and why

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

plugins/grepika/skills/architecture/SKILL.md · 124 lines

How it starts

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

Architecture Mapping Skill

You are an architecture analyst. Map module boundaries, trace dependencies, and identify coupling patterns across the codebase.

Input

Focus area: $ARGUMENTS

If no area specified, analyze the entire codebase architecture. If an area is specified (e.g., "api layer", "data pipeline", "auth module"), focus the analysis on that subsystem.

Pre-check

If any tool returns "No active workspace", call mcp__grepika__add_workspace with the project root first, then retry the tool.

Architecture Analysis Workflow

  1. Map module boundaries

    • Use mcp__grepika__toc to identify top-level directories and their structure
    • Use mcp__grepika__outline on key files in each directory to understand exports
    • Identify logical modules (e.g., controllers, services, repositories, types)
  2. Trace inter-module dependencies

    • For each module's key exports, use mcp__grepika__refs to find where they're consumed
    • Group the ref_type: "import" results by source module to build the dependency graph
    • Note which modules import from which other modules
    • Use mcp__grepika__graph for indexed imports, dependents, callers, and callees when the index is available
  3. Identify coupling hotspots

    • Find files/symbols with the highest cross-module reference counts
    • Use mcp__grepika__search with mode: "fts" to find shared abstractions
    • Flag tightly coupled modules (bidirectional dependencies)
  4. Trace data flow

    • Use mcp__grepika__refs on key types/interfaces to see how data moves through layers
    • Use mcp__grepika__outline to identify transformation functions
    • Map the path from entry point to storage/output
  5. Assess module cohesion

    • Use mcp__grepika__outline to check if modules have focused responsibilities
    • Flag modules that export unrelated functionality

Output Format

## Architecture Analysis: [focus area or "Full Codebase"]

### Module Map

| Module | Location | Responsibility | Key Exports |
|--------|----------|----------------|-------------|
| [name] | [path/] | [what it does] | [main exports] |

### Dependency Graph

[module-a] ──imports──> [module-b] [module-a] ──imports──> [module-c] [module-b] ──imports──> [module-d] [module-c] ──imports──> [module-d] (shared dependency)


### Coupling Analysis

| Module Pair | Direction | Shared Symbols | Risk |
|-------------|-----------|----------------|------|
| [a] <-> [b] | bidirectional | [count] | high |
| [a] -> [c] | one-way | [count] | low |

### Data Flow

[Entry Point] → [Module A: validate] → [Module B: transform] → [Module C: persist] Types: RequestDTO → DomainModel → Entity


### Hotspots

- **Most imported**: [symbol] — referenced by [N] modules
- **Most complex**: [file] — [N] exports, [M] dependencies
- **Bidirectional coupling**: [module-a] <-> [module-b]

### Architectural Observations

- **Layering**: [describe if layers are clean or leaky]
- **Shared state**: [any global state or singletons]
- **Boundaries**: [where module boundaries are clear vs blurred]

### Recommendations

- [actionable suggestions for improving architecture]

Read the full file on GitHub · 124 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. 8d ago First seen · 124 lines · 53 tokens per session scan A 4501469bbfd8

Subscribe to this mod's changes

architecture is a skill published in the GitHub repository adamthewilliam/grepika (135 stars, last pushed 26d ago), licensed MIT. It adds 53 tokens to every session and 1,049 once invoked, about $0.0003 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

adversarial-reviewer

Adversarial code review that assumes bugs exist and hunts for them. Use when asked to review code, find bugs, audit for correctness, stress-test a PR, or when someone says "tear this apart" or "what's wrong with this". Give no benefit of the doubt — every line is guilty until proven innocent.

emdash-cms/emdash · 71 tokens

gsd-ns-review

Route to the appropriate quality / review skill based on the user's intent. gsd-code-review-fix was absorbed by gsd-code-review --fix in #2790.

open-gsd/gsd-core · 16 tokens

issue

Use when starting a chain from a GitHub issue — turning an issue URL or number into a triaged, planned, dispatched, and reviewed pull request. Classifies the thread (bug → root-cause discipline, feature → plan chain, question → drafted reply), synthesizes a spec from the issue's own acceptance criteria, then runs the…

jeremylongshore/tons-of-skills-marketplace · 115 tokens

gitnexus

A code-graph analysis add-on for examining an existing codebase, including symbols, call paths, execution flows, and effects across repositories. It can query GitNexus through its command-line or MCP interfaces.

hashgraph-online/awesome-codex-plugins · 58 tokens

cleanup-code-inspections

Reduce technical debt and improve code quality by systematically resolving static analysis warnings.

flutter/flutter-intellij · 19 tokens

superlint

This skill describes the mandatory standard operating procedure for using our internal SuperLint tool. Use this when tasks require fixing code quality issues according to corporate standards.

mgechev/skillgrade · 0 tokens