methodology-architecture-fitness

methodology-architecture-fitness is a skill for Claude Code, Codex from alexei-led/architect. It costs 84 tokens per session (1,176 once invoked), scanned A, original, MIT.

A guide for turning architecture rules into automated checks called fitness functions. These checks can fail a build when code breaks rules about layers, dependencies, cycles, or size limits.

In plain words
What is it for?
Use it to assess existing architecture checks, design enforceable boundaries, or recommend checks that keep refactorings from being undone.
Why use it?
Written architecture rules can be forgotten; automated checks help stop the codebase from drifting away from them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to assess existing architecture checks, design enforceable boundaries, or recommend checks that keep refactorings from being undone.

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

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 methodology-architecture-fitness

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/alexei-led/architect/methodology-architecture-fitness"><img src="https://agentmods.dev/badge/skills/alexei-led/architect/methodology-architecture-fitness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,176 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.00084 $0.01176
Opus 5.5 $0.00034 $0.00470
Sonnet 5.5 $0.00017 $0.00235
Haiku 4.5 $0.00008 $0.00118

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

Security

Grade A, and why

methodology-architecture-fitness 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 3mo 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.

src/skills/methodology-architecture-fitness/SKILL.md · 119 lines

How it starts

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

Architecture fitness

Architecture intent that lives only in a doc is a suggestion. Intent that runs in CI is enforced. A fitness function is an automated check that fails the build when the system drifts from an intended architectural property — a layering rule, an allowed-dependency rule, a cycle ban, a bundle-size budget.

This follows the evolutionary architecture idea of fitness functions. For a review: a documented rule and an enforced rule are not the same, and the score must reflect which one you actually found.

When to use

Use while scoring the architecture_fitness dimension, when designing checks for a new architecture, or when a finding's fix is "and keep it from coming back." A boundary repair without a check to hold it will rot again; the plan should add the check.

Skill navigation

  • Missing architecture intent: use architecture-design to define it or architecture-review to reconstruct it from docs and code.
  • Current skill: use methodology-architecture-fitness to distinguish existing enforced checks from recommended checks.
  • Next skill: use architecture-scorecard when scoring a review, include checks in architecture-design, or sequence approved missing checks in architecture-plan.

Keep these strictly separate — conflating them inflates the score.

  • Existing check — a check that actually runs and can fail the build today. Evidence: a CI step, a lint/dep-rule config, a test that asserts an architectural property, or an archfit gate wired into CI. Cite it. Only existing, enforced checks raise the architecture_fitness score.
  • Recommended check — a check you propose because intent is currently unenforced. It is a recommendation, not evidence of fitness. It belongs in the report's recommendations and the refactoring plan, and does not raise the score.

A repo with thorough architecture docs and zero enforcement scores low on fitness, not high. Documentation is intent; fitness is enforcement.

Read the full file on GitHub · 119 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. 3mo ago First seen · 119 lines · 84 tokens per session scan A 702520ad1fa2

Subscribe to this mod's changes

methodology-architecture-fitness is a skill published in the GitHub repository alexei-led/architect (2 stars, last pushed 9d ago), licensed MIT. It adds 84 tokens to every session and 1,176 once invoked, about $0.0003 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-08-31.

Related

methodology-architecture-fitness compared with skills from other repositories

methodology-architecture-fitness next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
methodology-architecture-fitnessalexei-led/architectSkill29d agoMITA84Claude Code, Codex
releasehyhmrright/brooks-lintSkill1.6ktodayMITA135Claude Code, Codex
new-skillhyhmrright/brooks-lintSkill1.6ktodayMITA145Claude Code, Codex
brooks-sweephyhmrright/brooks-lintSkill1.6ktodayMITA178Claude Code
brooks-testhyhmrright/brooks-lintSkill1.6ktodayMITA161Claude Code
software-design-reviewstencila/stencilaSkill916todayApache-2.0B84Claude Code
code-that-fits-in-your-headCodeAlive-AI/ai-driven-developmentSkill1942d agoMITA215Claude Code