mcpField
A
architectural-analysis

architectural-analysis

github.com/marcioaltoeTesting & quality083 installsUpdated today
Repository

About architectural-analysis

architectural-analysis is a skill for auditing code structure and reporting concrete design problems, suited to evidence-based reviews of a defined scope. It traces usage, verifies findings in source, and tailors the report and proposed changes to the request.

Key features

  1. 01Define audit scope and map dependencies
  2. 02Check dead code, duplicated responsibilities, and cycles
  3. 03Trace dynamic loading and public API usage
  4. 04Verify source evidence and state uncertainty
  5. 05Tailor reports to the audit scope

Use cases

  1. 01Review module boundaries and dependencies
  2. 02Assess design issues' maintenance costs
  3. 03Check whether exports are truly unused
  4. 04Prepare evidence and recommendations for an architecture audit

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/marcioaltoe/skills --skill architectural-analysis

After installing, type/architectural-analysisin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

assets/
report-template.md
summary-template.md
references/
detection-catalog.md

Details

From the project README

Architectural Analysis

Audit the requested scope and report concrete design problems. An audit alone is read-only; existing explicit authorization to apply findings can include remediation. Use the project's boundaries and public compatibility policy when judging a design.

  1. Resolve scope from the request/context. Map entry points and relevant dependencies with rg --files, scoped rg searches, and available static-analysis output. Do not create one todo per source file or assume a TypeScript stack.
  2. Prioritize signals: dead exports, duplicated responsibilities, cycles, confused ownership/types, and expensive change patterns. Read the matching section of references/detection-catalog.md when classifying a candidate; thresholds are clues, not automatic defects.
  3. Trace usage before declaring code dead, including dynamic loading, reflection, framework hooks, tests, and published APIs. An unreferenced public export is not safe to delete solely because this checkout has no consumer.
  4. Confirm each material finding in source. Explain the behavior or maintenance cost, cite paths/lines, state uncertainty, and propose the smallest useful change. Avoid a separate generic smell sweep when it adds no evidence.
  5. Match report size to the request. For a broad audit, use assets/report-template.md as an adaptable outline and save .audits/architectural-analysis-<timestamp>.md; distinguish inspected and uninspected areas. For a narrow answer, a concise finding list is enough. Missing coverage must never be reported as None found.
  6. Summarize the important findings and evidence. Existing source and summary templates are optional presentation aids, not two required reports.

Comments

Markdown supported