/smg:craftfrom smg
Enforces SMG code style and conventions for naming, metrics, interfaces, performance, and release notes. Use before writing non-trivial code or reviewing for consistency.
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.
Read when SKILL.md points to them.
The house style is not taste: each rule below names what breaks when it is skipped. The five references in this directory carry the evidence (paths, lines, commits); read the one your change touches.
PdSide, PrefillBound, DecodeBound); a worker has a role (WorkerRole::{Single, Prefill, Decode}); the workers of one role are a pool. "Leg" meant all three at once and is not used in code, comments, test names or log lines; a dispatch "arm" is as vague. Metric names keep their published spelling. (CONTRIBUTING.md)CONTRIBUTING.md, enforced by the hooks and CI.)RequestLease; upstream bodies are sized and capped; per-token work clones nothing; server-controlled label values go through intern_string, client-controlled ones (model ids, tool names) through the bounded intern_model_label / intern_tool_label in crates/external_router/src/metrics.rs (MAX_MODEL_LABELS, then the other sentinel); overload is a latched flag, not a per-request walk. (performance.md)tables!); a surface that exists in two places is pinned by a parity test (CLI ↔ launcher ↔ Helm, registry ↔ README); glue is re-exported, not copied. (structure.md)smg_ prefix and a unit suffix; a shed carries Retry-After. (interface.md)writing.md; python3 "${CLAUDE_PLUGIN_ROOT}/scripts/check_vocabulary.py" --diff over your diff)| Your change | Read |
|---|---|
| names a thing, writes a commit, a PR body, a doc comment or a test | writing.md |
| touches request handling, streaming, selection, an index, a cache, a lock | performance.md |
| adds or changes a flag, config field, metric, log line, error response, health probe, protocol type | interface.md |
| adds a module, a backend, an enum variant, a test, or copies something that exists | structure.md |
writes the release page, the Slack announcement, or the ## Release note sentence of a PR | release-notes.md |
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/check_vocabulary.py" --diff < <(git diff origin/main...HEAD) and --commits origin/main..HEAD: zero error-level hits (the gate's vocab row runs both).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./implementOther plugins' skills for the same job