/llm-gateway:design-review-cyclefrom llm-gateway
Dispatches design, specification, and implementation-plan reviews through a local MCP gateway to multiple LLM providers for cross-LLM validation before implementation.
Ships in llm-gateway. 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.
Review a design, specification, or implementation plan before code changes make the decision expensive to reverse. Dispatch every review through the local gtwy stdio MCP server, not by launching provider CLIs directly.
The gateway has seven CLI request surfaces: Claude, Codex, Gemini, Grok, Mistral, Devin, and Cursor. Each has a sync request tool and an async request tool when async jobs are enabled. Grok, Mistral, Devin, and Cursor also expose native ACP transports, but review requests still go through the gateway request tools.
Configured API providers can add generic request tools. Discover them with
list_models and their reported capabilities. They do not supply a local CLI
checkout/worktree or native ACP boundary, so they are not an automatic
replacement for a source-inspecting required CLI reviewer.
workingDir
before context compilation. explain_effective_config({workingDir:"<repo>"})
can inspect a candidate scope, but execute that Kit work with an already
configured registered workspace alias or the configured default workspace. It never
inherits the gateway process cwd.Use this local stdio targeting map:
| Provider | Target the repository |
|---|---|
| Claude, Codex, Grok, Mistral | Pass local workingDir on a new session when supported by the request, or select a registered workspace explicitly or by configured default. |
| Gemini | Use workingDir to select the process cwd. includeDirs is auxiliary and does not select cwd. |
| Devin | Pass local workingDir on a new CLI session, or select a registered workspace explicitly or by configured default. |
| Cursor | Use workingDir for the process cwd. workspace is Cursor's own selector (saved-workspace name, .code-workspace file, or directory); an absolute workspace path disagreeing with workingDir is rejected, not ranked. |
Do not use workspace_* administration tools to repair a local stdio path problem. They are for remote HTTP/OAuth workspace clients.
For Claude mcp_managed, a custom working directory, expanded workspace, native resume, custom tool rules, and similar posture changes require a gateway approval decision plus the operator bypass setting. Use only the minimal managed Claude request unless that approval path is deliberately configured.
Every required reviewer prompt must require this terminal JSON verdict:
APPROVED_UNCONDITIONALLY | CHANGES_REQUIRED | BLOCKED_EXTERNAL
Apply these rules:
outputFormat: "stream-json" streams, so there it is a real idle window.APPROVED_UNCONDITIONALLY results. A
condition, remaining finding, incomplete evidence, malformed response,
timeout, cancellation, or provider failure is not approval.Continue to revise and re-review without a numeric cap. Stop only when the user
cancels or a provider has a terminal external failure. A terminal failure is
BLOCKED_EXTERNAL with its exact error, never a reason to omit the reviewer or
approve the design.
Keep the normal review controls above unless the user explicitly grants full
provider permissions and native MCP access. For that exception, follow the
complete multi-llm-review full-access protocol: build the exact target,
launch node dist/index.js --transport=stdio from it, and do not use a global
or stale gateway process. Reapply each provider-native grant to every new job,
not a resumed assumption, and preserve ambient native MCP configuration without
adding gateway allowlists or deny lists.
Every provider receives the verification report as a corrective-program
specification plus the exact base, diff or exhaustive changed-file list,
product-relevant untracked files, and persistent evidence references. Require
independent code, docs, tests, command, and native-MCP inspection. The only
acceptable terminal outcomes are APPROVED_UNCONDITIONALLY, evidence-backed
CHANGES_REQUIRED, or concrete BLOCKED_EXTERNAL. Do not impose caller caps.
For a user-required 90-second progress cadence, use non-blocking waits and do
not poll earlier. Full capability remains non-mutating review access unless the
user separately authorizes edits.
For a single Codex design review:
codex_request({
prompt: "Review [design path] for completeness, feasibility, alternatives,
risks, dependencies, test strategy, rollout, rollback, and project
conventions. Return terminal JSON verdict APPROVED_UNCONDITIONALLY,
CHANGES_REQUIRED, or BLOCKED_EXTERNAL with inspected evidence.",
sandboxMode: "read-only",
workingDir: "[repo]",
approvalStrategy: "legacy",
correlationId: "design-review-codex"
})
For a full cross-LLM review, dispatch the required roster in parallel after applying the targeting map above:
claude_request_async({
prompt: "Review [design path] for architecture, assumptions, failure modes,
and missing alternatives. Return terminal JSON verdict APPROVED_UNCONDITIONALLY, CHANGES_REQUIRED, or BLOCKED_EXTERNAL with inspected evidence.",
approvalStrategy: "legacy",
workingDir: "[repo]",
correlationId: "design-review-claude"
})
codex_request_async({
prompt: "Review [design path] for feasibility, task ordering, test strategy,
and implementation risks. Return terminal JSON verdict APPROVED_UNCONDITIONALLY, CHANGES_REQUIRED, or BLOCKED_EXTERNAL with inspected evidence.",
sandboxMode: "read-only",
approvalStrategy: "legacy",
workingDir: "[repo]",
correlationId: "design-review-codex"
})
gemini_request_async({
prompt: "Review [design path] for security, data flow, operational failure
modes, and missing requirements. Return terminal JSON verdict APPROVED_UNCONDITIONALLY, CHANGES_REQUIRED, or BLOCKED_EXTERNAL with inspected evidence.",
approvalStrategy: "legacy",
workingDir: "[repo]",
correlationId: "design-review-gemini"
})
grok_request_async({
prompt: "Independently review [design path] for assumptions, blind spots, and
alternatives. Return terminal JSON verdict APPROVED_UNCONDITIONALLY, CHANGES_REQUIRED, or BLOCKED_EXTERNAL with inspected evidence.",
approvalStrategy: "legacy",
workingDir: "[repo]",
correlationId: "design-review-grok"
})
mistral_request_async({
prompt: "Independently review [design path] for feasibility, maintainability,
and missing constraints. Return terminal JSON verdict APPROVED_UNCONDITIONALLY, CHANGES_REQUIRED, or BLOCKED_EXTERNAL with inspected evidence.",
approvalStrategy: "legacy",
workingDir: "[repo]",
correlationId: "design-review-mistral"
})
devin_request_async({
prompt: "Independently review [design path] for implementation risk, security,
and missing verification. Return terminal JSON verdict APPROVED_UNCONDITIONALLY, CHANGES_REQUIRED, or BLOCKED_EXTERNAL with inspected evidence.",
approvalStrategy: "legacy",
workingDir: "[repo]",
correlationId: "design-review-devin"
})
cursor_request_async({
prompt: "Independently review [design path] for usability, implementation
gaps, and regressions. Return terminal JSON verdict APPROVED_UNCONDITIONALLY, CHANGES_REQUIRED, or BLOCKED_EXTERNAL with inspected evidence.",
approvalStrategy: "legacy",
workspace: "[repo]",
correlationId: "design-review-cursor"
})
Use prompt, not promptParts, for Devin and Cursor. The other five CLI request surfaces accept promptParts. Keep a canonical flat review text and derive the five structured requests from it so all reviewers receive the same substantive criteria.
APPROVED_UNCONDITIONALLY after the issue is resolved.When async tools are registered, poll through gtwy with llm_job_status and collect results with llm_job_result. Use a non-blocking wakeup mechanism. Do not cancel because a review is taking a long time.
When persistence.backend = "none", use the corresponding sync request tools; they run to completion and do not auto-defer. Lack of async tools does not justify reducing the required reviewer roster.
SQLite and Postgres persistence retain jobs durably. Memory persistence is ephemeral and requires explicit acknowledgement; persistence.backend = "none" does not register async or job tools. Reissue an identical deduplicable request only when the design inputs are unchanged.
Mistral Vibe defaults session logging to enabled. Before relying on
resumeLatest or sessionId continuity, run doctor and correct an explicit
[session_logging] enabled = false configuration. Codex native resume requires a
real Codex UUID. Do not rely on the resumed target directory: the gateway
filters -C/--cd from resume argv, but the child is still spawned with the
gateway-resolved cwd. The sandbox posture is not guaranteed to carry over
either: sandboxMode cannot select one on resume and Codex re-resolves
configuration.
APPROVED_UNCONDITIONALLY from every required reviewerBLOCKED_EXTERNAL, never as approvalWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
design-review, llm-review, cross-llm, mcp-gateway, specification-review
7 skills in this plugin
/agent-codex-gatePattern for spawning subagents whose work must receive an evidence-backed, unconditional Codex review through the local llm-cli-gateway stdio MCP server. Use when parallel implementation tasks need an independent Codex quality gate./codex-review-gateSubmit completed work to Codex through the local llm-cli-gateway stdio MCP server and continue until an evidence-backed, unconditional approval. Use after implementation, before merging, or whenever a process requires Codex sign-off./model-routingSelect and dispatch llm-cli-gateway providers by live capability, target access, and task requirements. Use when choosing among Claude, Codex, Gemini, Grok, Mistral, Devin, and Cursor, or when selecting an explicit model through the local stdio gateway.npx claudepluginhub verivus-oss/llm-cli-gateway --plugin llm-gatewayOther plugins' skills for the same job