/claudops:improve-codebase-architecturefrom Claudops
Explores a codebase for architectural deepening opportunities: refactors that turn shallow modules into deeper ones with better testability and locality. Read-only analysis for architecture improvement or coupled-module analysis.
Ships in Claudops. 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.
Read when SKILL.md points to them.
If
.claude/skills/improve-codebase-architecture/SKILL.md.disabledexists, stop before reading a fallback. Project configuration: If the current project contains.claude/skills/improve-codebase-architecture/SKILL.md, read and apply it instead of this bundled default. The project copy is the capability source of truth. Repository context: Read../setup/references/task-context.mdwhen resolving a task, project commands, named agent roles, or legacy.claude/resource paths. Use repository evidence and applicable project instructions; a missing local workflow copy does not require setup. Resolve bundled resources from the installed skill, never from the target cwd.
Upstream: Adapted from mattpocock/skills/improve-codebase-architecture. Vocabulary and principles draw on Ousterhout (A Philosophy of Software Design) and Feathers (Working Effectively with Legacy Code). Adapted to use this repo's
tasks/andproduct-docs/conventions instead of upstream'sCONTEXT.md+docs/adr/.
Surface architectural friction and propose deepening opportunities — refactors that turn shallow modules into deep ones. The aim is testability and AI-navigability.
For a task-linked review, resolve the repository and active task with
../setup/references/task-context.md, then read only the
linked product/plan context relevant to the target area. This remains read-only; an accepted
candidate is handed to /ct rather than mutating the task implicitly.
This skill uses the canonical architecture vocabulary in .claude/skills/architecture-language/LANGUAGE.md. Load it before suggesting candidates. Use module, interface, seam, adapter, depth, leverage, and locality for architectural claims, while retaining established project terms such as service or API when they carry specific meaning; state the mapping when needed.
Key principles (full list in architecture-language/LANGUAGE.md):
Read only the context relevant to the target area:
product-docs/UBIQUITOUS_LANGUAGE.md exists, use it for candidate names.CLAUDE.md, AGENTS.md, or a project-structure document only when discovered and
relevant to the architecture under review.If any of these are missing, proceed silently — don't flag absence or suggest creating them upfront.
Then use the Explore agent (subagent_type=Explore) to walk the codebase. Note where you
experience friction rather than scanning unrelated areas:
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.
Present a numbered list of deepening opportunities. For each candidate:
Use UBIQUITOUS_LANGUAGE.md vocabulary for the domain, and architecture-language/LANGUAGE.md for the architecture. If UBIQUITOUS_LANGUAGE.md defines "Order", talk about "the Order intake module" — not "the FooBarHandler", and not "the Order service".
Do NOT propose interfaces yet. Ask the user: "Which of these would you like to explore?"
Once the user picks a candidate, drop into a grilling conversation (invoke /grill-me). Walk the design 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:
UBIQUITOUS_LANGUAGE.md? If the
caller authorized glossary updates, add the term via /ubiquitous-language; otherwise
report the proposed term for a separately authorized update.tasks/ doc or product-docs/ so
future architecture passes don't re-suggest it; otherwise report the reason for a
separately authorized update. Skip ephemeral reasons ("not worth it right now") and
self-evident ones.This skill READS and REPORTS — it does not write code or commit changes. The output is:
If the user wants to act on a candidate:
/quick/ct to produce a tech-decompositionproduct-docs/ or active tasks/ docsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
architecture, refactoring, module-depth, testability, codebase-analysis
npx claudepluginhub alexandrbasis/claudops --plugin claudops40 skills in this plugin
/analyzeCompare a task's discovery or product requirements with its tech decomposition and report traceability gaps. Use when asked to 'analyze consistency', 'check alignment', 'verify spec matches plan', 'traceability check', 'spec drift', 'are my docs aligned', or after /ct completes to verify the plan covers the requirements. `/ct` may invoke this check when traceability is material; otherwise it remains an explicit read-only command. NOT for code review (use /sr), NOT for code analysis (use /code-analysis), NOT for debugging (use /dbg)./antigravity-cliRun Google Antigravity CLI (agy) for web-grounded research, cross-AI review, or validation when those capabilities are explicitly needed or another skill delegates to agy. One-shot only; do not select it for an ordinary review without an explicit provider choice./architecture-languageCanonical architectural vocabulary — module, interface, seam, adapter, depth, leverage, locality. Use when reviewing architecture, deepening shallow modules, designing interfaces, or evaluating refactor candidates. NOT a domain glossary (use /ubiquitous-language for that)./blueprintTurn a one-line objective into a bounded staged implementation plan with cold-start briefs. Use when asked to 'blueprint', 'multi-session plan', 'long-term plan', 'construction plan', 'break into sessions', 'plan across sessions', 'multi-step project plan', 'session plan', or when work needs staged handoffs. Produces a plan where each step can be resumed independently by a fresh agent with no prior context./brainstormCompare options and clarify a decision through a collaborative brainstorming session. Use when asked to 'brainstorm', 'let's brainstorm', 'explore ideas', 'think through', 'brainstorm about [topic]', 'what are our options for', 'let's think about', 'pros and cons of', 'help me decide', or 'weigh the options'. NOT for feature discovery (use /nf), NOT for PRD/JTBD docs (use /product), NOT for deep research (use /deep-research), NOT for pre-implementation design (auto-triggered by design-exploration skill)./cc-linearExecute Linear operations via direct GraphQL API — create issues, update status/priority/title, add comments, search tasks, manage labels, assign work, and link PRs. Use this skill when the user mentions Linear explicitly, or references a Linear-style identifier (uppercase team prefix + dash + number, e.g. ENG-123, OPS-7; the project's team key is in $LINEAR_TEAM_KEY). Trigger on phrases like "create a Linear ticket/issue", "move TEAM-X to done/in progress/review", "update the Linear task status", "close the Linear issue", "what's in our Linear backlog", "assign this Linear issue to", "my Linear issues", or any project management operation targeting Linear. Also trigger when other skills (ct, si, sr) need to sync state with Linear. Do not trigger on ambiguous "create an issue" when the user clearly means a GitHub Issue (repo context, `gh issue` commands, issues.md), unless they also reference Linear.
Other plugins' skills for the same job