sgc — All-in-One Engineering Workflow & Knowledge Engine for Claude Code

sgc is a self-contained Claude Code plugin that runs your entire engineering loop — plan → implement → review → QA → ship → compound — from one install. It adds L0–L3 task classification, 13 runtime invariants, and a deduplicated knowledge engine that compounds what every task teaches you. One command to install, node-only, no extra runtime, no other plugins required.
In one sentence: sgc turns Claude Code into a disciplined engineering agent that classifies each task, enforces the right process for its risk level, runs review/QA/security gates, ships it, and records reusable knowledge so the same mistake is never made twice.
sgc consolidates — natively, in-process — the engineering capabilities you'd otherwise install separately: gstack-style canary / security review / browser QA / ship orchestration, Superpowers-style systematic debugging and verification gates, and the Compound Engineering capture→promote→reuse loop. You don't need to install or wire up those plugins; sgc owns the whole workflow and runs standalone. (It will still interoperate with superpowers / gstack if you have them.)
Why sgc?
- One-command install, zero runtime hassle.
/plugin install sgc ships a self-contained Node bundle — works on any machine that runs Claude Code (Node ≥ 22.19). No bun, no second install step, no global setup.
- Right-sized process per task. Every task is classified L0–L3 (typo → architecture) and gets exactly the planning, review depth, and human gates its risk warrants — no ceremony on a typo, full adversarial review + human signature on a migration.
- 13 runtime invariants, enforced — not suggested. Generator/evaluator separation, immutable decisions, dedup-gated knowledge writes, scope tokens pinned at spawn, two-tier event audit. The protocol is machine-checked at every write.
- A knowledge engine that compounds. Every shipped task can promote a reusable solution/prevention into a deduplicated corpus; future plans surface prior art automatically, so lessons accumulate instead of evaporating.
- Full loop in one tool.
plan · work · review · qa · ship · compound · debug · cso · canary · land · reflect · loop — the complete plan-to-prod pipeline plus security review, systematic debugging, post-publish canary, and knowledge reflection.
Install
/plugin marketplace add sdsrss/sgc
/plugin install sgc
That's it. The plugin ships a self-contained Node CLI bundle (plugins/sgc/bin/sgc.mjs), so every /sgc:* slash command works immediately on any machine that runs Claude Code — no bun, no separate npm install, no PATH setup.
Also available on npm (for npx, CI, or use outside Claude Code):
npm install -g @sdsrs/sgc
sgc --version
The npm package runs on Node ≥ 22.19 (no bun runtime required). Both channels ship the same bundle; when both are present, the plugin-bundled CLI wins for version determinism.
From source (to hack on sgc itself)
git clone https://github.com/sdsrss/sgc && cd sgc
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 npm install # bun client ignores HTTP_PROXY; use npm
bun --version # ≥1.3 — dev/build/test runtime only (not needed by end users)
npm run build:cli # rebuild plugins/sgc/bin/sgc.mjs
To try the plugin from a checkout, start Claude Code with claude --plugin-dir plugins/sgc. Its slash commands run the committed bundle (plugins/sgc/bin/sgc.mjs), so rebuild it after changing src/.
Update
/plugin marketplace update sgc # refresh marketplace metadata first
/plugin update sgc # then pull the new version
npm update -g @sdsrs/sgc # if you also use the npm channel
Both plugin steps are needed — /plugin update alone uses cached marketplace metadata. Your project .sgc/ state is untouched by updates.
Uninstall
/plugin uninstall sgc
/plugin marketplace remove sgc
No global footprint is left behind. Project-level .sgc/ directories are not removed — that's your data, not plugin data (rm -rf .sgc per project to wipe state).
Quick start