Skip to content
Back to skills

Architecture Health

ASecurity

Diagnoses project health, architecture risks, and technical debt. Use when starting a new session or analyzing the codebase structure.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
code-qualitypythongorefactoringperformance

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill architecture-health --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Architecture Health?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Architecture Health
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-architecture-health/badge)](https://www.skillsdirectory.com/skills/david-li0406-architecture-health)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: architecture-health
description: Diagnoses project health, architecture risks, and technical debt. Use when starting a new session or analyzing the codebase structure.
---

# Architecture Health Skill

Follow this process to generate a "Project Health Diagnostic Report":

## 1. Structural Analysis

- **File Sizes**: Identify "God Class" files (>400 lines or mixed responsibilities).
- **Directory Structure**: Check if files are grouped by domain (e.g., `loaders/`, `processors/`).
- **Naming**: Ensure file names are specific (e.g., `pnm_adjacency.py` instead of `adjacency.py`).

## 2. Code Pattern Analysis

- **Dependencies**: grep for `import` statements to find circular or cross-layer violations (e.g., `core` importing `gui`).
- **Safety**: grep for `except:` (bare except) or `pass` blocks in error handling.
- **Performance**: Look for critical loops in Python that aren't vectorized.

## 3. Report Generation

Generate a Markdown table sorted by urgency (P0, P1, P2):

| Priority | Issue Type | Location | Recommendation |
| :--- | :--- | :--- | :--- |
| **P0** | Critical Safety | `disk_cache.py` | Replace bare `except:` with `OSError`. |
| **P1** | Refactoring | `pnm.py` | Split into `adjacency` and `throat` modules. |
| **P2** | Maintenance | `utils.py` | Add type hints. |

## 4. Action Plan

- Propose specific refactoring steps (Extract Method, Split File, Rename).
- Verify changes with imports and tests.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…