/everything-copilot-cli:improve-codebase-architecturefrom everything-copilot-cli
Analyzes codebase architecture to identify friction points like shallow modules, leaky seams, and hard-to-test designs. Guides from surface-level issues to concrete refactoring candidates.
Ships in everything-copilot-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when local cleanup is not enough and the problem is architectural shape: too many shallow modules, leaky seams, or a design that is hard to test through the public interface.
| Instead of improve-codebase-architecture | Use |
|---|---|
| You only need a bigger-picture map of one area | zoom-out |
| The architecture is fine and you just need safe cleanup | refactor-clean |
| You are defining a new feature before coding | spec-driven-development |
Use these terms consistently while reviewing the design:
| Term | Meaning |
|---|---|
| Module | Any unit with an interface and implementation: function, class, package, or slice |
| Interface | Everything a caller must know: types, invariants, ordering, config, and error modes |
| Depth | How much behavior a module hides behind a small interface |
| Seam | The place where behavior can change without editing every caller |
Read the domain vocabulary and architecture decisions before suggesting anything. Prefer the project's own names for subsystems and workflows instead of inventing new terminology.
If the user already named a subsystem, workflow, or module, keep the review there. If they did not, use recent commit, PR, or change history to identify which areas are actively changing and scope the architectural review to those active areas first rather than surveying the whole repository. Deepening architecture pays off most where future changes are likely to land; stable untouched areas are a lower priority.
Look for places where:
Apply a quick deletion test: if deleting the module would only move the same complexity to every caller, it is earning its keep; if complexity largely disappears, the module is probably shallow.
Return a short numbered list of candidates before proposing exact interfaces. Use this shape:
1. **Candidate:** Order intake module
- **Files:** `src/...`
- **Problem:** Callers know too much about validation and retries
- **Suggested seam:** Consolidate workflow behind one module
- **Why it helps:** Better locality, simpler tests, fewer cross-file edits
Once the user picks a candidate, walk the design tree with them:
Do not rewrite half the codebase in one jump. The goal is one clear architectural move.
When the direction is clear, record it in the right durable place:
If three controllers each validate, transform, and retry the same workflow with slightly different glue code, propose a deeper module that owns the workflow and leaves controllers with parameter collection plus response mapping.
If a feature only seems testable through large integration tests because the important logic is spread across helpers and callers, propose a seam that centralizes decisions and makes public behavior testable in one place.
| Rationalization | Reality |
|---|---|
| "We should just rewrite the whole area" | Rewrites hide the real design problem. Find one load-bearing seam first. |
| "Small files mean good architecture" | Splitting code is not the same as creating depth. Shallow modules still leak complexity. |
| "We can decide the interface later" | The interface is the real design work; skipping it postpones the hard part. |
grill-with-docs
when design language and existing decisions must stay alignedWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub drvoss/everything-copilot-cli --plugin everything-copilot-cli115 skills in this plugin
/actions-debuggingUse when a GitHub Actions workflow fails — diagnose the run log, identify the root cause, and apply a targeted fix/add-to-changelogUse when you've shipped a feature, fix, or breaking change and need to update CHANGELOG.md — follows Keep a Changelog format and syncs version numbers across package manifests./agent-governanceUse when designing or reviewing an AI agent system that needs policy-based access controls, intent classification, tool-level rate limiting, trust scoring for multi-agent workflows, or append-only audit trails.
Other plugins' skills for the same job