Agent skill

Improve Codebase Architecture

by ordewell in ordewell/ordewell

Scan the codebase for deepening opportunities, prioritize them, then turn as many as the user wants into ordered plan tasks.

Apache-2.0Auto-check passedAgent Workflows

Install Improve Codebase Architecture

skills CLI
$ npx skills add ordewell/ordewell --skill improve-codebase-architecture -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ordewell/ordewell improve-codebase-architecture --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ordewell/ordewell.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/core/skills/improve-codebase-architecture .claude/skills/improve-codebase-architecture && rm -rf skills-src

Use ~/.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/

Facts

Skill name
improve-codebase-architecture
GitHub stars
193
Token cost
~1.4k tokens
SKILL.md length
854 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

Scan the codebase for deepening opportunities, prioritize them, then turn as many as the user wants into ordered plan tasks.

  • Works in 4 steps: Explore → Present candidates, prioritized → Resolve open questions per selected… → …
  • Agent Workflows work in your project
  • SKILL.md covers Vocabulary and Process
  • Calls git

What it does

Improve Codebase Architecture is an agent skill from ordewell/ordewell. Scan the codebase for deepening opportunities, prioritize them, then turn as many as the user wants into ordered plan tasks.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Agent Workflows. The repository describes itself as: Multi-agent task orchestration for coding agents. Turn one goal into an ordered plan of tasks (each with its own runner, model and mode), then execute and verify the results. The licence is Apache-2.0.

When your agent uses it

  • Agent Workflows work in your project

Example prompts

  • “/improve-codebase-architecture”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Explore
  2. Present candidates, prioritized
  3. Resolve open questions per selected candidate
  4. Convert to tasks

What it can do on your machine

Read from SKILL.md and the folder at commit 5fe17f2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    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.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Improve Codebase Architecture loads about 1.4k tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 854 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~39
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from ordewell/ordewell at commit 5fe17f2, republished under its Apache-2.0 licence (© ordewell). 854 words, ~1,429 tokens.

Download SKILL.mdSave it as .claude/skills/improve-codebase-architecture/SKILL.md (or your agent's skills folder).
name
improve-codebase-architecture
description
Scan the codebase for deepening opportunities, prioritize them, then turn as many as the user wants into ordered plan tasks.
disable-model-invocation
true

Surface architectural friction and propose deepening opportunities: refactors that turn shallow modules into deep ones, aimed at testability and AI-navigability. This skill never edits code itself — it never could, the planner is read-only — so the outcome is plan tasks, not a live refactor. Each candidate the user picks becomes one task for a runner to execute later, out of this conversation's sight.

Vocabulary

  • Module / interface / depth — a module is deep when its interface is much simpler than what it hides; shallow when the interface is nearly as complex as the implementation.
  • Seam — a boundary a test double or adapter swap crosses. Locality — how close the code that causes a bug sits to the code that shows it; extracting a pure function for testability without moving where the real logic runs loses locality.
  • Leverage — how much simpler calling code gets once a module is deepened.
  • Deletion test — would deleting this module concentrate complexity elsewhere (worth deepening), or just move it (not worth it)?

If the project keeps its own domain glossary (a CONTEXT.md or similar) or an ADR log (docs/adr/ or similar), use its terms in place of these where they overlap, and read the ADRs that touch the area you're exploring before proposing anything that contradicts one.

Process

1. Explore

Scope before you scan — put weight on what changes often, not everywhere:

  • User named a direction (a module, a subsystem, a pain point)? Take it, skip the inference below.
  • Otherwise walk git log --oneline for hot spots and let those pull your attention first. Scattered history with no clear hot spot → widen the net.

Explore read-only, delegating to a research subagent where one is available to you instead of reading everything inline. Don't follow rigid heuristics; explore organically and note where you experience friction — where understanding one concept means bouncing between many small modules, where an interface is nearly as complex as its implementation, where a pure function was extracted for testability but the real bug lives in how it's called, where modules leak across their seam, what's untested or hard to test through its current interface. Apply the deletion test to anything you suspect is shallow.

2. Present candidates, prioritized

List every candidate directly in the conversation — no report file; nothing in this step touches disk. For each:

  • Title — names the deepening (e.g. "Collapse the Order intake pipeline")
  • Files
  • Problem / Solution — one sentence each, in the project's own vocabulary where it has one
  • Benefits — explained in terms of locality and leverage, and how tests would improve; this is what the recommendation strength below has to be earned by, not asserted
  • Recommendation: Strong, Worth exploring, or Speculative
  • Overlaps — which other candidates touch the same files; this drives task ordering in step 4
  • If it contradicts an existing ADR, a one-line callout naming it (e.g. "contradicts ADR-0007, but worth reopening because…") — only when the friction is real enough to warrant reopening the decision, not for every refactor an ADR happens to forbid

Order the list Strong → Worth exploring → Speculative, and close with which one you'd tackle first and why. Do not propose interfaces yet.

Ask: how many of these should become tasks? Default, unless told otherwise: every Strong candidate, none of the rest. The user may instead name specific candidates, a count ("top 3"), or "all" — whatever they say overrides the default.

Show full SKILL.md (303 more words)Show less
3. Resolve open questions per selected candidate

For each candidate going into the plan, settle whatever a runner would otherwise have to guess: the target seam, what sits behind it, what's explicitly out of scope, which tests survive. Interview only where the answer is genuinely unclear for that candidate — ask one question at a time, give your recommended answer, wait for the user before the next question. Don't grill a candidate that's already unambiguous.

If the user rejects a candidate with a load-bearing reason ("not now, that would break the plugin API"), offer: "Want a one-line ADR task recording this, so a future run of this skill doesn't re-suggest it?" Only offer when the reason would actually be needed by a future run to avoid re-suggesting the same thing; skip ephemeral reasons ("not worth it right now") and self-evident ones.

4. Convert to tasks

One task per selected candidate, unless a candidate is large enough that a runner would reasonably split it into a short dependent sequence itself — say so rather than forcing it into one prompt.

Write each task's prompt as self-contained: the runner executing it won't see this conversation. Include the problem, the solution, the files/seam involved, what "done" looks like, and — if the project keeps a glossary or ADR log — an instruction to update it when the task introduces or sharpens a term.

Order tasks Strong → Worth exploring → Speculative. Two selected candidates that touch overlapping files must not run concurrently: make the later one depend on the earlier one even when nothing else connects them, since two runners editing the same file in parallel is a conflict, not a coincidence.

Propose the task outline in prose and get the user's confirmation — the same convergence point any planning conversation reaches. Do not emit the task plan JSON until they've confirmed it.

© ordewell, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in packages/core/skills/improve-codebase-architecture of ordewell/ordewell.

Open the folder on GitHubat commit 5fe17f2

Compare with similar skills

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.

Improve Codebase Architecture compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Improve Codebase Architecture this skillordewell/ordewell193—~1.4kAutomated safety check: PassApache-2.0
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official38k10 repos~4.1kAutomated safety check: NotesApache-2.0
Using Superpowersfarm-fe/farm5.6k35 repos~1.4kAutomated safety check: PassMIT
Executing Plans Inlineobra/superpowers297k2 repos~5.1kAutomated safety check: PassMIT
Skill CreatorAzure/azqr79689 repos~8.2kAutomated safety check: PassApache-2.0

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    38k GitHub starsUsed in 10 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Using Superpowers

    farm-fe/farm

    A skill your agent uses when starting any conversation - establishes how to find and use skills, requiring Skill tool invocation before ANY response including clarifying questions

    5.6k GitHub starsUsed in 35 repos~1.4k tokens
    Agent WorkflowsAuto-check passed
  • Executing Plans Inline

    obra/superpowers

    Has the agent carry out an implementation plan itself, task by task in the current session, keeping a ledger, proving each step with a test and ending with one whole-branch review.

    297k GitHub starsUsed in 2 repos~5.1k tokens
    Agent WorkflowsAuto-check passed
  • Skill Creator

    Azure/azqr

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    796 GitHub starsUsed in 89 repos~8.2k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Agent Development

    anthropics/claude-plugins-official

    Official

    Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.

    38k GitHub starsUsed in 7 repos~2.8k tokens
    Agent WorkflowsAuto-check passed

More from ordewell/ordewell

  • To Spec

    ordewell/ordewell

    Turn the current conversation into a product spec and save it to the project.

    193 GitHub stars~539 tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Improve Codebase Architecture

What does Improve Codebase Architecture do?

Scan the codebase for deepening opportunities, prioritize them, then turn as many as the user wants into ordered plan tasks. Improve Codebase Architecture is an agent skill from ordewell/ordewell. Scan the codebase for deepening opportunities, prioritize them, then turn as many as the user wants into ordered plan tasks.

When should I use Improve Codebase Architecture?

Improve Codebase Architecture fits situations like: agent Workflows work in your project.

How do I install Improve Codebase Architecture in Claude Code?

Run `npx skills add ordewell/ordewell --skill improve-codebase-architecture -a claude-code`. Or copy the skill folder (packages/core/skills/improve-codebase-architecture in ordewell/ordewell) into .claude/skills/improve-codebase-architecture in your project. Claude Code loads it when a task matches its description.

How do I install Improve Codebase Architecture in Codex?

Run `npx skills add ordewell/ordewell --skill improve-codebase-architecture -a codex`. Or copy the skill folder (packages/core/skills/improve-codebase-architecture in ordewell/ordewell) into .agents/skills/improve-codebase-architecture in your project. Codex loads it when a task matches its description.

Can I use Improve Codebase Architecture in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ordewell/ordewell --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.

What does Improve Codebase Architecture need to run?

Going by SKILL.md and its folder, Improve Codebase Architecture needs the command-line tools its instructions call (git).

Does Improve Codebase Architecture access the network?

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.

Is Improve Codebase Architecture safe to install?

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.

What licence does Improve Codebase Architecture use?

Improve Codebase Architecture is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Improve Codebase Architecture use?

About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Improve Codebase Architecture?

Skills that share tags, products or a category with Improve Codebase Architecture: MCP Server Builder (anthropics/skills, 180k stars), Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars), Using Superpowers (farm-fe/farm, 5.6k stars) and Executing Plans Inline (obra/superpowers, 297k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Improve Codebase Architecture?

ordewell (a GitHub organization) maintains it in ordewell/ordewell, which has 193 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 9, 2026.

Source: ordewell/ordewell on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.