agentleFS
FTShare-LabFTShare-Lab/agent-claim-network/.agents/skills/code-review/SKILL.md

code-review

Skill44 starsChanged 3 months agoApache-2.0View on GitHub

Multi-pass code review. Review changes locally, then run `codex exec --json` as an independent read-only reviewer and merge the findings. Use before merging or after significant refactoring.

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

We split this skill into the rules it gives an agent

9 rules. 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 174 edited versions we read keep these.

  • 4

    Distinctive

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

    Follow the repository's AGENTS.md and focus on actionable defects:

    line 14
  2. Distinctive:

    Do not report formatting already covered by rustfmt, speculative low-probability crashes without a credible trigger, or style preferences …

    line 23
  3. Distinctive:

    Keep the actionable and automatic-fix set to P0 and P1 findings with a realistic trigger and material impact.

    line 28
  4. Very specific:

    Run one direct, read-only codex exec --json review pass.

    line 33
  5. Very specific:

    Create a run directory with mktemp -d outside the repository.

    line 38
  6. Very specific:

    Use the Codex CLI's configured default model.

    line 40
  7. Very specific:

    Default the external timeout to 30 minutes (1800 seconds), overridable through REVIEW_TIMEOUT_SECONDS.

    line 41
  8. Distinctive:

    If the review times out, inspect partial artifacts, split the diff into smaller review units, and retry.

    line 42
  9. Very specific:

    Read final.md first, then use events.jsonl and stderr.log for missing or partial context.

    line 86

“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

Multi-Pass Code Review

1. Define the review range

Inspect git status, the relevant diff, and the surrounding implementation. Preserve unrelated working-tree changes. Review the code that actually runs; do not substitute an old PRD for the current behavior.

2. Perform the local review

Follow the repository's AGENTS.md and focus on actionable defects:

  • business-logic and state-transition gaps;
  • persistence, recovery, compatibility, and protocol-boundary problems;
  • async blocking, cancellation, locking, process-lifecycle, and resource leaks;
  • tool authorization, path handling, secrets, and network exposure;
  • user-visible TUI errors, misleading status, and broken interaction flows;
  • missing tests for realistic failure paths.

Do not report formatting already covered by rustfmt, speculative low-probability crashes without a credible trigger, or style preferences that do not affect correctness or maintainability.

Unless the user explicitly requests a broader review, use this default severity boundary:

  • Ignore extreme edge cases and crashes, layout shifts, or state mismatches assessed as extremely unlikely. Do not inflate them into actionable findings.
  • Keep the actionable and automatic-fix set to P0 and P1 findings with a realistic trigger and material impact.
  • Prioritize real business-logic, security/data-integrity, and user-visible TUI defects. Do not automatically fix P2/P3 findings; mention a lower-severity item only when it materially affects a decision, and leave it deferred unless the user expands the scope.

3. Obtain an external Codex review

Run one direct, read-only codex exec --json review pass. The external prompt must forbid invoking this skill, running another codex process, calling delegation tools, or modifying files.

Requirements:

  1. Require codex to be available on PATH; do not source a personal shell startup file.
  2. Create a run directory with mktemp -d outside the repository.
  3. Save JSONL, stderr, and the final response so partial output survives interruption.
  4. Use the Codex CLI's configured default model. Only pass -m when REVIEW_MODEL is explicitly set by the caller.
  5. Default the external timeout to 30 minutes (1800 seconds), overridable through REVIEW_TIMEOUT_SECONDS.
  6. If the review times out, inspect partial artifacts, split the diff into smaller review units, and retry. Do not declare the external pass complete without a usable result.

Example:

REVIEW_DIR="$(mktemp -d "${TMPDIR:-/tmp}/acn-code-review.XXXXXX")"
REPO_ROOT="$(git rev-parse --show-toplevel)"
REVIEW_TIMEOUT_SECONDS="${REVIEW_TIMEOUT_SECONDS:-1800}"

cat > "$REVIEW_DIR/prompt.txt" <<'PROMPT'
Review the current repository changes directly. Focus on realistic business-logic defects,
security boundaries, persistence and recovery, async/process lifecycle, user-visible TUI problems,
and missing high-value tests. By default, ignore extreme or extremely unlikely crashes, layout
shifts, and state mismatches. Keep actionable findings to realistically triggered P0/P1 defects;
do not recommend fixes for P2/P3 items unless the caller explicitly requests broader coverage.
Read AGENTS.md and the surrounding implementation. Do not invoke a code-review skill, run codex or
codex exec, use delegation tools, spawn subagents, or modify files. Return actionable findings with
severity and file/line references; say explicitly when there are no findings.
PROMPT

PROMPT_TEXT="$(cat "$REVIEW_DIR/prompt.txt")"
CODEX_ARGS=(exec --json)
if [[ -n "${REVIEW_MODEL:-}" ]]; then
  CODEX_ARGS+=(-m "$REVIEW_MODEL")
fi
CODEX_ARGS+=(
  -C "$REPO_ROOT"
  --sandbox read-only
  -o "$REVIEW_DIR/final.md"
  "$PROMPT_TEXT"
)

if command -v gtimeout >/dev/null 2>&1; then
  gtimeout "$REVIEW_TIMEOUT_SECONDS" codex "${CODEX_ARGS[@]}" \
    >"$REVIEW_DIR/events.jsonl" 2>"$REVIEW_DIR/stderr.log"
elif command -v timeout >/dev/null 2>&1; then
  timeout "$REVIEW_TIMEOUT_SECONDS" codex "${CODEX_ARGS[@]}" \
    >"$REVIEW_DIR/events.jsonl" 2>"$REVIEW_DIR/stderr.log"
else
  codex "${CODEX_ARGS[@]}" \
    >"$REVIEW_DIR/events.jsonl" 2>"$REVIEW_DIR/stderr.log"
fi

Read final.md first, then use events.jsonl and stderr.log for missing or partial context.

4. Merge and report

Deduplicate local and external findings. Lead with findings ordered by severity, identify their source as local, external, or both, and include precise file references and realistic trigger conditions. If there are no findings, state that explicitly and list any verification gaps.

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.