architecture-review
Map current module boundaries, dependency direction, public seams, cycles, and layer violations using repository evidence. Use during read-only debt assessment; do not use to invent a replacement architecture or rewrite a subsystem.
- License 许可
- MPL-2.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- architecture-review
- updated
- 1785024000000
- metadata
- { "version": "1.0.0", "akm-type": "skill", "akm-updated": "2026-07-26" }
- description
- Map current module boundaries, dependency direction, public seams, cycles, and layer violations using repository evidence. Use during read-only debt assessment; do not use to invent a replacement architecture or rewrite a subsystem.
- compatibility
- Works with source repositories and their existing dependency or static-analysis tools.
02 资源文件 1
- 资产文件assets/architecture-map-template.md618 B
03 SKILL.md 正文
Architecture Review
When To Use It
Use when boundaries, dependency direction, ownership, or coupling affect the safety and priority of a proposed refactor.
When Not To Use It
Do not use for greenfield architecture, aesthetic reorganizations, or broad redesign without evidence that current structure causes a concrete problem.
Required Inputs
- Repository assessment and scope
- Source layout, manifests, and architecture documentation
- Existing import, dependency, or cycle-analysis commands
- Known public and runtime entry points
Procedure
- Identify runtime, domain, data, interface, infrastructure, and test areas from code and build configuration rather than directory names alone.
- Trace representative entry points to side effects and external boundaries.
- Record allowed and observed dependency directions.
- Use existing tools plus targeted searches to find cycles, reverse-layer imports, hidden service location, shared mutable state, and unclear owners.
- Confirm each candidate with concrete importer and imported symbols.
- Distinguish an actual violation from an intentional public seam.
- Populate
skills/coding/architecture-review/assets/architecture-map-template.md.
Constraints
- Remain read-only.
- Do not infer a rule solely from folder names or recommend moving files solely for symmetry.
- Do not propose an abstraction until occurrence counts and type compatibility prove the premise.
- Treat framework registration, plugins, reflection, generated imports, and external consumers as possible edges.
Expected Output
An evidence-backed boundary map with components, responsibilities, dependency rules, public seams, confirmed violations, cycles, uncertainty, and candidate bounded actions.
Verification
For every reported edge, cite both endpoints and the import, call, registration, or configuration evidence. Re-run the repository's dependency validator when available and record unsupported portions as unverified.
Stop Or Escalation Conditions
Stop recommending structural movement when ownership or runtime wiring is ambiguous, generated edges cannot be reconstructed, or a fix would cross public contracts, persistence, deployment, or multiple team boundaries. Request a domain owner decision before planning that change.
04 同仓库更多 Skills
tax-filing-checklist
Walk through the steps and documents needed to file an individual federal income tax return
patient-vitals-charting
Record patient vital signs consistently and flag values outside the normal reference range
pasta-from-scratch
Make fresh egg pasta dough from scratch, roll it, and cut it into shapes
knife-sharpening
Sharpen and hone kitchen knives to keep an edge safe and effective
first-aid-response
Respond to a first aid emergency using a scene-safety-first, ABC-based (airway, breathing, circulation) approach
contract-review-basics
Review a contract draft for missing terms, ambiguous language, and risky clauses before signing