agentleFS
psengerpsenger/ai-agent-skills/skills/arch-lens/SKILL.md

arch-lens

Skill11 starsChanged 7 months agoMITView on GitHub

Explores a codebase for architectural friction through the lens of Ousterhout's deep-module principle (small interface, large implementation). Seven-step interactive workflow: an Explore sub-agent navigates the codebase organically — the friction it experiences IS the signal. Surfaces candidate clusters with coupling reasons, call patterns, shared types, dependency categories, and existing tests that a boundary test would replace. User picks what to explore, frames the problem, then 3–4 parallel sub-agents design competing deep-module interfaces. Chosen design becomes a structured RFC action file readable by GitHub MCP or ROVO (Jira) MCP. Use when the user says "arch review", "find shallow modules", "module depth", "deep module", "Ousterhout", "testability audit", "surface coupling", "design interfaces", "RFC issues", or "architectural friction".

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If a path argument is given, scope to that directory.

    line 31
  2. Distinctive:

    Never propose interface designs before Step 5

    line 55
  3. Distinctive:

    Never advance past Steps 3 or 6 without a user response

    line 56
  4. Very specific:

    Every RFC must include exact file:line references and a before/after illustration

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Arch Lens

Seven-step interactive architectural review. An Explore sub-agent navigates the codebase the way a developer would — the confusion, file-bouncing, and untestable seams it encounters are the findings. No checklists, no rigid heuristics.

Deep module: small interface surface hiding a large, self-contained implementation. Lets callers test at the boundary. Lets AI agents reason without reading internals.

Quick start

  1. If a path argument is given, scope to that directory; otherwise whole repo
  2. Load ${CLAUDE_SKILL_DIR}/references/WORKFLOW.md — full step-by-step instructions
  3. Load ${CLAUDE_SKILL_DIR}/references/DETECTION-PATTERNS.md
  4. Load ${CLAUDE_SKILL_DIR}/references/INTERFACE-DESIGN.md
  5. Load ${CLAUDE_SKILL_DIR}/references/RFC-FILE-FORMAT.md
  6. Execute the seven steps in WORKFLOW.md

Workflows

StepWhat happensRequires user input
1. ExploreSpawn Explore sub-agent; navigate organically; record friction—
2. CandidatesSynthesise friction into clusters; present max 8 with full context—
3. PickUser selects a cluster and directs the anglewait
4. FrameProblem statement, dependency category, blast radius, test boundary today—
5. DesignSpawn 3–4 parallel sub-agents with competing interface designs—
6. ChooseUser picks interface or accepts recommendationwait
7. RFC fileWrite arch-rfcs-YYYY-MM-DD.md to project root—

Full prompt text, cluster format, and step detail: see WORKFLOW.md.

Behavioural rules

  • Explore agent friction observations are primary evidence — never override with static analysis
  • Never propose interface designs before Step 5
  • Never advance past Steps 3 or 6 without a user response
  • Every RFC must include exact file:line references and a before/after illustration
  • Name every dependency category explicitly — it determines the testing strategy
  • Rank clusters: testability impact first, then cognitive load, then interface stability

Advanced features

  • Full workflow detail and Explore agent prompt: ${CLAUDE_SKILL_DIR}/references/WORKFLOW.md
  • Friction vocabulary and dependency categories: ${CLAUDE_SKILL_DIR}/references/DETECTION-PATTERNS.md
  • Sub-agent brief template and design constraints: ${CLAUDE_SKILL_DIR}/references/INTERFACE-DESIGN.md
  • RFC action file format and complete example: ${CLAUDE_SKILL_DIR}/references/RFC-FILE-FORMAT.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.