/lucid-coder:review [path|diff]from lucid-coder
Review code against the lucid-coder house style and the user's active learned rules. Reports findings by topic with file:line and a fix; writes nothing. Use when the user says "review this against the house style", "lucid review", "check my script's readability", or "does this follow our conventions".
Ships in lucid-coder. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read-only. The report is the only output.
The code. With no argument or diff, review the working tree change:
git diff HEAD
git ls-files --others --exclude-standard
Read each untracked file the second command lists. With a path, review that file or every R and Python file under that directory.
The defaults and topic keys in
${CLAUDE_PLUGIN_ROOT}/skills/lucid-coder/references/house-style.md.
The user's active rules:
node "${CLAUDE_PLUGIN_ROOT}/scripts/rules.js" list --status active --json
An active rule replaces the default for its topic. The narrowest scope wins.
Group findings by topic key. Each finding has three parts: file:line, the
default or rule id it breaks, and a one-line fix.
Order the groups by consequence:
checks.*, data.*, repro.*, stats.*.files.*, comments.*, code.*.r.*, py.*, fig.*.Anything a formatter fixes (whitespace, quotes, line breaks, indentation) is
one line: "run air format ." or "run ruff format .". It is never a finding.
Report at most the 10 most consequential findings. Say how many more there are and which topics they fall under.
If the change is a refactor, meaning behaviour is meant to be unchanged, ask
whether outputs were compared before and after. If a results/<run_dir>/
exists, name the command:
diff -r results/<previous_run> results/<new_run>
A pattern across many files (= assignment, 4-space indent, inline palettes
in N files) is one proposed-rule suggestion, not N findings. Give the exact
command for the user to run or decline, with the file count in --why. Wrap
values in single quotes; write a single quote inside a value as '\''.
%>% is the exception: the house style is |> always, so report it as one
r.pipe finding with the file count and never propose a rule that keeps it.
Example for = assignment in 40 files:
node "${CLAUDE_PLUGIN_ROOT}/scripts/rules.js" propose --topic 'r.assign' --scope repo \
--statement 'Keep = for assignment in this repository.' \
--why 'repo-review: = assignment in 40 files; switching to <- would touch all of them' \
--source repo-review
scilintr is a separate install; mycelium's analyze and mycelium-extra's
verify run it when it is present. If it is installed (scilintr on PATH
for Python, the R package scilintr for R), do not
repeat its findings (bare except, setwd(), unseeded randomness, global
warning suppression). Write one line instead: "scilintr covers X; run
scilintr or /mycelium-extra:verify."
propose, approve or trust. Show the command and stop.file:line.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
27 skills in this plugin
/alignInstall the lucid-coder house-style configs into this repository, one file at a time, after showing each diff and asking. Use when the user says "align this repo", "install the house style configs", "set up air/ruff/lintr", or "add the palette file"./cccLigand-receptor cell-cell communication between cell types from a log-normalised single-cell h5ad with LIANA+ rank_aggregate (CellPhoneDB, Connectome, log2FC, NATMI, SingleCellSignalR, or a subset), a bundled or exported ligand-receptor resource TSV, a fixed pass rule on magnitude and specificity ranks, a source x target count heatmap, an LR dot plot, a report and a reproducibility bundle. Optional per-sample runs. Fire on "cell-cell communication", "ligand-receptor analysis", "which cell types talk to which", "LIANA", "CellPhoneDB", "rank_aggregate", "CCC between clusters". Do NOT fire for spatial CCC (bivariate, MISTy), for factorising CCC across many samples (Tensor-Cell2cell, MOFAtalk), for DE-driven CCC between conditions, for non-human data without a translated resource, or for raw counts./compositionCell-type composition and differential abundance with crumblr: counts cells per sample and label (from a cell-level h5ad or a counts TSV), drops rare labels, runs crumblr's precision-weighted CLR and variancePartition dream (fixed and random effects, e.g. (1|donor)), and writes tables, a stacked composition bar, per-label proportion boxes, an effect forest, a report and a reproducibility bundle. Fire on "cell-type composition", "differential abundance of cell types", "do cell-type proportions change", "crumblr", "CLR of cell frequencies", "which populations expand after stimulation". Do NOT fire for neighbourhood-level DA on a KNN graph (Milo), gene expression DE (pseudobulk or cell-level), scCODA / Bayesian composition models, or a plain Wilcoxon on frequencies (group-tests).npx claudepluginhub mdmanurung/lucid-coder --plugin lucid-coder