agentleFS
pahlevikunpahlevikun/levistack/skills/delivery/glab-code-review/SKILL.md

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.

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
  1. Distinctive:

    When: before opening a PR.

    line 30
  2. Distinctive:

    When: after each subagent task, major features, before merge — see references/requesting-review.md.

    line 42
  3. Distinctive:

    Verify before implementing.

    line 48
  4. Distinctive:

    If anything is unclear, stop and clarify all items before partial fixes.

    line 52
  5. Very specific:

    Read beyond hunks; optional codebase-memory.

    line 69
  6. Distinctive:

    Only after user says publish / publish drafts:

    line 80
  7. Very specific:

    Never set reviewer_state=approved from automation.

    line 88
  8. Distinctive:

    If ambiguous, ask: preview only, draft selected findings, or publish existing drafts.

    line 100

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

glab-code-review

Four modes. Pick one from the user goal — do not mix GitLab draft posting with local review unless they ask.

GoalModeDetail
Review uncommitted / staged changes before a PRDiffreferences/review-diff.md
Review your commits before merge / next taskRequestreferences/requesting-review.md, template references/code-reviewer.md
Implement feedback from a human or external reviewerReceivereferences/receiving-review.md
Review someone else's GitLab MR (glab, draft notes)GitLab MRBelow + 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.

  1. Resolve SHAs: BASE_SHA (e.g. origin/main or task start), HEAD_SHA (git rev-parse HEAD).
  2. Dispatch a read-only reviewer using references/code-reviewer.md ({DESCRIPTION}, {PLAN_OR_REQUIREMENTS}, SHAs).
  3. 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

  1. Harvest context (context-harvester or docs), playbook checklist, then glab mr view / glab mr diff.
  2. Read beyond hunks; optional codebase-memory; run focused tests on source branch when possible.
  3. Apply references/review-dimensions.md (compatibility → security → correctness → tests → perf → principles → noslop → hygiene). Optional subagents: security-reviewer, tdd-runner, reviewer.
  4. Prose pipeline for user-facing comment bodies: draft → super-noslop (after) → polyglot-copywriter (glab-code-review, register: santai, simple-prose.md).
  5. 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 saysPhase
"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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.