Code review dispatch — gather diff, dispatch code-reviewer agent, present findings
Dispatches an AI code reviewer to analyze git diffs and generate structured findings reports.
npx claudepluginhub jugrajsingh/skillgardenThis skill is limited to using the following tools:
Gather the relevant diff, dispatch a code-reviewer agent, and present structured findings.
$ARGUMENTS = file list, "staged", or branch name.
If $ARGUMENTS is empty, ask via AskUserQuestion with options:
Based on input, run the appropriate git command:
"staged" or "Staged changes":
git diff --cached
Branch name or "Current branch vs develop":
git diff develop...HEAD
(Replace develop with the specified branch if different)
File list (space-separated paths):
git diff -- {file1} {file2} ...
"Last N commits":
git diff HEAD~{N}
Also gather the stat summary:
git diff {same_args} --stat
If the diff is empty, report "No changes found for the specified scope" and stop.
Count total changed lines from the stat summary.
If diff exceeds 500 lines:
Derive a slug for the review report file name:
Create a Task agent (subagent_type: general-purpose) with code-reviewer instructions.
Provide the agent with:
Wait for the agent to complete and collect the review report.
Parse the agent's report to extract:
Create the review report file:
mkdir -p docs/reviews
Write to docs/reviews/{slug}-review.md using the review report template from templates/review-report.md.
Fill in all template fields:
Output the findings summary:
## Review Summary
Findings: {total}
Critical: {N}
Major: {N}
Minor: {N}
Top Issues:
1. {severity_symbol} {file}:{line} — {description}
2. {severity_symbol} {file}:{line} — {description}
3. {severity_symbol} {file}:{line} — {description}
Full report: docs/reviews/{slug}-review.md
Severity symbols: open diamond for minor, filled diamond for major, double filled diamond for critical.
Then offer next steps via AskUserQuestion:
Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.