architecture-improve

architecture-improve is a skill for Claude Code, Codex from MartinPLarsen/claude-architecture-skills. It costs 169 tokens per session (2,249 once invoked), scanned A, original, MIT.

Architecture and backend guidance for online game servers. It covers how game sessions run, how players connect, and how multiplayer systems handle growth and matchmaking.

In plain words
What is it for?
Use it to design dedicated, host-based, or relay servers and to plan scalable multiplayer backends, matchmaking, and game-session systems.
Why use it?
It helps developers choose a server setup that balances consistency, player latency, security, and infrastructure cost.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is node ../architecture-cleanup/analyze-map.mjs <repo>/architecture-map/map.js > /tmp/seed.json.

Good fit Use it to design dedicated, host-based, or relay servers and to plan scalable multiplayer backends, matchmaking, and game-session systems.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/MartinPLarsen/claude-architecture-skills
agentmods
npx agentmods add skills/martinplarsen/claude-architecture-skills/architecture-improve

Made for: Claude Code, 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 architecture-improve

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/martinplarsen/claude-architecture-skills/architecture-improve"><img src="https://agentmods.dev/badge/skills/martinplarsen/claude-architecture-skills/architecture-improve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 169 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,249 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.00169 $0.02249
Opus 5 $0.00084 $0.01125
Sonnet 5 $0.00034 $0.00450
Haiku 4.5 $0.00017 $0.00225

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

Security

Grade A, and why

architecture-improve 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (apply-proposals.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

architecture-improve/SKILL.md · 153 lines

How it starts

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

Architecture Improve

Deep-research an architecture-map (map.js) for what to change, then paint each idea back onto the map as a proposed node carrying a structured proposal. The sibling of architecture-cleanup: map = WHAT exists → cleanup = what to REMOVE → improve = what to CHANGE.

Core principle — proposals-only. improve surfaces optimisation ideas and draws them on the map. It NEVER edits source, opens PRs, or applies a change (ADR-012: only cleanup gets an execution layer; improve's changes are judgment-heavy refactors, not mechanical removals).

When to use

  • "Optimise the architecture", "improve the pipeline", "where can this be better".
  • After mapping (and ideally cleaning) a repo, to plan structural/flow improvements.
  • Not for line-level perf, micro-optimisation, or product/feature redesign (D4 boundary).
  • Not for finding dead code to delete — that's architecture-cleanup.
  • Recommended order: cleanup → improve (don't optimise code you're about to delete).

Input — map.js (ADR-010)

The input is <repo>/architecture-map/map.js (window.MAP_DATA). If it doesn't exist, build it first with the architecture-map skill, then run improve on the result. If a fresh architecture-cleanup overlay exists, improve reads it (see Cross-skill, ADR-014).

The two lenses (D4)

Every proposal is tagged with exactly one lens:

  • 🏗️ structure — coupling, god-nodes (high fan-in + fan-out), duplicate subsystems, layering violations, missing seams.
  • 🔀 pipeline — redundant hops, serial steps that could run in parallel, idempotency/retry gaps, data stored as expiring temp URLs instead of re-hosted, missing back-pressure.

Step 1 — deep research (fan-out, C3 gate)

  1. Ensure the map exists & is fresh. No map.js → build via architecture-map. A stale map gives stale proposals, so re-map if the repo moved.
  2. Cheap seed signals (deterministic). Reuse cleanup's topology helper to focus the research — it gives per-node degree (god-node = high inbound+outbound), duplicateGroups (dup tech), and blast-radius:
    node ../architecture-cleanup/analyze-map.mjs <repo>/architecture-map/map.js > /tmp/seed.json
    
  3. Cost gate (C3) — warn on scale BEFORE firing. Reader count = number of subsystems on the map. If it is > 8, tell the user the count + a rough token estimate and wait for a go. At/under 8, proceed.
  4. Fan out, one reader per subsystem. Reuse architecture-audit's Map-phase pattern (scout + parallel readers via the Workflow tool / subagents). Each reader carries BOTH lenses in its brief and is pre-seeded with seed.json hints for its subsystem (high-degree nodes, dup groups). One reader per subsystem keeps the agent count = subsystem count. Each reader returns candidate proposals: {problem, change, tradeoff, effort, impact, lens, affectedNodes[]}.

Read the full file on GitHub · 153 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. 12d ago First seen · 153 lines · 0 tokens per session scan A 6e44211d2d4a

Subscribe to this mod's changes

architecture-improve is a skill published in the GitHub repository MartinPLarsen/claude-architecture-skills (3 stars, last pushed 1mo ago), licensed MIT. It adds 169 tokens to every session and 2,249 once invoked, about $0.0008 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.

Related

Other skills, from other repositories

league-akari-sgp-data-source

Use when implementing or reviewing League Akari SGP/LCU data-source selection, SGP API clients, League Servers remote config, Tencent cross-region queries, token handling, or per-feature SGP interoperability.

LeagueAkari/LeagueAkari · 50 tokens

csharp-godot

Use when working with C# in Godot — conventions, GodotSharp API differences from GDScript, project setup, and interop.

jame581/GodotPrompter · 34 tokens

cloudflare-durable-objects

Cloudflare Durable Objects for stateful coordination and real-time apps. Use for chat, multiplayer games, WebSocket hibernation, or encountering class export, migration, alarm errors.

secondsky/claude-skills · 43 tokens

gamedev-multiplayer

Use when adding multiplayer or netcode to a game — client-server vs P2P, server authority and anti-cheat, state replication vs RPCs, prediction and reconciliation, lag compensation, plus Godot 4 / Unity NGO / Unreal wiring. NOT single-player gameplay (that is godot, unity, unreal), NOT matchmaking or server hosting…

ericrisco/rsc-harness · 86 tokens

cloudflare-do-turn-based-multiplayer

Design, implement, debug, or verify a remote turn-based multiplayer game whose rooms run on Cloudflare Durable Objects. Use for room and invite identity, reconnectable seats, WebSocket hibernation, concurrent turns, action idempotency, revision conflicts, or cross-browser game-state agreement. Do not trigger for…

swyxio/skills · 80 tokens

roblox-open-cloud

Roblox Open Cloud REST API for accessing data stores, assets, universes, places, users, groups, subscriptions, and Luau execution from outside the engine or via HttpService. Covers authentication (API keys, OAuth 2.0, avoiding legacy cookie auth), scopes and least-privilege, IP allowlists, key rotation and the 60-day…

nonlooped/roblox-suite · 128 tokens