
Architecture rescue
Finds shallow modules and missing seams in tangled code before any redesign
Architecture rescue is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 12
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Architecture rescue
Architecture rescue helps an agent diagnose a codebase that has become hard to change or test. It walks the source tree, reads the largest and most-imported modules, and looks for places where a thin module should be thicker, a seam should be drawn, or an abstraction is leaking. The result is a numbered list of candidates, each with file references, the problem, a plain-English fix, and notes on locality and leverage.
The skill applies two heuristics as it works. A deletion test asks whether removing a module would make complexity vanish, which marks a pass-through, or whether complexity would reappear across many callers, which marks a module that earns its place. A two-adapter rule treats a second implementation of the same behavior as evidence of a real seam that should become an explicit interface.
The skill is deliberately limited to diagnosis. It hands the candidate list to a grilling session and only proposes an interface afterwards, comparing two different designs. It can also call companion skills to walk the design tree and to record new domain terms in a project context file. It is written for Claude Code and uses read, search and write tools.
When your agent uses it
Find deepening opportunities in a codebase (shallow modules, missing seams, leaky abstractions) and present them as numbered candidates for a grilling session before any interface is proposed. Use when the code feels tangled or hard to test. Trigger on "improve architecture", "rescue this codebase", "find refactoring opportunities", "ball of mud", "shallow modules".
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Read, Grep, Glob, Write(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 3 files (13 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the skill-madness plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add ivy00johns/Skill-Madness
/plugin install skill-madness@skill-madnessOr copy only this skill to ~/.claude/skills/architecture-rescue:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/architecture-rescue &&
cp -R "$tmp/skills/workflows/architecture-rescue" ~/.claude/skills/architecture-rescue &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/architecture-rescue inside it instead.
Copy the skill folder to ~/.agents/skills/architecture-rescue to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/architecture-rescue &&
cp -R "$tmp/skills/workflows/architecture-rescue" ~/.agents/skills/architecture-rescue &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/architecture-rescue inside it instead.
Copy the skill folder to ~/.cursor/skills/architecture-rescue to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/architecture-rescue &&
cp -R "$tmp/skills/workflows/architecture-rescue" ~/.cursor/skills/architecture-rescue &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/architecture-rescue inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/ivy00johns/Skill-Madness.git --path skills/workflows/architecture-rescueOr copy the folder to ~/.gemini/skills/architecture-rescue yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/architecture-rescue:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/architecture-rescue &&
cp -R "$tmp/skills/workflows/architecture-rescue" ~/.copilot/skills/architecture-rescue &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/architecture-rescue inside it instead.
Get the folder:
git clone --depth 1 https://github.com/ivy00johns/Skill-Madness.gitThen copy Skill-Madness/skills/workflows/architecture-rescue into your agent's skills folder as architecture-rescue. Agents that support SKILL.md read one folder per skill.
What it does
- Deepening opportunity search
- Scans a codebase for shallow modules, missing seams and leaky abstractions.
- Deletion test
- Checks whether removing a module makes complexity vanish or reappear across callers.
- Two-adapter seam detection
- Spots duplicated implementations that suggest a hidden interface worth naming.
- Numbered candidate report
- Lists each candidate with file ranges, problem, locality and leverage notes.
- Staged design workflow
- Defers interface design until after a grilling session and compares two options.
Good for
- Find out why a legacy service is hard to unit test
- Identify shallow wrapper modules that add no value
- Locate places where a storage or API seam should be introduced
- Prepare a refactoring agenda for a messy codebase before changing code
Architecture rescue FAQ
When does the skill trigger?
It triggers on phrases such as improve architecture, rescue this codebase, find refactoring opportunities, ball of mud and shallow modules, and when the code feels tangled or hard to test.
Does Architecture rescue change my code?
Its described output is a numbered list of candidates. It does not propose interfaces until a grilling session has happened, and its allowed tools include Write.
Does Architecture rescue need scripts or extra tools?
It ships no scripts. It uses Read, Grep, Glob and Write, and it references companion skills named grill-me, maintain-context and diagnose-loop.
How do I install Architecture rescue in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/architecture-rescue to use it in all your projects, or to .claude/skills/architecture-rescue in one project. Or install the skill-madness plugin, which includes it: /plugin marketplace add ivy00johns/Skill-Madness, then /plugin install skill-madness@skill-madness.
Does Architecture rescue run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Architecture rescue?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Architecture rescue?
The closest alternatives to Architecture rescue are Improve arch, Improve codebase architecture, Deepening review, Architecture review and Improve architecture.
Where this comes from
- Description: from the skill's own SKILL.md.
More from ivy00johns/Skill-Madness

Finds merged and stale git branches, then deletes them only after your confirmation
- Open source
- 12 GitHub stars
- Developer tools

Finds and removes git worktrees whose changes are already merged into main
- Open source
- 12 GitHub stars
- Developer tools

Bulk-scans a skill ecosystem for consistency, quality gaps and ownership conflicts
- Open source
- 12 GitHub stars
- Developer tools

Runs a single-skill quality review covering structure, triggering and output checks
- Open source
- 12 GitHub stars
- Developer tools

Turns skill review or audit reports into a prioritized list of concrete SKILL.md fixes
- Open source
- 12 GitHub stars
- Developer tools

Applies planned edits to SKILL.md files, validates them, and offers to sync
- Open source
- 12 GitHub stars
- Developer tools




