mihai-code-review
Review a PR, branch, or diff the way Mihai would: mechanical style/test sweeps first, then precedent diffing, then an adversarial correctness hunt.
Skill by MihaiOnSoftware
Chalk Labs
Need help deploying mihai-code-review?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/mihaionsoftware-mihai-code-review
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/mihai-code-review
What's inside
- Skill name
mihai-code-review- Description
- Review a PR, branch, or diff the way Mihai would: mechanical style/test sweeps first, then precedent diffing, then an adversarial correctness hunt. Use when asked to 'review like Mihai', 'mihai review' a PR/diff, or to apply the Mihai reviewer profile inside an adversarial review loop.
- License
- MIT
- Metadata
- category: review
- Instructions
- 69 lines in SKILL.md · view on GitHub
Files (4)
- SKILL.md
- reviewer-profile.md · references/
- subagent-prompt.md · references/
- sweeps.md · references/
SKILL.md (first lines)
# Mihai Code Review Review code the way Mihai reviews it. The protocol exists because a plain adversarial "find the mistake" framing biases reviewers toward correctness defects and silently drops the other half of Mihai's feedback: mechanical style sweeps, test-quality checks, comments-that-should-be-code, and precedent alignment. The fix is structural, not motivational — **the sweeps run first and produce a mandatory log; the adversarial hunt runs last.** The full reviewer profile (tone, severity framework, categories, what he ignores) is at [references/reviewer-profile.md](references/reviewer-profile.md). Read it before reviewing. The sweep checklists are at [references/sweeps.md](references/sweeps.md). ## When to Use This - The user asks to review a PR/branch/diff "like Mihai" or invokes the reviewer profile - An adversarial-review-loop iteration targets code changes and should carry Mihai's review dimensions, not just correctness - You need a second-opinion code review whose output should look like a real teammate's review (severity labels, nits ceded to the author, precedent links) Not for reviewing design docs or plans — use `adversarial-review` / `adversarial-review-loop` directly for those. ## Running It Two modes: 1. **You are the fresh reviewer** (dispatched into a clean context, or the user handed you a diff directly): follow the protocol below yourself. 2. **You have prior context on the work** (you wrote it, or your session reasoned about it): do NOT review it yourself. Spawn a fresh-context subagent with the prompt template at [references/subagent-prompt.md](references/subagent-prompt.md) — same rule as `adversarial-review`, and for the same reason: a reviewer anchored on the author's reasoning misses what the author missed. If your harness has a purpose-built reviewer agent, use it. Either way, the reviewer needs: the diff (at the commit under review, not a drifted working tree), the PR description, and read access to the repo for precedent lookups and coverage checks. ## Protocol — three passes, in this order The order is load-bearing. Sweeps are cheap and bounded; the hunt is open-ended. Run the open-ended pass last so it cannot consume the budget of the bounded ones. ### Pass 1 — Mechanical sweeps (bounded, checklist-driven) Run every checklist in [references/sweeps.md](references/sweeps.md): - **Per-function sweep** over every new or moved function: guard-clause shape, type-impossible checks, branch test coverage, complex inline expressions, helpers-wanting-their-own-file, duplicated literals. - **Per-test-file sweep** over every test file touched: `should … when …` naming, vacuous assertions, can-this-spec's-code-fail-it, low-value tests, superseded integration specs in extraction PRs. - **Comment sweep** over every comment in the diff: function-trying-to-manifest, repeats-the-code, stale-prone references, better-as-test, better-as-commit-message. - **Leftovers/metadata sweep**: orphaned config/deps/mocks, changelog honesty, migration filename accuracy, scope hygiene (unrelated files). **Output requirement: a sweep log.** Before writing any review comment, record every checklist item with either findings or `clean`. The log is what prevents this pass from being skipped — an empty-findings sweep still produces log lines. Keep the log; it goes in your working notes, not the final review. ### Pass 2 — Precedent diff (bounded) For anything the PR introduces that the codebase already has a pattern for — config, producers/consumers, UI components, schema fields, test setups — find the **nearest sibling implementation** (`git grep` at the review commit) and diff the new code against it point by point: file/module location, shape, naming, props/patterns of sibling components, env vars, logging, test utilities. Link each divergence to the precedent's exact file/line. Acknowledge when the codebase itself is inconsistent; don't die on that hill. ### Pass 3 — Adversarial hunt (open-ended) Now hunt correctness defects with the adversarial framing: assume there is a defect in the diff and find it. Focus where Mihai's blockers live: missing or insubstantial tests for new behavior, spec/runtime/docs disagreement, correctness and security holes, cross-cutting data assumptions (org boundaries, multi-location, soft-delete semantics), subtle semantic changes smuggled into refactors. ### Compose the review Merge all three passes, then apply the profile: - Severity-label every finding (`nit:` / `minor:` / `major:` / `question:` / `discussion:`) per the profile's framework. Block **only** on the four blocker categories. - Write in Mihai's voice: 1–3 sentences per comment, question-form, hedged where uncertain, nits explicitly ceded to the author, precedent linked. - One- or two-line review summary stating the verdict and the theme of the comments. - Verdict: APPROVE / APPROVE-WITH-COMMENTS / CHANGES_REQUESTED. ## Output The final review contains: verdict, summary body, line comments grouped by file. Do not include the sweep log in the review itself — but if the dispatching agent asks for it (e.g. a validation harness), return it as an appendix. ## Anti-Patterns - **Running the hunt first.** It eats the budget and the sweeps degrade into an afterthought — exactly the failure this skill exists to prevent. - **Skipping sweep items that "obviously don't apply".** The log forces the decision to be explicit; `clean` is a valid answer, silence is not. - **Softening blockers.** A new code path with no meaningful test is CHANGES_REQUESTED, not a `minor:` — see the profile's blocker list. - **Inflating severity.** Style and structure findings are never blockers on their own, no matter how many the sweeps produce. - **Reviewing with inherited context.** If you touched the work, spawn the fresh reviewer (mode 2). No exceptions for "small" diffs. - **Padding.** If a pass finds nothing, the review gets shorter, not noisier. Mihai writes "Not even a nit again lol" when it's clean.
From MihaiOnSoftware/.ai, MIT.
More from MihaiOnSoftware/.ai
- 0.592score
shape-review-comments
MihaiOnSoftware
Shapes raw review findings into postable file:line comments written in Mihai's voice.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
review-pipeline
MihaiOnSoftware
Parallel code review pipeline: run adversarial-review-loop and mihai-code-review simultaneously, merge their findings, shape into postable comments, and…
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
monitor-gh-pr
MihaiOnSoftware
Monitor a GitHub PR for CI failures, CI success, and new comments (including inline review comments).
SkillAFreshness: A★ 1Claude Code +9 - 0.502score
create-implementation-plan
MihaiOnSoftware
Break a large task into incremental slices using story splitting patterns.
SkillCFreshness: C★ 1Claude Code +9 - 0.502score
adversarial-review-loop
MihaiOnSoftware
Run fresh adversarial subagent, incorporate findings, repeat until findings are weak/repeated/invalid.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
adversarial-review
MihaiOnSoftware
Spawn a fresh-context subagent that is told a mistake exists in your work and tasked with finding it.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
solve-this-problem
MihaiOnSoftware
End-to-end: problem → design → plan → TDD slices.
SkillCFreshness: C★ 1Claude Code +9 - 0.496score
tdd-slice
MihaiOnSoftware
Implement a complete TDD slice with multiple micro-tdd cycles and validation
SkillCFreshness: C★ 1Claude Code +9 - 0.495score
explore-and-design
MihaiOnSoftware
Investigate, scope, and shape a solution before breaking it into implementation slices.
SkillCFreshness: C★ 1Claude Code +9 - 0.493score
write-validation-report
MihaiOnSoftware
Write a validation report with pass/fail verdict
SkillCFreshness: C★ 1Claude Code +9 - 0.493score
write-agent-report
MihaiOnSoftware
Write an agent report with proper naming and location
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
commit
MihaiOnSoftware
Create a commit following message rules and writing style guidelines
SkillCFreshness: C★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 14, 2026 (16 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/MihaiOnSoftware/.ai
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from MihaiOnSoftware
- 0.592score
review-pipeline
MihaiOnSoftware
Parallel code review pipeline: run adversarial-review-loop and mihai-code-review simultaneously, merge their findings, shape into postable comments, and…
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
shape-review-comments
MihaiOnSoftware
Shapes raw review findings into postable file:line comments written in Mihai's voice.
SkillAFreshness: A★ 1Claude Code +9 - 0.589score
monitor-gh-pr
MihaiOnSoftware
Monitor a GitHub PR for CI failures, CI success, and new comments (including inline review comments).
SkillAFreshness: A★ 1Claude Code +9 - 0.502score
adversarial-review-loop
MihaiOnSoftware
Run fresh adversarial subagent, incorporate findings, repeat until findings are weak/repeated/invalid.
SkillCFreshness: C★ 1Claude Code +9 - 0.502score
create-implementation-plan
MihaiOnSoftware
Break a large task into incremental slices using story splitting patterns.
SkillCFreshness: C★ 1Claude Code +9 - 0.499score
adversarial-review
MihaiOnSoftware
Spawn a fresh-context subagent that is told a mistake exists in your work and tasked with finding it.
SkillCFreshness: C★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get mihai-code-review running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
mihai-code-review skill. Agent Mart. https://agentmart.dev/skills/mihaionsoftware-mihai-code-review (last updated 2026-10-24)