/smg:learnfrom smg
Records structured lessons when a skill or recipe in the SMG dev guide is wrong or incomplete. Captures evidence, classifies failure kind, deduplicates, and files a GitHub issue.
Ships in smg. 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.
The guide improves only when the agents who use it report where it failed them. Two minutes while the evidence is in front of you saves the next agent the same detour.
When: a recipe or skill pointed you at a file, type, function, flag or test that does not exist; a step was missing or in the wrong order; a verify command or CI lane failed for a reason the recipe did not predict; the subsystem you worked in has no recipe or map row.
Not a lesson: a bug in SMG itself (file it on smg-project/smg), or a question the guide answered correctly.
CAPTURE the skill or recipe and the exact sentence (${CLAUDE_PLUGIN_ROOT}/skills/...:line); the command you ran and its
trimmed output or the compiler error; the SMG commit (git rev-parse HEAD); what is true now
(git grep -nw '<symbol>', git log -S'<symbol>' -1 -- <path>); the guide version
("version" in ${CLAUDE_PLUGIN_ROOT}/.claude-plugin/plugin.json, "verified_commit" in ${CLAUDE_PLUGIN_ROOT}/smg-ref.json)
CLASSIFY kind = wrong-anchor | missing-step | wrong-semantics | new-subsystem | ci-surprise | tooling | vocabulary
WRITE cat "${CLAUDE_PLUGIN_ROOT}/lessons/TEMPLATE.md" and fill it
DEDUP gh issue list --repo smg-project/smg-dev-guide --label lesson --search "<symbol or path>"; comment on a twin instead
FILE gh issue create --repo smg-project/smg-dev-guide --label lesson --title "lesson(<recipe or skill>): <one line>" --body-file <tmp>
without gh: write lessons/YYYY-MM-DD-<slug>.md in a smg-dev-guide checkout ($SMG_DEV_GUIDE_ROOT, or
${CLAUDE_PLUGIN_ROOT} when it is a git checkout) and tell the user; else print the filled template
CONTINUE finish the SMG task with the corrected knowledge; never edit the installed plugin's skills in place
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub smg-project/smg-dev-guide --plugin smg8 skills in this plugin
/add-modelAdd support for a new checkpoint or model family to SMG end to end. Use for "support model X", "the engine added model Y", "which models did the engine release lately", a new Symphony group row, a new media family, or new conformance rows. Decides what the checkpoint owes (a Symphony row or table, a media family, token-parity and processor-parity rows in the conformance repository) and walks one recipe per part, each step with a file, a verify command and the silent trap./contributeShip a change to the SMG repository. Use before committing, pushing or opening a PR, and when asked "am I ready to submit". Runs the whole pre-PR gate as one command (fmt, clippy, tests, pre-commit, Python/Go lanes, Cargo.lock, vocabulary, branch/commit rules) and names what CI will still run./craftOther plugins' skills for the same job