/smg:review-prfrom smg
Reviews pull requests or diffs in the SMG repository by mapping changed files to per-subsystem checklists with anti-patterns, applying error-handling, testing, and craft sections, and reporting severity findings with file:line references.
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.
Rule: no verdict before every changed file is mapped to its checklists and each checklist is worked. REVIEW.md in SMG is the source of truth for markers and focus areas; this skill is the subsystem-aware procedure it points to.
FETCH gh pr diff <number> (or git diff <base>...HEAD)
MAP list changed files → match the table below → read every matched checklist (they hold the
anti-patterns too) BEFORE reading the diff in depth; sections 7–9 and the craft questions always apply
CHECK work the checklists against the diff; read enough surrounding code to be sure
REPORT one finding per bullet: 🔴 Important (bug, fix before merge) · 🟡 Nit · 🟣 Pre-existing;
`path:line`; what is wrong, why it matters, the smallest fix; then counts per severity.
A full review with zero 🔴 may approve. The PR body must carry the template headers
(## Description, ### Problem, ### Solution, ## Changes, ## Test Plan) and a ## Release note section.
| Files changed | Read these checklists | Lanes that run |
|---|---|---|
model_gateway/src/config/, model_gateway/src/main.rs, model_gateway/src/cli/ | checklists/config.md | rust-lint, rust-tests, build-wheel, python-unit-tests |
crates/protocols/ | checklists/layering.md, checklists/config.md | rust-lint, rust-tests, grpc-proto-build-check, build-wheel |
model_gateway/src/app_context.rs, model_gateway/src/server.rs, model_gateway/src/server/, model_gateway/src/lib.rs, model_gateway/src/version.rs | checklists/layering.md | rust-lint, rust-tests |
model_gateway/src/policies/ | checklists/routing.md | rust-lint, rust-tests, benchmarks, benchmark-policy-selection, benchmark-manual-policy |
crates/grand_central/, examples/grand-central/, model_gateway/src/config/policy_document.rs, model_gateway/src/routers/common/place_request.rs, model_gateway/src/routers/common/placement.rs | checklists/grand-central.md | rust-lint, rust-tests, benchmark-grand-central-engine, benchmark-policy-store, benchmark-policy-store-journal, pr-grand-central-image |
model_gateway/src/routers/ | checklists/routing.md, checklists/layering.md | rust-lint, rust-tests, e2e-1gpu-chat, e2e-1gpu-chat-zmq, benchmark-request-processing, benchmark-stream-state-machines, benchmark-gateway-perf |
model_gateway/src/endpoints/ | checklists/layering.md | rust-lint, rust-tests |
model_gateway/src/admin/ | checklists/layering.md, checklists/worker-lifecycle.md | rust-lint, rust-tests |
model_gateway/src/middleware/scheduler/, model_gateway/src/middleware/concurrency.rs, model_gateway/src/middleware/token_bucket.rs | checklists/layering.md | rust-lint, rust-tests |
model_gateway/src/rate_limit/, model_gateway/src/routers/grpc/common/stages/rate_limit.rs | checklists/layering.md | rust-lint, rust-tests |
model_gateway/src/tenant/, model_gateway/src/middleware/tenant_resolution.rs, model_gateway/src/middleware/auth.rs, model_gateway/src/secrets.rs | checklists/layering.md | rust-lint, rust-tests |
crates/auth/ | checklists/layering.md | rust-lint, rust-tests |
crates/service_discovery/, model_gateway/src/discovery_host.rs | checklists/worker-lifecycle.md | rust-lint, rust-tests, e2e-discovery |
crates/worker/, model_gateway/src/workflow/ | checklists/worker-lifecycle.md | rust-lint, rust-tests |
crates/workflow/ | checklists/worker-lifecycle.md | rust-lint, rust-tests |
crates/symphony/ | checklists/parsers.md | rust-lint, rust-tests, e2e-1gpu-chat, symphony-fuzz, benchmark-symphony |
crates/tool_parser/, crates/reasoning_parser/, crates/response_template/ | checklists/parsers.md | rust-lint, rust-tests |
crates/tokenizer/, model_gateway/src/workflow/tokenizer_registration.rs, model_gateway/src/endpoints/tokenize/ | checklists/parsers.md | rust-lint, rust-tests, benchmark-tokenizer |
crates/kv_index/, crates/radix_tree/, model_gateway/src/policies/kv_index/ | checklists/routing.md | rust-lint, rust-tests, benchmark-radix-tree, radix-tree-fuzz |
crates/grpc_client/, crates/worker/proto/, model_gateway/src/routers/grpc/client.rs | checklists/routing.md, checklists/worker-lifecycle.md | rust-lint, rust-tests, grpc-proto-build-check |
crates/engine_zmq_client/, crates/engine_zmq_adapter/, model_gateway/src/routers/grpc/zmq_client.rs, model_gateway/src/routers/grpc/backend_client.rs | checklists/zmq.md, checklists/routing.md | rust-lint, rust-tests, e2e-1gpu-chat-zmq, e2e-2gpu-chat-zmq-dp |
crates/engine_servicer/, grpc_servicer/ | checklists/zmq.md, checklists/worker-lifecycle.md | rust-lint, rust-tests, e2e-1gpu-chat, e2e-1gpu-chat-python-servicer |
crates/external_router/, model_gateway/src/routers/external.rs, model_gateway/src/routers/provider_support.rs | checklists/provider-routers.md, checklists/layering.md | rust-lint, rust-tests, e2e-vendor |
crates/mcp/ | checklists/layering.md | rust-lint, rust-tests, e2e-mcp-mock |
crates/data_connector/ | checklists/storage.md | rust-lint, rust-tests |
crates/multimodal/, crates/mm_rdma/, model_gateway/src/routers/grpc/multimodal/ | checklists/routing.md | rust-lint, rust-tests, e2e-1gpu-chat-mm-worker |
crates/wasm/, examples/wasm/, model_gateway/src/wasm/, model_gateway/src/middleware/wasm.rs | checklists/layering.md | rust-lint, rust-tests |
crates/mesh/, model_gateway/src/mesh/ | checklists/layering.md | rust-lint, rust-tests |
model_gateway/src/observability/, model_gateway/src/middleware/metrics.rs, model_gateway/src/middleware/logging.rs | checklists/layering.md | rust-lint, rust-tests |
crates/rl/, model_gateway/src/rl_adapter.rs | checklists/layering.md | rust-lint, rust-tests |
bindings/ | checklists/config.md | build-wheel, python-unit-tests, python-lint, go-unit-tests, go-bindings-e2e |
clients/ | sections 7–9 only | rust-lint |
e2e_test/, scripts/, .github/workflows/ | checklists/testing.md | python-lint, ci-tooling-tests, e2e-cpu-mock |
crates/mock_worker/, model_gateway/test_harness/ | checklists/testing.md | rust-lint, rust-tests, e2e-cpu-mock |
crates/gateway_perf/ | checklists/testing.md | rust-lint, rust-tests, benchmark-gateway-perf |
deploy/ | checklists/config.md | build-wheel, pr-helm |
A unit test under a package's tests/unit maps as the source file it tests does: read src for tests/unit in its path. Files under none of these paths get sections 7–9 only. A PR touching three or more areas, or adding new types, also gets the architecture questions below.
unwrap() in production code (unwrap_used = "deny"); ? with anyhow::Context, thiserror per domain.None or a default.tests/unit folder keeps none under src, and the source file keeps the three pointer lines. The layout hook fails otherwise (skills/craft/structure.md, "Where code and tests go").tests/unit/MOVING.md, as the gateway does today. Its tests that have not moved yet may stay under src: they are no finding.@pytest.mark.engine(...) and @pytest.mark.gpu(n) (checklists/testing.md).Cargo.lock staged when a Cargo.toml changed; the lanes the change triggers were considered (scripts/lanes.py).#[expect(lint, reason = "...")] not #[allow]; tracing not println!; Uuid::now_v7; HTTP clients from the crate's client factory, never reqwest::Client::new; tokio::spawn only for tasks that may die at shutdown, justified at the call site.python3 "${CLAUDE_PLUGIN_ROOT}/scripts/check_vocabulary.py" --diff over the diff).skills/craft/SKILL.md: clones on the hot path, bounds on new buffers and maps, a second spelling of something already spelled once, a flag without its launcher and Helm parity.crates/protocols/) · Can existing labels or config achieve it? · Does it compose with DP-aware mode, PD/EPD disaggregation, IGW multi-router mode, mesh HA? · Send + Sync under load? · HTTP, gRPC and ZMQ, Symphony and legacy parsers? · Compiles in the self-hosted and anthropic-only lint legs?checklists/config.md).path:line.checklists/config.md (opens in a new tab)checklists/grand-central.md (opens in a new tab)checklists/layering.md (opens in a new tab)checklists/parsers.md (opens in a new tab)checklists/provider-routers.md (opens in a new tab)checklists/routing.md (opens in a new tab)checklists/storage.md (opens in a new tab)checklists/testing.md (opens in a new tab)checklists/worker-lifecycle.md (opens in a new tab)checklists/zmq.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
8 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./craftnpx claudepluginhub smg-project/smg-dev-guide --plugin smgOther plugins' skills for the same job