glab-code-review
Skill0 starsChanged 57 days agoMITView on GitHub
Use when reviewing your local git diff before opening a PR, requesting a git-range code review before merge, receiving and acting on review feedback with verify-first discipline, or reviewing a GitLab merge request via glab with draft inline notes.
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/comments.mdcCursor rule
- .cursor/rules/commit-messages.mdcCursor rule
- .cursor/rules/git-workflow.mdcCursor rule
- .cursor/rules/manage-stack.mdcCursor rule
- .cursor/rules/no-worktrees.mdcCursor rule
- manage-stackSkill
- convert-as-skillSkill
- create-agentSkill
- create-agents-mdSkill
- create-commandSkill
- create-hookSkill
- create-ruleSkill
- create-skillSkill
- super-architectureSkill
- super-cachingSkill
- super-nodejsSkill
- super-protobufSkill
- super-tech-blueprintSkill
- atomic-semantic-commitSkill
- create-bruno-collectionSkill
- create-jira-storySkill
- write-mr-descriptionSkill
- output-saversSkill
- polyglot-copywriterSkill
- super-designSkill
- super-elixirSkill
- super-noslopSkill
- super-refactorSkill
- super-tddSkill
- super-verifySkill
- one-next-actionSkill
- parking-lotSkill
- super-challenge-meSkill
- super-codebase-learnerSkill
- writing-plansSkill
- find-skillsSkill
- handoffSkill
- standupSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
When: before opening a PR.
- Distinctive: line 42
When: after each subagent task, major features, before merge — see references/requesting-review.md.
- Distinctive: line 48
Verify before implementing.
- Distinctive: line 52
If anything is unclear, stop and clarify all items before partial fixes.
- Very specific: line 69
Read beyond hunks; optional codebase-memory.
- Distinctive: line 80
Only after user says publish / publish drafts:
- Very specific: line 88
Never set reviewer_state=approved from automation.
- Distinctive: line 100
If ambiguous, ask: preview only, draft selected findings, or publish existing drafts.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
glab-code-review
Four modes. Pick one from the user goal — do not mix GitLab draft posting with local review unless they ask.
| Goal | Mode | Detail |
| Review uncommitted / staged changes before a PR | Diff | references/review-diff.md |
| Review your commits before merge / next task | Request | references/requesting-review.md, template references/code-reviewer.md |
| Implement feedback from a human or external reviewer | Receive | references/receiving-review.md |
| Review someone else's GitLab MR (glab, draft notes) | GitLab MR | Below + references/draft-review-flow.md |
Peer skills for GitLab MR mode: super-noslop (alias: noslop), polyglot-copywriter (glab-code-review use case).
Arguments ($ARGUMENTS): MR URL, MR number for current repo, or empty (current branch MR) — GitLab MR mode only.
Diff review (pre-PR)
Self-review the working tree: full diff read, edge cases, tests for behavior changes, scope creep, findings as Must fix / Should fix / Nit. Full procedure: references/review-diff.md.
When: before opening a PR; after a large local edit without dispatching a reviewer. For committed range review, use Request mode.
Requesting review
Review early; give the reviewer git range + requirements, not your session history.
- Resolve SHAs:
BASE_SHA(e.g.origin/mainor task start),HEAD_SHA(git rev-parse HEAD). - Dispatch a read-only reviewer using references/code-reviewer.md (
{DESCRIPTION},{PLAN_OR_REQUIREMENTS}, SHAs). - Triage: fix Critical immediately, Important before proceeding, Minor later; push back with reasoning when wrong.
When: after each subagent task, major features, before merge — see references/requesting-review.md.
Receiving review
Verify before implementing. No performative agreement; technical acknowledgment or reasoned pushback.
Pattern: read fully → understand (restate or ask) → verify against codebase → evaluate → respond → implement one item at a time with tests.
If anything is unclear, stop and clarify all items before partial fixes. Full rules, YAGNI checks, GitHub thread replies: references/receiving-review.md.
GitLab MR review (glab)
Three phases: preview (read-only) → draft to MR (unpublished GitLab draft notes) → publish (explicit only).
Default write path: GitLab draft notes (draft_notes API / bundled scripts). Author sees nothing until publish.
Comment shape: inline findings with code suggestions on diff lines — not a wall-of-text MR summary.
Operator reference: references/gitlab-mechanics.md, references/draft-review-flow.md, references/review-dimensions.md, references/comment-body-format.md.
Phase 1: Deep read-only preview
- Harvest context (
context-harvesteror docs), playbook checklist, thenglab mr view/glab mr diff. - Read beyond hunks; optional
codebase-memory; run focused tests on source branch when possible. - Apply references/review-dimensions.md (compatibility → security → correctness → tests → perf → principles → noslop → hygiene). Optional subagents:
security-reviewer,tdd-runner,reviewer. - Prose pipeline for user-facing comment bodies: draft → super-noslop (after) → polyglot-copywriter (
glab-code-review,register: santai, simple-prose.md). - Chat table of findings (
file:line, dimension, impact, short inline draft). Report CI, verdict, draft-ready count. Stop and wait for which numbers to draft, fix locally, or skip.
Phase 2: Draft to MR (explicit confirmation)
Draft only — never publish. eval "$(scripts/mr-context.sh <repo> <number>)" then prefer scripts/post-draft-inline-comment.sh; MR-wide items → scripts/post-draft-note.sh; list with scripts/list-draft-notes.sh. Tell user drafts are hidden until GitLab publish or "publish drafts". Never #<number> in GitLab prose.
Phase 3: Publish drafts (explicit confirmation)
Only after user says publish / publish drafts:
export REVIEWER_STATE=requested_changes # or reviewed for comment-only
export SUMMARY_FILE=
scripts/publish-draft-notes.sh <repo> "$PROJECT_ID" <number>Never set reviewer_state=approved from automation. Immediate publish via scripts/post-inline-comment.sh only if user explicitly skips drafts.
GitLab quick routing
| User says | Phase |
| "review MR", "review !123" | 1 |
| "draft 1,3", "post as draft" | 2 |
| "publish drafts", "submit review" | 3 |
| "fix finding 2 locally" | 2 — local fix |
| "review and draft all" | 1 then 2 |
If ambiguous, ask: preview only, draft selected findings, or publish existing drafts.
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.

