catchup
Rebuild working context fast after /clear or a fresh session — reads the handoff note and the…
Review code changes or a pull request. Delegates to specialist agents (code quality, security, performance, silent failures, test quality, docs) in parallel.
$ npx -y skills add poshan0126/dotclaude --skill pr-review --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/pr-reviewContext preview
The summary Claude sees to decide when to auto-load this skill.
Review code changes or a pull request. Delegates to specialist agents (code quality, security, performance, silent failures, test quality, docs) in parallel.
name: pr-review description: Review code changes or a pull request. Delegates to specialist agents (code quality, security, performance, silent failures, test quality, docs) in parallel. argument-hint: "[PR number | staged | file path | omit to auto-detect]" disable-model-invocation: true allowed-tools: - Bash(git diff *) - Bash(git log *) - Bash(gh pr view *) - Bash(gh pr diff *) - Bash(gh pr checks *) - Bash(gh api *)
Review code changes by delegating to specialist agents in parallel and synthesizing a unified report. Works with PRs, staged changes, or specific files.
Check `$ARGUMENTS` for the word `verbose`. Strip it from the argument string before parsing the rest.
When dispatching reviewers in Step 3, include the word `verbose` in each `Task` call's prompt only if the user asked for it. Otherwise omit; the reviewers default to terse.
Parse `$ARGUMENTS` to determine what to review:
If there are no changes to review, say so and stop.
Skip this step if reviewing staged changes or a file. Jump to Step 3.
When reviewing a PR, fetch and check:
Review the PR itself before the code:
Decide which reviewers apply by reading the diff content, not just file paths:
| Reviewer | When to include | |---|---| | `code-reviewer` | Always. Universal correctness pass. | | `silent-failure-hunter` | Any diff touching error handling, catch blocks, fallbacks, retries, or async flows. In practice: almost every code diff. Skip only for pure-docs, config-only, or static-asset diffs. | | `pr-test-analyzer` | Tests were added or changed, OR behavior changed without any test change (that absence is itself the finding). Skip for pure-docs or config diffs. | | `security-reviewer` | Auth, input handling, queries, tokens, session management, file path construction, SQL or HTML or template strings. | | `performance-reviewer` | Endpoints, DB queries, loops over collections, caching, connection management. Skip for pure-docs, config-only, or static-asset diffs. | | `doc-reviewer` | `.md` changes, significant docstring or JSDoc changes, API docs. |
**Dispatch all applicable reviewers in PARALLEL.** Send one message that contains one Agent/Task tool call per applicable reviewer. Do NOT invoke them sequentially. Parallel dispatch cuts wall-clock time from N times the slowest review to roughly the slowest single review, with no extra token cost. Each call looks like:
Agent(subagent_type: "code-reviewer",
prompt: "Review <scope>. <verbose?> Output one confidence score (0-100) per finding.")Ask every reviewer to attach a confidence score per finding — Step 4 uses them.
If only one reviewer applies (a pure-docs diff, for example), a single `Task` call is fine. Skip the parallel pattern when there's nothing to parallelize.
While the reviewers run, you can read the PR description, recent CI logs, or open comments to enrich the synthesis in Step 4. Don't wait idly.
Use the terse template by default. Use the verbose template only if the user passed `verbose`.
For PR reviews:
## PR Review: #[number]: [title] [base] -> [head]. [N files, +X/-Y lines]. CI: [pass | fail: <checks>]. PR quality: [ok | issues: <list>]. ### Findings ([N]) - [agent] file:line: issue (fix: hint) - [agent] file:line: issue (fix: hint) ### Verdict [Ready to merge | Needs changes: <one-line blocker>]
For non-PR reviews (staged or file):
## Review ([scope]) [N findings from <agents>]: - [agent] file:line: issue (fix: hint) - [agent] file:line: issue (fix: hint)
If no findings, output a single line: "No issues found across [agents]."
For PR reviews:
## PR Review: #[number]: [title] **Author**: [author] | **Base**: [base] -> **Head**: [head] | **Changed**: [N files, +X/-Y lines] ### PR Quality - Title: [ok / needs improvement] - Description: [ok / missing test plan / empty] - Size: [ok / large, consider splitting] - CI: [passing / failing, list failures] - Unresolved comments: [none / list] ### Code Review #### Critical / High - [Agent] File:Line: issue #### Medium - [Agent] File:Line: issue #### Low - [Agent] File:Line: issue ### Verdict [Ready to merge / Needs changes, summarize blockers]
For non-PR reviews (staged or file):
## Review Summary **Scope**: [staged changes / file path] **Agents run**: [list] ### Critical / High - [Agent] File:
A lean .claude/ setup for daily development. Seven specialist agents, twelve workflow skills, six modular rules, and eight safety/productivity hooks. No bloat, no model assignments, no opinions you can't override.
Repo: poshan0126/dotclaude
Rebuild working context fast after /clear or a fresh session — reads the handoff note and the…
Keep CLAUDE.md current and lean — capture this session's durable learnings into it (default),…
Estimate per-turn token cost of `.claude/` and `CLAUDE.md` — always-loaded vs path-scoped vs…
Find and fix a bug. Default is careful (reproduce, investigate, test). Add `--fast` for…
Explain code. Default is a one-sentence summary plus a mental model. Add `verbose` to also…
Take a GitHub issue from number to tested fix — read the issue and comments, reproduce,…