Offline codebase health scanner (6 mechanical + 20 subjective dimensions, including doc/manifest/dependency link drift), prioritized triage queue, safe autofix/move refactoring, and treemap visualizer (`plexer health`). Activate on /plexer-health or requests to scan repo health, audit dead code, duplicates, coupling, doc/config drift, or slop, triage tech debt, or open health treemaps. Do not activate for HTTP `/health` endpoint bugs, generic `git diff` checks, or daily edits.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Plexer Health?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/infinit-works-plexer-health)
---
name: plexer-health
description: >-
Offline codebase health scanner (6 mechanical + 20 subjective dimensions,
including doc/manifest/dependency link drift), prioritized triage queue, safe
autofix/move refactoring, and treemap visualizer (`plexer health`). Activate on
/plexer-health or requests to scan repo health, audit dead code, duplicates,
coupling, doc/config drift, or slop, triage tech debt, or open health treemaps.
Do not activate for HTTP `/health` endpoint bugs, generic `git diff` checks, or
daily edits.
---
# Plexer Health & Triage (`/plexer-health`)
Run deterministic codebase audits, link-drift checks (`repo_integrity`), prioritized triage queues, and scorecards ($0, offline) via `plexer health`.
## 1. Choose Scan Scope
- **PR or branch changes:** `plexer health scan --diff [base]` limits findings to modified files (`plexer health review --prepare --diff [base]` scopes subjective review packets to the diff).
- **Module audit:** `plexer health scan --in <scope...>` runs an ephemeral scoped scan without mutating global `.health/state.json`; `plexer health tree [--focus <dir>] [--detail]` maps hotspots first.
- **Full repository or CI:** `plexer health scan` updates `plexer/.health/state.json` (pass `--stateless` for read-only checks; `--only integrity` focuses on doc, manifest, workflow, dependency, and orphan-script drift).
## 2. Triage Loop (`next` -> verify -> `resolve`)
1. Pull the highest-leverage open items with `plexer health next [--count <n>] [--cluster <name>] [--lanes] [--read-only]`, or inspect grouped counts with `plexer health show --status open --by-detector`.
2. Before editing shared code or removing dead exports, check callers and doc/config links with `plexer callers <symbol> --links` and read exact spans with `plexer read`.
3. Apply fixes with native edit tools and run the narrowest applicable verification check.
4. Close verified items with a concrete verification note:
```bash
plexer health resolve <id> --confirm --note "Removed unused helper after confirming 0 callers; npm test passed"
```
## 3. Fix vs. Suppress Discipline
- Fix genuine defects, drift, duplication, and coupling issues rather than hiding them.
- Suppress only verified false positives or intentional architectural boundaries with a specific explanation:
- False positive: `plexer health suppress <id> --false-positive --reason "<specific technical reason, >=15 chars>"` (bulk `>5` matches require `--confirm`).
- Intentional trade-off (`wontfix`): `plexer health plan skip <id> --permanent --attest "I have actually reviewed <file> and am not gaming the score: <reason>"`.
- Never bulk-suppress open items to inflate scores.
## 4. Safe Mechanical Refactors
Preview automated edits before writing files, then inspect `git diff` and callers:
```bash
plexer health autofix --dry-run
plexer health autofix
plexer health autofix unused-imports --dry-run
plexer health move <src> <dst> --dry-run
```
`autofix` defaults to low-risk mechanical fixers (`debug-logs`, `unused-vars`, `luau-task-scheduler`); opt-in fixers (`unused-imports`, `unreferenced-exports`, `luau-strict-header`, `luau-hoist-getservice`) run by explicit name.
## 5. Status, Targeted Detectors & Visualization
- **Inspect queue and detectors:** `plexer health status [--read-only]`, `plexer health show [--status open] [--by-detector] [--limit <n>|--max all] [--code]`, `plexer health detect [--detector <name>]`, `plexer health review [--prepare [--diff [base]]|--run-batches]`.
- **Visualize treemap:** Run `plexer health viz [--output <file>]` or open `[Plexer Graph](sidecar://plexer/viz/?tab=treemap)`.