agentleFS
yimwooyimwoo/hotl-plugin/skills/code-review/SKILL.md

code-review

Skill27 starsChanged 9 months agoMITView on GitHub

Use after completing implementation steps and before merging — reviews against plan and HOTL contracts.

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

22 rules. 0 are common, 19 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 174 edited versions we read keep these.

  • 19

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If one canonical match: use it

    line 32
  2. Distinctive:

    If multiple canonical matches: prefer the most recently modified canonical workflow, unless the user named one

    line 33
  3. Very specific:

    If no canonical matches: glob for legacy hotl-workflow-*.md in project root

    line 34
  4. Distinctive:

    If one legacy match: use it

    line 35
  5. Distinctive:

    If multiple legacy matches: prefer the most recently modified legacy workflow, unless the user named one

    line 36
  6. Distinctive:

    If no matches: proceed without workflow context

    line 37
  7. Distinctive:

    Run inline review in the current session using the same output contract.

    line 59
  8. Very specific:

    If the user asks to fix the findings ("fix them", "address these", "implement the fixes"): then invoke receiving-code-review

    line 66
  9. Very specific:

    When the platform emits platform-native annotations for localized findings (e.g., ::code-comment in Codex, inline GitHub review comments), …

    line 90
  10. Distinctive:

    When subagents are not available, run the review inline using the same output contract.

    line 94
  11. Distinctive:

    All steps in the workflow file completed

    line 99
  12. Distinctive:

    No unplanned scope added (YAGNI)

    line 101
  13. Distinctive:

    When no workflow: state "Plan alignment: skipped (no workflow provided)"

    line 103
  14. Distinctive:

    No code duplication introduced (DRY)

    line 107
  15. Distinctive:

    Check for injection, auth gaps, race conditions, secret leakage, unsafe patterns.

    line 113
  16. Distinctive:

    If the checklist file is not available, continue with best-effort review.

    line 114
  17. Distinctive:

    Check for N+1 queries, unbounded memory, off-by-one, null handling, swallowed exceptions.

    line 118
  18. Distinctive:

    No sensitive data (secrets, PII) in code, logs, or comments

    line 128
  19. Distinctive:

    Every finding must include:

    line 133
  20. Distinctive:

    BLOCK: Must fix before merge (failing tests, security issues, missing gates on high-risk steps)

    line 145
  21. Distinctive:

    WARN: Should fix soon (code quality, missing docs for public APIs)

    line 146
  22. Distinctive:

    NOTE: Consider in future (style, minor improvements)

    line 147

“Common” is measured: kept by at least 6 in 10 of the 174 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

HOTL Code Review

User-facing entry point for getting a code review. Dispatches the full code-reviewer agent by default; falls back to inline review when subagents aren't available.

Process

1. Gather Context

Resolve base branch (fallback ladder — use the first that succeeds):

  1. PR base branch: gh pr view --json baseRefName
  2. Repo default branch: git symbolic-ref refs/remotes/origin/HEAD
  3. main
  4. master

Resolve review scope:

  • Feature branch: committed branch diff against base (base...HEAD), plus staged and unstaged local changes when present
  • On base branch with staged changes: staged diff
  • On base branch with unstaged changes: working tree diff
  • On clean base branch: HEAD~1..HEAD
  • Ambiguous (detached HEAD, no commits beyond base, no local changes): ask the user

Detect workflow file:

  • First, glob for canonical workflows in docs/plans/*-workflow.md
  • If one canonical match: use it
  • If multiple canonical matches: prefer the most recently modified canonical workflow, unless the user named one
  • If no canonical matches: glob for legacy hotl-workflow-*.md in project root
  • If one legacy match: use it
  • If multiple legacy matches: prefer the most recently modified legacy workflow, unless the user named one
  • If no matches: proceed without workflow context

Extract contracts from workflow frontmatter if available (intent, constraints, success_criteria, risk_level).

Gather verification evidence:

  • Primary (deterministic): .hotl/state/*.json and .hotl/reports/*.md — most recent artifacts if present
  • Best-effort: recent test/lint output if discoverable; if unavailable, report "not available"

2. Dispatch Review

If subagents are available (Claude Code, Codex):

Dispatch the code-reviewer role as a subagent via the Agent tool. Use the structured dispatch template from requesting-code-review:

  • Review type: direct
  • Git range: resolved scope from step 1
  • Workflow and contracts: if available
  • Verification evidence: if available

If subagents are not available (Cline, weaker runtimes):

Run inline review in the current session using the same output contract. See "Inline Fallback" below.

3. Return Findings

  • Present the review output (findings + verdict) to the user
  • Do NOT automatically invoke receiving-code-review
  • Do NOT automatically implement fixes
  • If the user asks to fix the findings ("fix them", "address these", "implement the fixes"): then invoke receiving-code-review

Verdict Model

Direct reviews use the final-review verdict model:

  • READY — safe to merge
  • READY WITH WARNINGS — safe to merge but warnings should be addressed soon
  • NOT READY — blocking issues must be resolved before merge

Review Lifecycle

code-review              = user-facing entry point for getting a review
requesting-code-review   = internal executor/orchestration entry point
receiving-code-review    = follow-up handler for acting on findings

Output Contract

Both dispatched and inline reviews must conform to docs/contracts/code-review-output.md. Every review must contain these 6 sections in order: Scope (with verification evidence), Reviewed Dimensions, Findings, What Was Not Covered, Residual Risks, Verdict.

Platform-Native Annotation Dedup

When the platform emits platform-native annotations for localized findings (e.g., ::code-comment in Codex, inline GitHub review comments), do not restate those findings verbatim in the Findings section. Instead, use the grouped one-liner format defined in the output contract.

Inline Fallback

When subagents are not available, run the review inline using the same output contract. The inline review must produce identical 6-section structure — not a weaker format.

Dimensions

Plan alignment (when workflow provided):

  • All steps in the workflow file completed
  • success_criteria from frontmatter met
  • No unplanned scope added (YAGNI)

When no workflow: state "Plan alignment: skipped (no workflow provided)"

Code quality and design:

  • Tests exist and pass for all new behavior
  • No code duplication introduced (DRY)
  • Error handling at system boundaries only
  • Reference docs/checklists/architecture-and-design.md for SOLID and architecture smell heuristics. If the checklist file is not available, continue with best-effort review.

Security and reliability:

  • Reference docs/checklists/security-and-reliability.md for expanded security heuristics.
  • Check for injection, auth gaps, race conditions, secret leakage, unsafe patterns.
  • If the checklist file is not available, continue with best-effort review.

Performance and boundary conditions:

  • Reference docs/checklists/performance-and-boundary-conditions.md for performance and boundary condition heuristics.
  • Check for N+1 queries, unbounded memory, off-by-one, null handling, swallowed exceptions.
  • If the checklist file is not available, continue with best-effort review.

Removal and simplification:

  • Reference docs/checklists/removal-and-simplification.md for dead code and simplification heuristics.
  • Flag unused exports, dead branches, feature-flagged-off code. Classify as safe-delete-now or defer-with-plan.
  • If the checklist file is not available, continue with best-effort review.

HOTL governance:

  • risk_level: high steps had human gate approval
  • No sensitive data (secrets, PII) in code, logs, or comments
  • Security-sensitive paths (auth, encryption) have human review documented

Findings Format

Every finding must include:

- [SEVERITY]: file/path:line — description
  Why: [why this matters]
  Fix: [expected remediation direction]

For localized issues: file:line is required. For scope-level findings: provide the narrowest evidence available.

Severity Levels

  • BLOCK: Must fix before merge (failing tests, security issues, missing gates on high-risk steps)
  • WARN: Should fix soon (code quality, missing docs for public APIs)
  • NOTE: Consider in future (style, minor improvements)

BLOCK issues must be resolved before claiming done.

Clean Review

Per the output contract, when a dimension has no findings it must still state what was checked, what was not covered, and residual risks. Additionally, the review must always include sections 4 (What Was Not Covered) and 5 (Residual Risks) even when no individual dimension has findings.

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.