Index of every page on this site: llms.txt
All skills
Run it yourself

Review code changes like a senior engineer — correctness, security, performance, readability — for JavaScript/TypeScript and Python. Use whenever the user asks to review, check, audit, or "look over" code, a diff, a PR, a branch, or staged changes, or asks "is this okay?", "ada bug?", "cek kode ini", even if they don't say "review".

Use this Skill: https://skilld.dev/gh/kiln-skills/kiln/code-review

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈88 tokens for metadata: the name and description. ≈772 when used: this file.

Description uses 4.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈348 characters, or 4.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Code Review

Goal: find the issues that actually matter, ranked by impact, with concrete fixes. Not a style lecture.

1. Establish scope

Figure out what to review, in this order:

  1. Files/snippets the user pointed at.
  2. Otherwise git diff --staged; if empty, git diff; if empty, git diff main...HEAD (try master if main doesn't exist).
  3. If still nothing, ask.

Run scripts/collect_diff.sh to get the diff plus a file list in one go. Read the surrounding code of every changed hunk — bugs usually live at the boundary between new and old code, so the diff alone is not enough.

2. Understand intent before judging

Read the commit message / PR description / user's explanation. Ask yourself: what is this change trying to do? A review that misses the intent produces noise.

3. Check, in priority order

🔴 Blocker — correctness & security

  • Logic errors, off-by-one, wrong conditions, unhandled null/undefined/None
  • Async mistakes: missing await, unhandled promise rejections, async in forEach, race conditions, Python asyncio calls blocking the loop
  • Injection: SQL string concatenation, eval/exec, shell commands built from input, dangerouslySetInnerHTML, Python pickle/yaml.load on untrusted data
  • Secrets hard-coded, auth/permission checks missing on new endpoints
  • Resource leaks: files/connections not closed (use with / try…finally)
  • Mutable default arguments in Python (def f(x=[]))

🟡 Should fix — robustness & performance

  • N+1 queries, work inside loops that could be hoisted, unbounded memory growth
  • Error handling that swallows exceptions (except: pass, empty catch {})
  • TypeScript: any, unsafe as casts, non-null ! hiding real nulls
  • Missing tests for new branches
  • React: missing/incorrect useEffect dependencies, keys from array index on reorderable lists

🟢 Nice to have — maintainability

  • Naming, duplication, dead code, overly long functions
  • Only mention if it materially helps; skip pure taste.

4. Verify, don't guess

If a project has them, run them and include results:

  • JS/TS: npx tsc --noEmit, npm run lint, npm test -- --related (or the project's equivalents in package.json)
  • Python: ruff check, mypy, pytest -q on affected tests

Don't claim something is a bug unless you can explain the input that triggers it. If unsure, say "possible issue" and why.

5. Output format

## Summary
<1–2 sentences: what changed and the overall verdict: ✅ ready to merge / ⚠️ needs fixes / ❌ don't merge>

## 🔴 Blockers
- `path/file.ts:42` — <the problem>. <why it's dangerous>.
  Fix: <short code fix>

## 🟡 Should fix
...

## 🟢 Suggestions
...

## What's already good
<1–3 specific points, not filler>

Write the report in the user's language (for example, Indonesian if they wrote in Indonesian); translate the headings too. Omit empty sections. Max ~10 findings; if more, keep the most important and say how many minor ones were left out.

Offer to apply the fixes — don't edit files unless the user asks.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts11d3 checks · Risk SAFE
  • Gen Agent Trust Hub15d

    This skill provides code review capabilities by analyzing git diffs and running standard development tools like linters and test suites. It is designed to identify security and logic errors. The primary security considerations involve the execution of project-defined scripts and the processing of untrusted code, which are standard for development tools.

  • Socket11d

    No alerts

  • Snyk15d

    Risk: LOW · No issues

Signed by skilld at 555d7ea. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 2 weeks ago

README badge

README badge for kiln-skills/kiln/code-review