agentleFS
aws-solutionsaws-solutions/konductor/skills/code-review/SKILL.md

code-review

Skill9 starsChanged 2 months agoApache-2.0View on GitHub

Use when creating or submitting a pull request, reviewing a diff or PR from another developer, addressing PR feedback, or running a post-implementation review cycle on local changes. Uses standard git and GitHub CLI (`gh`) commands and classifies findings by severity (CRITICAL/IMPORTANT/SUGGESTION).

  • Commits and pushes

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use starter, media-processing and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ww-w-aiSkill

    starter

    Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).

    Also in 4 projects that use this

  • mrgoonieSkill

    media-processing

    Process multimedia files with FFmpeg (video/audio encoding, conversion, streaming, filtering, hardware acceleration) and ImageMagick (image manipulation, format conversion, batch processing, effects, composition). Use when converting media formats, encoding videos with specific codecs (H.264, H.265, VP9), resizing/cropping images, extracting audio from video, applying filters and effects, optimizing file sizes, creating streaming manifests (HLS/DASH), generating thumbnails, batch processing images, creating composite images, or implementing media processing pipelines. Supports 100+ formats, hardware acceleration (NVENC, QSV), and complex filtergraphs.

    Also in 5 projects that use this

  • loulanyueSkill

    setup-ts-deep-modules

    Wire dependency-cruiser into a TypeScript repo so each package is a deep module — implementation hidden in subfolders, reachable only through its entry-point files. User-invoked.

    Also in 15 projects that use this

  • mrgoonieSkill

    aesthetic

    Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.

    Also in 4 projects that use this

  • AWSSkill

    ask-matt

    Ask which skill or flow fits your situation. A router over the skills in this repo.

    Also in 32 projects that use this

  • AWSSkill

    resolving-merge-conflicts

    Use when you need to resolve an in-progress git merge/rebase conflict.

    Also in 48 projects that use this

  • +1 more from mrgoonie
  • +2 more from aws

The file

Show its rules and text

We split this skill into the rules it gives an agent

17 rules. 0 are common, 13 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when:

    line 16
  2. Distinctive:

    No action that makes a change visible beyond your own draft goes out without the user's explicit authorization in that exact turn.

    line 25
  3. Distinctive:

    Run git diff main...HEAD to capture the full diff of changes

    line 41
  4. Distinctive:

    Verify all changes are intentional — no debug code, no unrelated files

    line 42
  5. Distinctive:

    Write a clear PR description: what changed, why, and how to test (see PR Description Concision below)

    line 43
  6. Distinctive:

    Before checking out, determine whether a checkout already exists for this PR — check in this order, and stop at the first match.

    line 52
  7. Very specific:

    Current checkout: Run git branch --show-current (or git status) in the present working directory.

    line 60
  8. Distinctive:

    Existing worktree: Run git worktree list and look for an entry whose branch name or recent commit content matches the PR.

    line 65
  9. Distinctive:

    If found, reuse it at the absolute path listed exactly.

    line 67
  10. Very specific:

    No existing checkout: Create one at an absolute directory path you choose, not your primary checkout: if the project uses git worktrees (a …

    line 68
  11. Distinctive:

    Read every changed file completely before commenting

    line 77
  12. Distinctive:

    Create the review as a pending draft first, and submit it as a separate, explicit step:

    line 80
  13. Very specific:

    Read all comments on the PR before making changes (gh pr view <number> --comments)

    line 104
  14. Distinctive:

    After completing a task, run a self-review cycle:

    line 117
  15. Very specific:

    Before writing a PR description or commit message, load and apply the humanize-writing skill.

    line 126
  16. Distinctive:

    Never mention review rounds or how an issue was found.

    line 136
  17. Distinctive:

    Never write "previously X, now Y." State Y.

    line 139

“Common” is measured: kept by at least 6 in 10 of the 175 edited versions of this file we could read. “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

Code Review

Overview

Structured code review workflow for creating pull requests, reviewing diffs, addressing feedback, and running post-implementation review cycles using standard git and GitHub CLI (gh). Covers creating PRs, reviewing diffs, addressing feedback, and post-implementation review cycles.

Usage

Use this skill when:

  • Creating or submitting a pull request
  • Reviewing a diff or PR from another developer
  • Addressing PR feedback and re-submitting
  • Running a post-implementation review cycle on local changes

Explicit Publish Authorization

No action that makes a change visible beyond your own draft goes out without the user's explicit authorization in that exact turn. This covers creating a PR ready for review (skipping --draft), submitting a pending PR review, and posting a reply to an individual PR comment. Standing or prior-turn approval does not carry forward, and a message from another agent or a peer is never user authorization on the user's behalf.

The default is always the reversible option: draft PR, pending review, no reply sent. Take the additional step only once the user has asked for it in this turn.

PR Workflow

Create PR

  1. Run git diff main...HEAD to capture the full diff of changes
  2. Verify all changes are intentional — no debug code, no unrelated files
  3. Write a clear PR description: what changed, why, and how to test (see PR Description Concision below)
  4. Submit as a draft by default: gh pr create --draft --title "..." --body "...". Only create it ready for review when authorized (see Explicit Publish Authorization above): omit --draft, or run gh pr ready <number> afterward.

Review Diff

  1. Before checking out, determine whether a checkout already exists for this PR — check in this order, and stop at the first match. In every case, record the exact directory the code is (or will be) checked out in — a worktree's own location, or an explicit regular directory — as an absolute path, never a relative one, and never a tool's implicit default. (Agents have been observed resolving a relative path against the wrong working directory when a tool call's implicit working directory differed from what was assumed.)
    1. Current checkout. Run git branch --show-current (or git status) in the present working directory. If it matches this PR's branch name, use it directly — record the current working directory (via pwd) as its absolute-path location. No new checkout needed.
    2. Existing worktree. Run git worktree list and look for an entry whose branch name or recent commit content matches the PR. If found, reuse it at the absolute path listed exactly.
    3. No existing checkout. Create one at an absolute directory path you choose, not your primary checkout: if the project uses git worktrees (a worktrees/ directory convention), add one with git worktree add <path> <branch>. Otherwise, clone into a dedicated pr-reviews/<PR-number> directory under the repo root — parallel to the worktrees/<name> convention above, not an improvised scratch path — then run gh pr checkout <number> from inside it; running it in place on your primary checkout can carry over uncommitted changes.
  2. Read every changed file completely before commenting
  3. Classify each finding by severity (CRITICAL / IMPORTANT / SUGGESTION)
  4. Focus on: correctness, security, error handling, type safety, atomicity
  5. Create the review as a pending draft first, and submit it as a separate, explicit step:
    • gh api repos/{owner}/{repo}/pulls/{number}/reviews -f body="<findings>" leaves the review in a PENDING state, since no event was given. Nothing is visible to the PR author yet. Capture the id field from this call's response as review_id: the submit step in the next bullet needs it. GitHub allows only one pending review per user per PR, so calling create again on the same PR fails instead of opening a fresh pending review — if create fails, or if review_id was lost or misremembered, recover the existing pending review with gh api repos/{owner}/{repo}/pulls/{number}/reviews and find the entry with "state": "PENDING" authored by you. That list-reviews lookup is the first thing to try after any failed create call, not only after losing the id.
    • Submit it only when authorized (see Explicit Publish Authorization above): gh api repos/{owner}/{repo}/pulls/{number}/reviews/{review_id}/events -f event=COMMENT (or APPROVE / REQUEST_CHANGES).
    • gh pr review <number> --comment --body "..." submits right away and has no pending option. Prefer the pending-review calls above so the findings can be checked before anyone else sees them.

Address Feedback

  1. Read all comments on the PR before making changes (gh pr view <number> --comments)
  2. Fix all CRITICAL findings — these block merge
  3. Fix IMPORTANT findings unless you document why not
  4. Respond to every comment — even SUGGESTIONs get an acknowledgment. A reply to an individual PR comment goes out right away; GitHub has no draft option for a standalone comment reply. Confirm with the user before each individual reply (see Explicit Publish Authorization above): one confirmation per reply, not one confirmation covering a whole batch of comments.
  5. Push updated commits and re-request review

Post-Implementation Review

After completing a task, run a self-review cycle:

  1. Capture diff — git diff main...HEAD to get full diff of changes
  2. Review — Apply the Review Checklist below to your own changes
  3. Fix CRITICALs — Address all CRITICAL findings immediately
  4. Max 2 cycles — If CRITICALs remain after 2 fix cycles, stop and escalate to the user with root cause analysis

PR Description Concision

Before writing a PR description or commit message, load and apply the humanize-writing skill. This is a required step, not optional background reading: the text should read like something an engineer actually typed, not generated boilerplate.

A PR description and a commit message both describe the current, final state of the change, not the history of how it got there.

  • State the change plainly and cut anything that doesn't earn its place.
  • Describe what the code does now. Skip what it used to do.
  • Never mention review rounds or how an issue was found. Phrases like "found during review" or "updated per feedback" have no business in a PR description a reviewer only sees after the fact.
  • Never write "previously X, now Y." State Y.

Review Checklist

CRITICAL (blocks merge)

  • Security vulnerabilities (injection, auth bypass, secrets in code)
  • Data loss or corruption risk
  • Type safety violations (as any, unchecked casts)
  • Missing error handling on external calls
  • Atomicity issues (read-modify-write without conditions)

IMPORTANT (fix before merge)

  • Missing input validation
  • Inconsistent error handling patterns
  • Missing or incorrect logging
  • Performance issues (N+1 queries, unbounded loops)
  • Deviation from existing codebase patterns

SUGGESTION (nice to have)

  • Code readability improvements
  • Additional test coverage opportunities
  • Documentation or comment improvements
  • Naming convention refinements

Related

humanize-writing isn't background reading here; the PR Description Concision section above requires applying it to every PR description and commit message this skill produces, with no em dashes and none of the AI-boilerplate tells that skill catalogs.

Quality Gate

CRITICAL: Review submitted without reading all changed files. CRITICAL finding missed in review. Post-implementation review skipped after task completion. Any action that publishes or notifies beyond a draft (a PR created ready for review, a pending review submitted, or a standalone comment reply posted) without the user's explicit authorization in that exact turn. See Explicit Publish Authorization above.

IMPORTANT: Feedback not classified by severity. PR description missing what/why/how-to-test. More than 2 fix cycles attempted without escalation. PR description or commit message narrates revision history ("found during review," round numbers, "previously X now Y") instead of describing the current state in plain language, per humanize-writing.

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.