component-reviewlisted
Install: claude install-skill lx-wnk/skills
# Component Review (Detail Level)
Audit class- and method-level design of a scoped target. Report findings — never modify code.
## Scope
**In scope:** SOLID (per class), cohesion inside a class, pattern correctness, interface segregation, method signatures, aggregate invariants, error model, testability seams, naming that leaks abstractions.
**Out of scope:** module boundaries, dependency cycles, layer violations (→ `architecture-review`), code formatting, style, line-level null checks.
## Examples
```bash
# Review a PR's component design
/component-review pr 42
# Review a branch
/component-review branch feat/order-service
# Review a specific namespace/module
/component-review namespace src/Order
# Review current uncommitted changes
/component-review
```
## Workflow
```mermaid
flowchart TD
A["Parse target mode"] --> B["Load project context"]
B --> C["Detect stack + idioms"]
C --> D["Research current patterns"]
D --> E["Run checks"]
E --> F["Report findings"]
```
## Phase 1: Parse Target
From `$ARGUMENTS`:
- `pr <N>` → `gh pr diff <N>`, `gh pr view <N> --json headRefName,files`, read files via `git show <branch>:<file>`
- `branch <name>` → `git diff main...<name>`, read files from branch
- `namespace <path>` → recursive read under `<path>`
- empty → `git diff HEAD` for uncommitted changes
## Phase 2: Load Project Context
Check in order, stop at first hit:
1. `.agent-context/layer1-bootstrap.md`, `layer2-project-core.md`
2. `.agent-context/decisions.j