mkimprove-codebase-architecture

Solid

Use when surfacing architectural friction and proposing deepening refactors (shallow modules → deep modules) for testability and AI-navigability. Triggers on "improve architecture", "find deepening opportunities", "where is this codebase shallow", "architecture review". Emits structured candidates + precise patches; delegates ALL rendering to mk:preview. NOT for diagram/HTML rendering (see mk:preview); NOT for trade-off deliberation (see mk:party); NOT for plan critique (see mk:plan-ceo-review).

AI & Automation 14 stars 2 forks Updated 1 months ago MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
39
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# mk:improve-codebase-architecture Surface architectural friction and propose **deepening opportunities** — refactors that turn shallow modules into deep ones. The aim is testability and AI-navigability. This skill owns three things only: **structural analysis**, **dependency mapping**, and **type-safe patch emission**. It owns no rendering. Every visual artifact (before/after diagrams, candidate report, HTML) is produced by `mk:preview`. The skill emits structured findings; `mk:preview` draws them. ## Architecture vocabulary (use exactly) Self-contained glossary — every suggestion uses these nouns/verbs and no synonyms. - **module** — a unit with an interface and an implementation. Never "component", "service", "unit", "layer", "wrapper". - **interface** — the surface a caller depends on. Never "API", "signature". - **depth** — implementation complexity hidden behind a small interface. **deep** = small interface, large implementation. **shallow** = interface nearly as wide as implementation. - **seam** — the line where two modules meet. Never "boundary". - **adapter** — a substitutable implementation behind a seam. Rule: *one adapter = hypothetical seam, two = real seam.* - **leverage** — one interface serving N call sites. - **locality** — related logic (and its bugs) concentrated in one module, not scattered. - **deletion test** — would deleting this module *concentrate* complexity (good — it was shallow) or merely *move* it (it was load-bearing)? "Concentrates" is th...

Details

Author
ngocsangyem
Repository
ngocsangyem/MeowKit
Created
5 months ago
Last Updated
1 months ago
Language
TypeScript
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

improve-codebase-architecture

Finds deepening opportunities in a codebase, 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.

15 Updated yesterday
domengabrovsek
AI & Automation Listed

improve-codebase-architecture

Side-route skill for architecture exploration and deepening opportunities. Use when the user wants to find structural improvements, shallow-module pain, or refactor opportunities that may flow into /request-refactor-plan or /execute. Not for already-scoped implementation tasks.

3 Updated today
chrislacey89
Code & Development Listed

architecture-review

Self-executed sweep of a codebase for module-deepening opportunities — shallow interfaces, scattered locality, untestable seams — presented as a visual report the user picks a candidate from, then explored interactively. Unlike `architect` (routed consultation) and `code-review` (diff review), this skill is run by the active primary on the whole codebase. Use when the user says "architecture review," "find deepening opportunities," "where is this codebase getting muddy," "improve the architecture," or "/agent-collab:architecture-review." Also offer this proactively when repeated friction in a working session traces to shallow modules — bouncing between many files to follow one concept, or tests that cannot reach behavior through the current interfaces.

0 Updated 2 days ago
sumitake