architecture

architecture is a skill for Claude Code, Codex from saitarrun/Devforge-ai. It costs 83 tokens per session (805 once invoked), scanned A, original, Apache-2.0.

A guide for designing software systems and recording the reasons behind important technical choices. An ADR, or Architecture Decision Record, explains the context, decision, and trade-offs.

In plain words
What is it for?
Use it when planning a system, choosing a technology stack, defining APIs or data schemas, or documenting architecture decisions and trade-offs.
Why use it?
It helps developers make architecture choices consistently and preserve why those choices were made. It also helps compare monoliths, microservices, technologies, and component designs.

Skill for Claude CodeCodex

Part of the devforge-ai plugin — 28 skills, 17 commands, 13 agents shipped together

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 skills/saitarrun/devforge-ai/architecture
Any agent
npx skills add saitarrun/Devforge-ai --skill architecture
Clone the repo
git clone --depth 1 https://github.com/saitarrun/Devforge-ai

Made for: Claude Code, Codex.

Or install devforge-ai, the plugin that ships this one along with the rest of its 28 skills, 17 commands, 13 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/saitarrun/devforge-ai/architecture.svg)](https://agentmods.dev/skills/saitarrun/devforge-ai/architecture)
Your own site
<a href="https://agentmods.dev/skills/saitarrun/devforge-ai/architecture"><img src="https://agentmods.dev/badge/skills/saitarrun/devforge-ai/architecture.svg" alt="Measured on agentmods" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 805 The whole file, excluding the scripts and references it only reads on demand.
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.00083 $0.00805
Opus 5 $0.00042 $0.00402
Sonnet 5 $0.00017 $0.00161
Haiku 4.5 $0.00008 $0.00081

Measured 3d ago against content hash dd300d62b49f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 3d 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/SKILL.md · 104 lines

How it starts

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

Skill: System Architecture & ADRs

Architecture Decision Record (ADR) Format

An ADR documents why an architectural decision was made, not just what was chosen.

# ADR-NNN: [Decision Title]

## Status
Proposed | Accepted | Deprecated | Superseded by ADR-NNN

## Context
Why are we making this decision? What's the problem?
What constraints do we have (timeline, team size, technical)?
What have we already tried or considered?

## Decision
What exactly are we choosing to do?
Be specific and precise.

## Consequences

### Positive
- Benefit 1
- Benefit 2

### Negative
- Tradeoff 1
- Tradeoff 2

### Mitigations
- How we'll handle negative consequences

Tech Stack Decision Template

Compare 3 options for each major choice:

Factor Option A Option B Option C
Learning curve Steep Gentle Moderate
Community Large Small Medium
Performance 1000 rps 10k rps 5k rps
Scalability Hard Easy Medium
Team expertise None High Medium

Decision: Option B
Reasoning: Team knows it, easy to scale, community support

Coupling vs. Cohesion

High Cohesion = related code lives together

  • Example: All user auth logic in AuthService module

Low Coupling = modules don't depend on each other heavily

  • Example: PaymentService doesn't directly call AuthService; uses events instead

Goal: High cohesion + low coupling = easy to change

Service Granularity Spectrum

Monolith Distributed Monolith Microservices
One codebase, one deploy One codebase, separate deploys Many codebases, many deploys
Easy to test end-to-end Harder to test end-to-end Complex testing, many moving parts
Scales vertically (bigger server) Scales each layer independently Scales each service independently
All-or-nothing deploy risk Lower deploy risk Highest deploy risk if not careful

When to split from monolith → services:

  • Team is >20 engineers (communication overhead)
  • Need independent scaling (some services get more traffic)
  • Different technology stacks needed (one service needs fast Go, another needs Python ML)
  • Deploy frequency conflict (some teams want to deploy hourly, others weekly)

Read the full file on GitHub · 104 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. 3d ago First seen · 104 lines · 83 tokens per session scan A dd300d62b49f

Subscribe to this mod's changes

architecture is a skill published in the GitHub repository saitarrun/Devforge-ai (5 stars, last pushed 20d ago), licensed Apache-2.0. It adds 83 tokens to every session and 805 once invoked, about $0.0004 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

memoire-design-tooling

Use when a task spans interface understanding, design-system memory, UI audits, design CI, Figma, shadcn or Tailwind code generation, research, or agent design workflows and needs the correct Memi capability selected.

memi-design/memi · 51 tokens

build-swiftui-interface

Use when a coding agent must design, scaffold, implement, or verify an iOS or macOS SwiftUI interface with Apple-platform state, accessibility, availability, testing, and Xcode evidence.

memi-design/memi · 45 tokens

audit-frontend-design

Use when reviewing or changing a React, Next.js, Tailwind, or shadcn interface and you need evidence-backed findings for accessibility, hierarchy, tokens, states, and responsive design before editing code.

memi-design/memi · 46 tokens

enforce-design-ci

Use when a repository needs deterministic pull-request checks for new accessibility, design-token, component-structure, responsive, and UI-state regressions with file-level evidence.

memi-design/memi · 37 tokens

remember-design-system

Use when an agent is about to build or refactor interface code and needs a compact, repository-specific brief covering existing tokens, components, routes, conventions, and verification commands.

memi-design/memi · 39 tokens

codexkit-repository-maintenance

Use when maintaining or improving the GameStudio-CodexKIT source repository, including CI, governance, catalog, generators, adapters, packaging, documentation, versioning, or release readiness.

hoatv2211/GameStudio-CodexKIT · 45 tokens