MCPInstall
aicodeking avatar

ds-review-loop

Runs an author and a fresh-context reviewer in a loop on the current change until both agree it is correct, for at most four rounds. Use before or after filing a PR, when the user says review loop, get it reviewed, or /ds-review-loop.

Installs
579
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/aicodeking/deepseek-stack --skill ds-review-loop
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads ds-review-loop automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Make a change more correct by letting one fresh reviewer push back until you both agree.

Steps

  1. Scope the change. Run git status --short. Do not stash, discard or include unrelated files. Find the base: git fetch origin, then git merge-base HEAD origin/<base branch>. Use one diff command for every round.

  2. Write the goal and out-of-scope list in two sentences. Run the covering checks. Do not send code that fails them.

  3. Pick the reviewer: a stronger model if the harness can reach one (subagent with a model setting, team worker, second CLI), or else a fresh DeepSeek context with no history. Record which one.

  4. Send this brief:

    Review only. Do not edit, commit, push, comment or start subagents.
    Repo: <path>  Base: <sha>  Diff: git diff <sha> [-- <paths>]
    Goal: <goal>  Out of scope: <list>  Checks: <results>
    Read the code around the diff. Find bugs, broken callers and gaps against the goal.
    Flag code the goal does not need. Ignore style unless it hides a bug.
    blocker = goal case is wrong. should = real bug users will hit. nit = anything else.
    Reply: VERDICT: APPROVE or CHANGES, then one line per finding:
    R1 [blocker|should|nit] file:line claim. Fix: suggestion
    
  5. Wait for the reply. Do not edit the scoped files while the review runs. A timeout or error is not approval.

  6. Judge each finding yourself. Agree: make the smallest fix, preferring to delete or narrow code. Disagree: reply with evidence (file:line, test output). Nit or out of scope: decline in one line.

  7. Keep a ledger: id, severity, outcome, evidence. Re-run checks and git diff --shortstat. If the diff grew, cut it back.

  8. For the next round send the brief, the ledger and the changes since the last round. Ask the reviewer to check only open ids and changed code.

Stop when

  • The reviewer returns APPROVE on the current diff, no blocker or should is open, and you have no concern left.
  • A round returns only nits.
  • Four rounds are done, or one item stays disputed after two exchanges. Report both sides in two or three lines each and let the user decide. This is not approval.

Rules

  • One reviewer at a time. Never agree just to end the loop.
  • Do not push during the loop. Push afterward only if the user asked to push or ship.
  • If you update a PR, add: Reviewed with ds-review-loop: <N> rounds, <reviewer>, verdict <verdict>.
  • Report rounds, reviewer, fixed and declined findings with reasons, and diff size before and after.

FAQ

What does the ds-review-loop skill do?

Runs an author and a fresh-context reviewer in a loop on the current change until both agree it is correct, for at most four rounds. Use before or after filing a PR, when the user says review loop, get it reviewed, or /ds-review-loop.

How do I install ds-review-loop?

Run npx skills add https://github.com/aicodeking/deepseek-stack --skill ds-review-loop in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/ds-review-loop/ (personal) or .claude/skills/ds-review-loop/ (project).

Which AI agents can use ds-review-loop?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is ds-review-loop safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains ds-review-loop?

It is published by aicodeking in aicodeking/deepseek-stack. It has 579 recorded installs.

More from aicodeking/deepseek-stack

View all →
aicodeking avatar

ds-verify-loop

aicodeking/deepseek-stack

Run edit, real check, read the actual error, fix the root cause, rerun, until the check passes or the cap is hit. Use when you change code that has tests, a type checker, a build, or a runnable app, or before you claim any fix works. Invoke as /ds-verify-loop.

Testing & QA620 installs
aicodeking avatar

ds-plan-loop

aicodeking/deepseek-stack

Write a numbered plan with an acceptance check for each step, critique it once in a fresh pass, revise it, then execute one step at a time. Use when a task touches more than one file, has unclear scope, or failed before because steps were missed. Invoke as /ds-plan-loop.

aicodeking avatar

ds-mode

aicodeking/deepseek-stack

Always-on working style for DeepSeek agents: restate the task, read before editing, small verified steps, evidence before done, lean context, short reports. Use when starting any coding task, when the user types /ds-mode, or when work starts to drift.

aicodeking avatar

ds-unstick

aicodeking/deepseek-stack

Break out of a repeating failure: name the assumption behind all the failed fixes, test it directly, list three other approaches, pick one, and restart clean if needed. Use when the same error or wrong behavior comes back after two fix attempts, or when you notice you are retrying small variations. Invoke as /ds-unstick.

Testing & QA596 installs
aicodeking avatar

ds-context-reset

aicodeking/deepseek-stack

Keep a PROGRESS.md for long tasks and move to a fresh session or subagent that reads only that file when the context gets long or stale. Use when a task spans many steps or sessions, when the model starts repeating itself, forgets earlier facts, or re-tries old fixes, or when the context window is past about half full. Invoke as /ds-context-reset.

AI & Agents592 installs
aicodeking avatar

ds-principles

aicodeking/deepseek-stack

Compact engineering principles for design, debugging, verification, and delegation, each with a trigger. Use when choosing structure or types, sizing a diff, debugging, writing tests, or when the user types /ds-principles.

Popular code quality & workflow skills

View category →
mattpocock avatar

grill-me

mattpocock/skills

A relentless interview to sharpen a plan or design.

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

mattpocock avatar

handoff

mattpocock/skills

Compact the current conversation into a handoff document for another agent to pick up.

mattpocock avatar

domain-modeling

mattpocock/skills

Build and sharpen a project's domain model. Use when discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR.

mattpocock avatar

codebase-design

mattpocock/skills

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

mattpocock avatar

diagnosing-bugs

mattpocock/skills

Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.