ask-code-review
Skill1 starsChanged 4 months agoMITView on GitHub
Code Review: Use when a meaningful diff is ready and fresh eyes should catch requirement gaps, regressions, or risky design before handoff. Common triggers: review, nakijken, pull request, code review, fresh eyes, start reviewing, review deze wijziging, check de wijziging, review changes, second look, bekijk de diff, controleer de code, code check, diff review, PR review.
In this repository35 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- ask-agent-workflowsSkill
- ask-debuggingSkill
- ask-deep-researchSkill
- ask-design-reviewSkill
- ask-designSkill
- ask-developSkill
- ask-gh-inboxSkill
- ask-improveSkill
- ask-intakeSkill
- ask-observabilitySkill
- ask-researchSkill
- ask-session-reviewSkill
- ask-specSkill
- ask-text-writingSkill
- ask-verificationSkill
- ask-write-skillSkill
- ask-agent-workflowsSkill
- ask-code-reviewSkill
- ask-debuggingSkill
- ask-deep-researchSkill
- ask-design-reviewSkill
- ask-designSkill
- ask-developSkill
- ask-gh-inboxSkill
- ask-improveSkill
- ask-intakeSkill
- ask-observabilitySkill
- ask-researchSkill
- ask-session-reviewSkill
- ask-specSkill
- ask-text-writingSkill
- ask-verificationSkill
- ask-write-skillSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Keep scope clear: code-review checks behavior, requirements, regressions, and design risk.
- Very specific: line 16
Use this compact path only when the workflow reports review=combined:
- Distinctive: line 19
Check the touched callers, local conventions, required intent comments, and the smallest meaningful regression proof.
- Very specific: line 27
When review is fully complete, include review-generation, review-scope: REVIEW, review-reference, review-completed-at, and review-result: …
- Distinctive: line 46
Check these explicitly on the diff when it touches them:
- Very specific: line 63
If review reveals reusable workflow gap or skill usage miss, run session-review to file improvement.
- Distinctive: line 64
Prefer updating an existing skill or router rule when that would prevent same miss next time.
- Very specific: line 65
If not fixing now, create or reuse follow-up issue via session-review.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ASK Code Review
Review for correctness, requirements, and risk first. Enforce coding-standards.md hard rules, including its scoped .NET/C# section when applicable, as correctness — not style.
Keep scope clear: code-review checks behavior, requirements, regressions, and design risk. The final verification pass owns proportional code-smell scanning and evidence-based test-gap reporting; escalate deeper repository-wide smell analysis to improve.
Run final review after validation only when the workflow includes a REVIEW gate. small workflows finish after targeted validation with no separate review; normal workflows use one lightweight combined pass covering correctness, regressions, local conventions, and a bounded counterexample/security sanity check. spec-required, significant, and release-sensitive workflows use a separate review; only significant and release-sensitive workflows also require an independent audit.
Lightweight combined review
Use this compact path only when the workflow reports review=combined:
- Confirm the diff solves the request and does not change unrelated behavior.
- Check the touched callers, local conventions, required intent comments, and the smallest meaningful regression proof.
- Try one or two bounded counterexamples, including unsafe input, stale state, or an error path when relevant.
- Escalate to separate audit/review handling when you find security, compatibility, migration, architecture, ownership, routing, release, or other cross-cutting risk.
The combined pass still ends with the normal review evidence contract. It does not replace required validation or any AUDIT gate. Do not start it until the current diff has passed validation, including applicable integration/server checks.
Completion handoff
When review is fully complete, include review-generation, review-scope: REVIEW, review-reference, review-completed-at, and review-result: PASS metadata, followed by terminal ASK_REVIEW_COMPLETE. Generation must match current session state; stale evidence must not clear newer review debt. Do not emit the marker for blocked, partial, or still-actionable reviews.
For delegated review, return ASK_WORKFLOW_PASS phase=REVIEW only when requirements, regressions, local conventions, and relevant callers were checked. Use ASK_WORKFLOW_FINDINGS phase=REVIEW for concrete issues, ASK_WORKFLOW_BLOCKED phase=REVIEW when required evidence is unavailable, and ASK_WORKFLOW_FAILED phase=REVIEW when the review could not execute. A review is not an audit: do not claim independent counterexample analysis unless that is the assigned audit role.
Review checklist
- Does the diff solve the asked problem?
- Follows
coding-standards.md? — inspect every changed function, method, callback, closure, and handler; verify its immediately preceding intent comment, then run the repository's source-comment check when available. Missing comments are blocking findings. Also check DRY, meaningful names, explicit data shapes, language-specific rules, and fail-fast error handling. - Hard style gate: Was local code,
.editorconfig, and tool configuration inspected before formatting? Was formatting scoped by language/file type, valid local style preserved, and a representative example checked? For C#, apply ASK's 240-character default unless.editorconfigexplicitly overrides it; reject unnecessary wrapping of fitting signatures/calls, lost newline braces, or missing comments at meaningful workflow boundaries. Check the complete tree for unintended generated output. Treat any failure as a blocking finding. - Did it change anything outside scope?
- Is the proof proportional to the risk?
- Are docs or follow-on changes needed?
Finding scope
Before treating a behavior as an actionable finding, compare the cited lines with the exact review base. Every finding must identify a changed hunk or explain the direct behavior introduced by a changed hunk. Nearby unchanged lines are context; pre-existing behavior is not a regression just because the diff made it visible. If the base diff or causal link cannot be established, report the review as blocked or limited instead of presenting an unsupported regression. Keep unrelated pre-existing behavior classified as context, not as a finding against this change.
Additional axes
Check these explicitly on the diff when it touches them:
- Security: Is input validated and untrusted external data rejected at boundaries? Are secrets kept out of code, logs, and revision history? Is authorization checked where access is gated? Are SQL queries parameterized and outputs encoded?
- Performance: Does the diff introduce N+1 or unbounded query/fetch patterns, unbounded loops, or sync-over-async in hot paths? Deep smell-scanning of these patterns is owned by
verification; here, judge only what the diff itself ships.
Structural remedies
When you flag a structural problem, name the move, not just the problem: "replace a chain of conditionals with a typed dispatcher," "delete a pass-through wrapper," "make the type boundary explicit," "separate orchestration from business logic." Prefer the remedy that removes moving pieces over one that spreads the same complexity elsewhere.
Apply proportionally
- Small workflow: no separate review; complete targeted validation and stop.
- Normal workflow: one lightweight combined review after validation.
- Escalate to a separate review or audit only when the combined pass finds concrete elevated or cross-cutting risk.
Improvement hook
- If review reveals reusable workflow gap or skill usage miss, run
session-reviewto file improvement. - Prefer updating an existing skill or router rule when that would prevent same miss next time.
- If not fixing now, create or reuse follow-up issue via
session-review.
Good review comments
- Point to the risk
- Explain why it matters
- Suggest the next move
Use with
developwhen the coding pass is done and the diff needs a second lookverificationbefore review to establish the technical proof that final review consumessession-reviewwhen review exposes a skill usage gap or workflow miss worth trackingwrite-skillwhen improvement needs a new or revised skill
Avoid
- Nit-only reviews on otherwise risky code
- Blocking on preference fights
- Treating "looks clean" as evidence
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

