Improve Codebase Architecture
ywwynm/EverythingDone
Find deepening opportunities in a codebase, informed by the domain language in CONTEXT.md and the decisions in docs/adr/.
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
$ npx skills add ayoubben18/ab-method --skill improve-codebase-architecture -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ayoubben18/ab-method improve-codebase-architecture --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ayoubben18/ab-method.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/improve-codebase-architecture .claude/skills/improve-codebase-architecture && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "improve-codebase-architecture" agent skill from https://github.com/ayoubben18/ab-method/tree/main/.agents/skills/improve-codebase-architecture into .claude/skills/improve-codebase-architecture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "improve-codebase-architecture", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ayoubben18/ab-method/tree/main/.agents/skills/improve-codebase-architectureType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ayoubben18/ab-method --skill improve-codebase-architecture -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ayoubben18/ab-method improve-codebase-architecture --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ayoubben18/ab-method.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/improve-codebase-architecture .agents/skills/improve-codebase-architecture && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "improve-codebase-architecture" agent skill from https://github.com/ayoubben18/ab-method/tree/main/.agents/skills/improve-codebase-architecture into .agents/skills/improve-codebase-architecture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "improve-codebase-architecture", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ayoubben18/ab-method --skill improve-codebase-architecture -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ayoubben18/ab-method improve-codebase-architecture --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ayoubben18/ab-method.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/improve-codebase-architecture .cursor/skills/improve-codebase-architecture && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "improve-codebase-architecture" agent skill from https://github.com/ayoubben18/ab-method/tree/main/.agents/skills/improve-codebase-architecture into .cursor/skills/improve-codebase-architecture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "improve-codebase-architecture", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ayoubben18/ab-method.git --path .agents/skills/improve-codebase-architecture--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ayoubben18/ab-method --skill improve-codebase-architecture -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ayoubben18/ab-method improve-codebase-architecture --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ayoubben18/ab-method.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/improve-codebase-architecture .gemini/skills/improve-codebase-architecture && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "improve-codebase-architecture" agent skill from https://github.com/ayoubben18/ab-method/tree/main/.agents/skills/improve-codebase-architecture into .gemini/skills/improve-codebase-architecture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "improve-codebase-architecture", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ayoubben18/ab-method improve-codebase-architectureInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ayoubben18/ab-method --skill improve-codebase-architecture -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ayoubben18/ab-method.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/improve-codebase-architecture .github/skills/improve-codebase-architecture && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "improve-codebase-architecture" agent skill from https://github.com/ayoubben18/ab-method/tree/main/.agents/skills/improve-codebase-architecture into .github/skills/improve-codebase-architecture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "improve-codebase-architecture", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ayoubben18/ab-method --skill improve-codebase-architecture -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ayoubben18/ab-method improve-codebase-architecture --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ayoubben18/ab-method.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/improve-codebase-architecture .opencode/skills/improve-codebase-architecture && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "improve-codebase-architecture" agent skill from https://github.com/ayoubben18/ab-method/tree/main/.agents/skills/improve-codebase-architecture into .opencode/skills/improve-codebase-architecture/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "improve-codebase-architecture", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
improve-codebase-architectureScan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
Improve Codebase Architecture is an agent skill from ayoubben18/ab-method. Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick. Informed by the domain language in CONTEXT.md and the decisions in docs/adr/. Use when the user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more testable and AI-navigable.
Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `HTML-REPORT.md`).
It sits in Development, covering Architecture decision records and Refactoring. The repository describes itself as: A workflow system for Claude Code and Codex. It grills a problem into a domain-grounded plan, then either drives it through test-driven missions you review one at a time, or… The licence is MIT.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 85946e3. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Improve Codebase Architecture loads about 1.9k tokens when it runs. Until then it costs about 101 tokens; SKILL.md has 1,024 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ayoubben18/ab-method at commit 85946e3, republished under its MIT licence (© ayoubben18). 1,024 words, ~1,914 tokens.
.claude/skills/improve-codebase-architecture/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Surface architectural friction and propose deepening opportunities — refactors that turn shallow modules into deep ones. The aim is testability and AI-navigability.
This skill is built on a shared design vocabulary and informed by the project's domain model:
codebase-design skill for the terms (module, interface, depth, seam, adapter, leverage, locality) and the principles (the deletion test, "the interface is the test surface", "one adapter = hypothetical seam, two = real"). Use those terms exactly in every suggestion — don't drift into "component," "service," "API," or "boundary." It is the single source; this skill doesn't restate it.CONTEXT.md gives names to good seams; ADRs in docs/adr/ record decisions this skill should not re-litigate. See CONTEXT-FORMAT.md and ADR-FORMAT.md.Scope before you scan — YAGNI. Deepening a module pays off by making future changes to it easier, so weight the parts of the codebase that keep changing. Decide where to look before looking:
git log --oneline) to find the hot spots — the files and areas that keep coming up — and let those paths pull your attention first. If the changes are scattered with no clear hot spot, widen the net.docs/tasks/*/change-map.md records the modules that task planned to touch and the ones it actually touched. A module that shows up as unplanned across several tasks is a sharper hot-spot signal than raw commit frequency: it isn't just where changes land, it's where changes land that nobody expected them to. That is a locality problem by definition, and it's the highest-value place to start. (change-map only reports it — acting on it is this skill's job.)Read the existing documentation first:
CONTEXT.md (or CONTEXT-MAP.md + each CONTEXT.md in a multi-context repo)docs/adr/ (and any context-scoped docs/adr/ directories)If any of these files don't exist, proceed silently — don't flag their absence or suggest creating them upfront.
Then use the Agent tool with subagent_type=Explore to walk the codebase. Don't follow rigid heuristics — explore organically and note where you experience friction:
Apply the deletion test to anything you suspect is shallow: would deleting it concentrate complexity, or just move it? A "yes, concentrates" is the signal you want.
Write a self-contained HTML file to the OS temp directory so nothing lands in the repo. Resolve the temp dir from $TMPDIR, falling back to /tmp (or %TEMP% on Windows), and write to <tmpdir>/architecture-review-<timestamp>.html so each run gets a fresh file. Open it — open on macOS, xdg-open on Linux, start on Windows — and tell the user the absolute path.
The report uses Tailwind via CDN for layout and Mermaid via CDN for graph-shaped diagrams. Each candidate gets a before/after visualisation. Be visual — the diagrams carry the weight, the prose is sparse.
For each candidate, render a card with:
Strong, Worth exploring, or Speculative, rendered as a badgeEnd with a Top recommendation section: which candidate you'd tackle first, and why.
See HTML-REPORT.md for the scaffold, diagram patterns, and styling guidance.
No network? Fall back to markdown. The Tailwind and Mermaid CDNs are the only external dependency; if the environment is offline or the user asks for it, present the same candidate cards as a numbered markdown list in the conversation — same fields, same badges, same Top recommendation. The report format is a presentation choice, not the substance.
Use CONTEXT.md vocabulary for the domain and codebase-design vocabulary for the architecture. If CONTEXT.md defines "Order," talk about "the Order intake module" — not "the FooBarHandler," and not "the Order service."
ADR conflicts: if a candidate contradicts an existing ADR, only surface it when the friction is real enough to warrant revisiting the ADR. Mark it clearly in the card (e.g. an amber callout: "contradicts ADR-0007 — but worth reopening because…"). Don't list every theoretical refactor an ADR forbids.
Do NOT propose interfaces yet. After the file is written, ask: "Which of these would you like to explore?"
Once the user picks a candidate, invoke the grill-with-docs skill to walk the decision tree with them — constraints, dependencies, the shape of the deepened module, what sits behind the seam, what tests survive.
Side effects happen inline as decisions crystallize — the grill maintains the domain model as it goes:
CONTEXT.md? Add the term to CONTEXT.md — same discipline as /domain-model (see CONTEXT-FORMAT.md). Create the file lazily if it doesn't exist.CONTEXT.md right there.codebase-design skill and use its DESIGN-IT-TWICE.md parallel sub-agent pattern.This skill proposes and designs; it does not implement. Once the shape is agreed, the work becomes a task — /create-task grills it into missions and tdd builds it. Don't start editing source here.
© ayoubben18, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in .agents/skills/improve-codebase-architecture of ayoubben18/ab-method.
Open the folder on GitHubat commit 85946e3
Improve Codebase Architecture next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Improve Codebase Architecture this skillayoubben18/ab-method | 192 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Improve Codebase Architectureywwynm/EverythingDone | 144 | 15 repos | ~1.3k | Automated safety check: Pass | GPL-3.0 | |
| Learning OpportunitiesDrCatHicks/learning-opportunities | 2.5k | — | ~2.5k | Automated safety check: Pass | CC-BY-4.0 | |
| Task Workflowikarenkov/Modo | 343 | — | ~2.4k | Automated safety check: Pass | None | |
| Ad Deepenalexandremendoncaalvaro/CorridorKey-Runtime | 755 | 1 repos | ~2k | Automated safety check: Pass | Custom licence | |
| Vibe CodingOfficeDev/microsoft-365-agents-toolkit | 781 | — | ~5.5k | Automated safety check: Pass | Custom licence |
ywwynm/EverythingDone
Find deepening opportunities in a codebase, informed by the domain language in CONTEXT.md and the decisions in docs/adr/.
DrCatHicks/learning-opportunities
Facilitates deliberate skill development during AI-assisted coding.
ikarenkov/Modo
Spec-driven workflow for non-trivial work. An agent skill from ikarenkov/Modo.
alexandremendoncaalvaro/CorridorKey-Runtime
Surface deepening opportunities in the codebase using the Ousterhout/Feathers vocabulary from WORKFLOW §8 (Module / Interface / Depth / Seam / Adapter / Leverage / Locality).
OfficeDev/microsoft-365-agents-toolkit
End-to-end workflow for agent-driven changes that add or modify behavior in the toolkit packages.
iusztinpaul/squid
Periodic architectural sweep — reads existing ADRs, maps modules/dependencies/layering, and reports up to 10 prioritised findings shaped as refactor proposals /squid-refactor can consume directly.
ayoubben18/ab-method
Shared vocabulary and principles for designing deep modules — small interfaces, clean seams, testable through the interface.
ayoubben18/ab-method
Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise.
ayoubben18/ab-method
Draw a task's blast radius twice. An agent skill from ayoubben18/ab-method.
ayoubben18/ab-method
Compact the current conversation (or a side-topic that surfaced mid-grill) into a handoff document another agent can pick up.
ayoubben18/ab-method
Cross-plan coherence critic for a whole roadmap. An agent skill from ayoubben18/ab-method.
ayoubben18/ab-method
Post-implementation review. An agent skill from ayoubben18/ab-method.
Categories
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick. Improve Codebase Architecture is an agent skill from ayoubben18/ab-method. Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
Improve Codebase Architecture fits situations like: the user wants to improve architecture; find refactoring opportunities; consolidate tightly-coupled modules; make a codebase more testable and AI-navigable.
Run `npx skills add ayoubben18/ab-method --skill improve-codebase-architecture -a claude-code`. Or copy the skill folder (.agents/skills/improve-codebase-architecture in ayoubben18/ab-method) into .claude/skills/improve-codebase-architecture in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ayoubben18/ab-method --skill improve-codebase-architecture -a codex`. Or copy the skill folder (.agents/skills/improve-codebase-architecture in ayoubben18/ab-method) into .agents/skills/improve-codebase-architecture in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ayoubben18/ab-method --skill improve-codebase-architecture -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/improve-codebase-architecture, .gemini/skills/improve-codebase-architecture, .github/skills/improve-codebase-architecture and .opencode/skills/improve-codebase-architecture in your project.
Going by SKILL.md and its folder, Improve Codebase Architecture needs the command-line tools its instructions call (git).
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Improve Codebase Architecture is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Improve Codebase Architecture: Improve Codebase Architecture (ywwynm/EverythingDone, 144 stars), Learning Opportunities (DrCatHicks/learning-opportunities, 2.5k stars), Task Workflow (ikarenkov/Modo, 343 stars) and Ad Deepen (alexandremendoncaalvaro/CorridorKey-Runtime, 755 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ayoubben18 (a GitHub user) maintains it in ayoubben18/ab-method, which has 192 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on October 1, 2026.
Source: ayoubben18/ab-method on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.