ClaudeCodeMod

All shelves / Mods / Review

quality-gate

By Eigenwise

quality-gate is a Claude Code review mod by Eigenwise.

After each turn with edits, measures the complexity of the functions Claude changed, and draws it above the prompt with the cost and test status.

Draws

Install

The marketplace name is eigenwise-toolshed.

In Claude Code
/plugin marketplace add Eigenwise/eigenwise-toolshed
/plugin install quality-gate@eigenwise-toolshed
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
1.2.1
License
MIT
Repo stars
282
Last change
2026-10-22

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Reads this turn's file edits
  • Sees tool calls
  • Reaches the network or an outside service
  • Calls another program on this machine

Needs Node 22.5 or later and npm. The first run installs the parser, with a 180-second deadline. Offline or without npm, it exits with npm install --prefix <plugin root> as the remedy. The README also gives /plugin install quality-gate --marketplace Eigenwise/eigenwise-toolshed. The hooks module records edits and test-command results by working directory. After each turn with edits, it runs the plugin's CLI once per edited working directory, with a 20-second timeout, to measure the changed functions' complexity and reuse signals, then publishes the report with test pass or fail and stale status. Tool calls never launch measurement. A single line above the prompt reads the session cost, CC with the highest complexity and ok or SPLIT with a count, and tests pass, fail, or none, with stale. SPLIT counts new or complexity-raised functions at CC 6 or higher. Without coverage at coverage/lcov.info, it checks complexity only, and shows quality-gate: complexity only, coverage not set up once per session, then the status line keeps the reminder. The band disappears with /quality-gate off, or before the first report. New and complexity-raised functions must score strictly below 6. Complexity 6 or more fails at any coverage, and the author says to split the function, since more tests cannot help. JS, TS, and Python are measured, and PHP and Vue need lizard. The hooks module reads the persona in skills/quality/PERSONA.md into the system prompt, and appends a reuse inventory once at session start. /quality-gate on or off switches that persona, /quality-gate markers on or off switches source shortcut comments, and /quality-gate status prints both. The switches persist across sessions. /quality-gate:review reviews the diff, the repository, or the debt. The author says to uninstall ponytail when both are installed, because its persona contradicts this one.

The marketplace name is eigenwise-toolshed. The marketplace also holds observability, model-gateway, sidequest, codebase-mapper, quartermaster, and live-rules. This one installs on its own. The marketplace source is ./plugins/quality-gate. The complexity report after each turn is why this page files it under review. test-hud draws each test run on the status line, passing over total, with a pane of the tests that failed. craftsman-cockpit, for a quality gate for AI-written code, draws a pane of candidate rules it learned. This one scores the functions Claude changed in the turn, and draws the worst score above the prompt. The network line is the npm install of the parser on the first run.

Demo

The Live measurement section of the Quality Gate README: the CLI run after each turn with edits, and the single line above the prompt with the cost, CC, SPLIT, and tests.
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • prompt.composeWhile you write a prompt
  • command.runWhen you run its slash command/quality-gate
  • turn.startWhen Claude starts a turn
  • classic.PostToolUseA Claude Code event
  • tool.callAround a tool call, where it can hold oneBashPowerShell
  • turn.completeWhen a turn ends
  • state.setA Claude Code event
  • ui.renderDraws into the sessionAbovePrompt

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Slash commands 1

  • /quality-gateSwitch quality guidance and shortcut markers on or off.

Files

The author's README and source, 6 files. They load when you open them.

Facts

Author
Eigenwise
Category
Review
Marketplace
eigenwise-toolshed
Repo
Eigenwise/eigenwise-toolshed
Folder
plugins/quality-gate
Version
1.2.1
License
MIT
Repo stars
282
Last change
2026-10-22
Language
TypeScript
Files
56

Other mods in Review

image-previewmidudevOpens a pasted [Image #N] by the pointer when you hover it, in a small window or drawn in the terminal, and a click opens the system's viewer.time-machineDiegoMartySnapshots the working tree with git at each turn that changes files, Bash included, and /timeline opens a pane to move the files to any state and back.image-peekkaranb192Shows a pasted image while the text cursor sits on its [Image #N] marker, in a large pane on a wide window or above the prompt, on macOS in Ghostty.quiz-afterDannyMac180When Claude finishes a task that changed something, draws a quiz of two or three questions about the change above the prompt, each with a button for the answer.tool-cardsbradtraversyReplaces each tool-use row with a card: the tool's icon, an action title, its state, and the time, with the output folded behind Details until a call fails.decoratedthomas-whitaker1Teaches Claude a small tag language and draws it in the reply: colored badges, callouts, bar and braille charts, heat maps, flow and sequence diagrams, and SVG.cc-intelligent-uirazorback16Draws each answer from Claude as a typeset picture made with Typst: rendered Markdown, LaTeX math, charts, and diagrams, in kitty, Ghostty, or iTerm2.image-peekchicioDraws a tile above the prompt for each image you paste, real pixels in kitty and Ghostty and block characters in Warp, and opens one full size in Quick Look.windbg-paneglslangDraws a WinDbg-style pane from windbg-mcp tool calls as they happen: disassembly with the stop marked, registers, stack, memory, breakpoints, and commands.slint-previewtilladamOpens a live preview of a Slint UI file in a pane beside the conversation, reloads it when you save, and lists build errors under the last good UI.prompt-polishjheroorehjRewrites your prompt with the prompting guide for the session's model before it is sent, and shows the polish beside the original to apply, retry, or keep.latexzaahiralTypesets TeX math, TikZ diagrams, and LaTeX blocks in Claude's replies in the desktop app's Code tab, with MathJax or one of 10 LaTeX fonts.
All 145 in Review