tools-archfit

tools-archfit is a skill for Claude Code, Codex from alexei-led/architect. It costs 106 tokens per session (2,919 once invoked), scanned A, original, MIT.

A skill for collecting measured evidence about a software system’s architecture with the archfit tool. It produces checks, scorecards, change comparisons, machine-readable findings, and task data.

In plain words
What is it for?
Supporting architecture reviews when a repository has archfit configuration, or when archfit is available or explicitly requested.
Why use it?
It gives architecture reviews consistent repository-wide measurements instead of relying only on selected files.

Skill for Claude CodeCodex

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is if [ -x ./.bin/archfit ]; then ARCHFIT=./.bin/archfit; fi.

Good fit Supporting architecture reviews when a repository has archfit configuration, or when archfit is available or explicitly requested.

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/alexei-led/architect
agentmods
npx agentmods add skills/alexei-led/architect/tools-archfit

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 tools-archfit

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexei-led/architect/tools-archfit.svg)](https://agentmods.dev/skills/alexei-led/architect/tools-archfit)
Your own site
<a href="https://agentmods.dev/skills/alexei-led/architect/tools-archfit"><img src="https://agentmods.dev/badge/skills/alexei-led/architect/tools-archfit.svg" alt="Measured on agentmods" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,919 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.00106 $0.02919
Opus 5 $0.00053 $0.01460
Sonnet 5 $0.00021 $0.00584
Haiku 4.5 $0.00011 $0.00292

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

Security

Grade A, and why

tools-archfit 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 7d 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/tools-archfit/SKILL.md · 262 lines

How it starts

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

archfit deterministic evidence

Use archfit as a deterministic measurement and gate engine. It supplies whole-repo facts; the architect still judges intent, domain volatility, runtime/deploy context, false positives, and missing risks.

When to use

Use when a target repo contains .archfit.yaml or archfit.yaml, when archfit is available on PATH, or when the user asks to combine architect review with archfit output. Use it during architecture-review before final triage/scoring so hard facts can reduce sampling bias.

Do not use this skill for:

  • archfit analyze --ai-summary or archfit explain <fingerprint> --ai-summary AI narration as primary evidence;
  • archfit config init, config update --apply, baseline, config enrich (labels/owner/volatility/subdomain), config init --ai-classify, config enrich ... --apply, or config writes unless the user explicitly asks for config work;
  • applying fixes from agent_tasks;
  • replacing the architect's independent evidence gathering and Balanced Coupling judgment.

Skill navigation

  • Missing or absent config: return to architecture-review; record archfit as missing or skipped. Optional archfit absence is a coverage gap, not a blocker.
  • Current skill: run deterministic archfit commands, summarize facts, and build a calibration matrix.
  • Next skill: return to architecture-review for independent verification, scoring, and report writing; use methodology-architecture-fitness for checks that should become enforced gates.

Read-only discipline

Prefer existing config only. Write command outputs to a temp directory outside the target repo. Do not create baselines, labels, generated reports, or config patches inside the repo without explicit user approval.

If archfit or a child tool writes caches or indexes under the target repo, record that path as generated tool state. If the output path is inside the scanned root, warn that reports can contaminate measurements and move future outputs outside the repo or exclude them.

Read the full file on GitHub · 262 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. 7d ago First seen · 262 lines · 106 tokens per session scan A 549ef644dedd

Subscribe to this mod's changes

tools-archfit is a skill published in the GitHub repository alexei-led/architect (2 stars, last pushed 1mo ago), licensed MIT. It adds 106 tokens to every session and 2,919 once invoked, about $0.0005 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

git-workflow

This skill should be used when the user asks to "create git commit", "manage branches", "follow git workflow", "use Conventional Commits", "handle merge conflicts", or asks about git branching strategies, version control best practices, pull request workflows. Provides comprehensive Git workflow guidance for team…

Galaxy-Dawn/claude-scholar · 64 tokens

daily-paper-generator

Use when the user asks to generate daily paper digests on a general topic. This skill supports both arXiv and bioRxiv (or either one), then produces structured Chinese/English summaries for selected papers.

Galaxy-Dawn/claude-scholar · 47 tokens

brooks-sweep

Full-sweep mode: runs a unified analysis across all quality dimensions — code decay, architecture, tech debt, and test quality — then applies fixes directly to the codebase. Safe changes are auto-applied; risky changes are confirmed before execution. Drawing on twelve classic engineering books. Triggers when: user…

hyhmrright/brooks-lint · 178 tokens

codex-autoresearch

Run autonomous, measurable experiments in a Git repository: change one hypothesis, verify a numeric metric, keep improvements, and revert failures. Use when the user wants Codex to keep iterating toward a numeric target in the foreground or as a detached background run. Do not use for ordinary one-shot coding…

leo-lilinxiao/codex-autoresearch · 80 tokens

clipboard

Copy text to clipboard with optional rich formatting. Triggers on "copy to clipboard", "copy that", "pbcopy", "copy formatted", "copy rich text".

CodeAlive-AI/ai-driven-development · 36 tokens

neo4j-modeling-skill

Design, review, and refactor Neo4j graph data models. Use when choosing node labels vs relationship types vs properties, migrating relational/document schemas to graph, detecting anti-patterns (generic labels, supernodes, missing constraints), designing intermediate nodes for n-ary relationships, enforcing schema with…

neo4j-contrib/neo4j-skills · 152 tokens