← ClaudeAtlas

addlightness-reviewlisted

Read-only code-weight report. Measures LOC, cyclomatic complexity, import count, function count, and nesting depth for one or more files and lists removable 'fat' candidates -- WITHOUT changing any code. Use when the user says "how heavy is this", "weight report", "what's the fat here", "review weight", "analyze complexity", "where can this be trimmed", "is this bloated", or invokes /addlightness-review. Triggers on /addlightness-review. Reports only, never edits; to actually apply trims use /addlightness.
88plug/addlightness · ★ 0 · Code & Development · score 60
Install: claude install-skill 88plug/addlightness
# /addlightness-review -- read-only weight report Measure code weight and surface removable "fat" candidates. This is the **diagnostic** half of addlightness: it reports, it never edits. For actual trimming use `/addlightness`; for performance numbers use `/addlightness-bench`. ## Scope -- READ-ONLY **This skill NEVER modifies files.** It reads, measures, and reports. Period. - No `Edit`, no `Write`, no in-place fixes, no "I went ahead and removed it". - Output is a report the human reads and decides on. - If the user wants the trims applied, tell them to run `/addlightness <file...>` (which spawns the edit-capable `code-trimmer` agent behind an equivalence gate). - When in doubt, do less: describe the candidate, do not touch the code. Repeat this contract back to the user if they ask you to "just fix it" here -- review reports, `/addlightness` edits. ## How to run For each target file, get its weight metrics from the zero-dependency engine. Two equivalent paths -- prefer the agent for multi-file work, the direct call for a single quick read: 1. **Via the agent (preferred for >1 file or a fat-candidate narrative):** spawn the `weight-analyst` agent. It is read-only by contract (its prompt forbids mutating Bash commands; it has no Edit/Write) and returns the metrics table plus a ranked fat list and a KEEP list. The agent analyzes one file per invocation — spawn one weight-analyst invocation per file and aggregate the JSON yourself. 2. **Direct (single