agent-builder
Use when building a new agent harness, designing tool systems, or structuring multi-agent workflows. Provides patterns,…
Use when asked to review code, audit a file for bugs, check code quality, or suggest improvements. Provides a structured review process and issue categorisation.
$ npx -y skills add FareedKhan-dev/claude-code-from-scratch --skill code-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/code-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when asked to review code, audit a file for bugs, check code quality, or suggest improvements. Provides a structured review process and issue categorisation.
name: code-review description: Use when asked to review code, audit a file for bugs, check code quality, or suggest improvements. Provides a structured review process and issue categorisation.
Load when the user asks you to:
Always follow this order. Do not skip steps.
Use the `read` tool to read the full file first. Use `grep` to find related code (callers, tests, imports). Never comment on code you haven't fully read.
Ask: what is this code trying to do? Read any docstrings, comments, and function names. If the intent is unclear, note it — don't assume.
Use these categories consistently:
| Category | When to use | |----------|-------------| | BUG | Code that will produce wrong results or crash | | SECURITY | Input not validated, secrets exposed, injection risks | | PERF | Unnecessary work, wrong data structure, O(n²) that could be O(n) | | STYLE | Inconsistent naming, long functions, missing docstrings | | SUGGEST | Optional improvements — not required to fix |
Format each finding:
[CATEGORY] file.py:line_number Issue: one sentence describing the problem Why: why this matters Fix: concrete suggestion or corrected code snippet
End with:
# Mutable default argument (very common)
def append(item, lst=[]): # BUG: lst shared across all calls
lst.append(item)
# Exception swallowed silently
try:
do_something()
except Exception: # BUG: hides errors, use `except Exception as e: log(e)`
pass
# Off-by-one in slices
items[1:len(items)] # STYLE: prefer items[1:]
# Late binding closure
fns = [lambda: i for i in range(5)] # BUG: all return 4
fns = [lambda i=i: i for i in range(5)] # Fix
# Forgetting to close resources
f = open("file.txt") # BUG: use `with open("file.txt") as f:`Use when building a new agent harness, designing tool systems, or structuring multi-agent workflows. Provides patterns,…
Use when working with PDF files — reading, extracting text or tables, merging, splitting, or filling forms. Provides correct…