/genie:diagnosefrom genie
Activate Architect genie to perform codebase health scan and identify cleanup needs.
Claude never picks this command on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /genie:diagnose still runs it.
Activate Architect genie to perform codebase health scan and identify cleanup needs.
scope - Area to diagnose: module, directory, or "full" (optional, defaults to full)Architect - In diagnostic mode, focusing on:
READ (automatic):
WRITE:
UPDATE:
Produces a Diagnose Report containing:
/diagnose
> [Architect scans full codebase]
> Saved to docs/cleanup/20251203_diagnose_full.md
>
> Health: Moderate (score: 72/100)
>
> Issues found:
> - 5 dead functions (priority: low)
> - 3 unused imports (priority: low)
> - 1 pattern violation (priority: medium)
> - 2 outdated dependencies (priority: medium)
>
> Next: /tidy docs/cleanup/20251203_diagnose_full.md
/diagnose src/services
> [Architect scans services directory]
> Saved to docs/cleanup/20251203_diagnose_services.md
>
> Health: Good (score: 85/100)
> Minor issues only
| Metric | Weight | Description |
|---|---|---|
| Dead code | 15% | Unreachable functions, unused exports |
| Test coverage | 20% | Lines and branches covered |
| Pattern adherence | 20% | Following project conventions |
| Dependency health | 15% | Outdated, unused, vulnerable |
| Complexity | 10% | Cyclomatic complexity, nesting |
| Documentation | 10% | Public API documentation |
| Architecture | 10% | Coupling violations, cohesion drift, ADR health, diagram staleness |
When docs/architecture/ and/or docs/decisions/ directories exist, /diagnose performs architecture health checks. If neither directory exists, skip architecture analysis entirely and warn:
No architecture artifacts found. Architecture health analysis skipped.
docs/architecture/containers.md) and component diagrams (docs/architecture/components/*.md)Rel() arrows from Mermaid diagrams to build the declared dependency graph## Cohesion Assessment ratings — flag mismatchesdocs/decisions/proposed status with no recent /design activityaccepted ADRs with conflicting decisionssuperseded ADRs still referenced by active codeupdated field in each diagram's frontmatter## Architecture Health
### Coupling
- {N} documented dependencies, {M} undocumented found
- {finding description} — reference ADR-{NNN} for boundary rationale
### Cohesion
- {domain}: rated {RATING}, actual {assessment}
### ADR Status
- {N} accepted, {M} proposed (oldest: {date}), {K} superseded
### Diagram Staleness
- {diagram}: last updated {date} ({N} days ago) — STALE
After diagnosis:
/tidy with diagnose reportWhat the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub elmmly/genie-team --plugin genie31 commands in this plugin
/arch/arch [shaped-contract] --workshopActivate Architect genie for interactive architecture workshops — approach comparison, technical decisions, interface design, and risk prioritization./arch-init/arch:initActivate Architect genie to bootstrap architecture artifacts (ADR-000 and C4 diagrams) for an existing project./brand/brand [input]Activate Designer genie to create, evolve, or activate a brand guide via an interactive design workshop./brand-image/brand:image [prompt]Generate a brand-consistent image using AI, with cost-tiered model routing and graceful degradation./brand-review/brand:review [image-path]Review a design artifact (wireframe, mockup, screenshot, or generated image) against brand guidelines and universal UX heuristics, producing a persistent Design Review Report./brand-tokens/brand:tokens [brand-guide]Generate W3C Design Tokens JSON from an existing brand guide.Other plugins' commands for the same job