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
- Island-Dev-Crew/uncle-bob-skillstheir own version, first seen Aug 26, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- Island-Dev-Crew/uncle-bob-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- conventionsSkill
- releaseSkill
- startSkill
- agentic-skeleton-dir-structureSkill
- agent-os-profile-critiqueSkill
- create-a-skillSkill
- design-critiqueSkill
- export-vault-noteSkill
- git-commit-pr-messageSkill
- handoffSkill
- readme-writerSkill
- review-api-designSkill
- vault-scribeSkill
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
- Distinctive: line 31
If a path argument is given, scope to that directory.
- Distinctive: line 55
Never propose interface designs before Step 5
- Distinctive: line 56
Never advance past Steps 3 or 6 without a user response
- Very specific: line 57
Every RFC must include exact file:line references and a before/after illustration
≈ “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.
Files
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
- If a path argument is given, scope to that directory; otherwise whole repo
- Load
${CLAUDE_SKILL_DIR}/references/WORKFLOW.md— full step-by-step instructions - Load
${CLAUDE_SKILL_DIR}/references/DETECTION-PATTERNS.md - Load
${CLAUDE_SKILL_DIR}/references/INTERFACE-DESIGN.md - Load
${CLAUDE_SKILL_DIR}/references/RFC-FILE-FORMAT.md - Execute the seven steps in WORKFLOW.md
Workflows
| Step | What happens | Requires user input |
| 1. Explore | Spawn Explore sub-agent; navigate organically; record friction | — |
| 2. Candidates | Synthesise friction into clusters; present max 8 with full context | — |
| 3. Pick | User selects a cluster and directs the angle | wait |
| 4. Frame | Problem statement, dependency category, blast radius, test boundary today | — |
| 5. Design | Spawn 3–4 parallel sub-agents with competing interface designs | — |
| 6. Choose | User picks interface or accepts recommendation | wait |
| 7. RFC file | Write 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:linereferences 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
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
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.

