/lucid-coder:learn <correction> | --from-memoryfrom lucid-coder
Turn one lasting style correction into one learned lucid-coder rule, after the user approves it. Use when the user says "remember this", "always do X", "never do Y", "in this lab we", "from now on", "save this as a rule", or accepts an offer to save a correction with /lucid-coder:learn. With --from-memory, review the coding preferences in Claude Code auto-memory ("learn from memory", "import my memory preferences").
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.
Turn the correction in the arguments into ONE proposed rule. If there are no arguments, use the user's most recent style correction. If that is unclear, ask which correction to save.
The store CLI is:
node "${CLAUDE_PLUGIN_ROOT}/scripts/rules.js" <command>
Pick the topic key. Use a key from
${CLAUDE_PLUGIN_ROOT}/skills/lucid-coder/references/house-style.md when one fits,
for example r.pipe. Otherwise use user.<snake_case_slug>, for example user.plot_titles.
Pick the narrowest scope the user implied.
repo if they said "in this repo" or "in this project".language with --language r or --language python if the rule is for one language only.file-glob with --glob only if they named a file pattern.global otherwise.Draft the rule.
statement: one line, at most 300 characters, an instruction.why: one line with the user's reason. Ask if they gave none.good and bad: one short code example each, when the rule is about code.source: user-correction for a correction, user-preference for a stated preference.Show the full rule to the user: topic, scope, statement, why, good, bad. Ask "Save this rule?" Stop and wait for the answer.
On yes, run propose, then approve with the id it prints:
node "${CLAUDE_PLUGIN_ROOT}/scripts/rules.js" propose --topic 'r.pipe' --scope global \
--statement '...' --why '...' --good '...' --bad '...' --source user-correction
node "${CLAUDE_PLUGIN_ROOT}/scripts/rules.js" approve <id>
Wrap every value in single quotes. Write a single quote inside a value as '\''.
Read the exit code.
Warning:, quote it: some active rules
will not reach the model. Offer to list them and retire or narrow some.list --json, show both rules side by side and ask whether the new
rule should replace the old one. On yes, run supersede <new-id> <old-id>.
On no, run reject <new-id>.On no at step 4, save nothing. Say so in one line.
Review the feedback entries in Claude Code auto-memory as candidate rules.
Read memory only; never edit or delete a memory file. This replaces steps 1-5 above.
harvest --since-last --json. If it prints [], run harvest --mark-seen (it clears the session nudge), say there is nothing new and stop.
Each candidate has description, body_excerpt, source, project, repo
and projects_seen; exact-duplicate descriptions are already grouped.projects_seen.user.<snake_case_slug>.global if projects_seen has 2 or more projects. Otherwise repo
with --repo '<repo>'. If repo is null, the project is not a git repository
or its folder is gone: say so and offer global or skip.description.source (user-memory:<project>/<file>.md).propose with the values shown, adding
--source and, for repo scope, --repo. Then run approve <id>.
Handle exit codes as in step 6 above, one rule at a time.harvest --mark-seen, even when the user saved nothing, so the same
memories do not come back. It stores file hashes and a time, never memory text.--from-memory, where
each rule still needs its own number from the user.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mdmanurung/lucid-coder --plugin lucid-coder27 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).Other plugins' skills for the same job