npx claudepluginhub mayurpise/draft --plugin draftThis skill uses the workspace's default tool permissions.
You are performing a lightweight, ad-hoc code review. This is the fast alternative to `/draft:review` — no track context needed, focused on a specific PR, diff, or file set.
Reviews code changes, PRs, and diffs for security vulnerabilities, performance issues, correctness bugs, and maintainability problems with tables for issues and suggestions.
Reviews pull requests and code changes for correctness, security, performance, code quality, testing, documentation, and maintainability using git diffs.
Performs code reviews covering quality, security, performance, testing, maintainability, and best practices. Use for pull requests, vulnerability checks, and improvement suggestions.
Share bugs, ideas, or general feedback.
You are performing a lightweight, ad-hoc code review. This is the fast alternative to /draft:review — no track context needed, focused on a specific PR, diff, or file set.
Read the code. Ground every finding in a specific line.
Before starting, capture the current git state:
git branch --show-current # Current branch name
git rev-parse --short HEAD # Current commit hash
Store this for the review report header. The review is scoped to this specific branch/commit.
ls draft/ 2>/dev/null
If draft/ exists, read and follow core/shared/draft-context-loading.md. This enriches review with project patterns, guardrails, and accepted patterns from tech-stack.md.
If no draft context, proceed with generic review — still valuable.
Check for arguments:
/draft:quick-review — Review staged changes (git diff --cached) or current branch diff/draft:quick-review <file> — Review specific file(s)/draft:quick-review <PR-URL> — Review a pull request (via GitHub MCP / gh CLI)/draft:quick-review <commit-range> — Review specific commitsDetermine the diff to review:
gh pr diff <num>git diff <range>git diff HEAD~1..HEAD (last commit)Review the code across four dimensions. For each finding, cite the specific file:line.
Classify each finding:
| Severity | Action | Description |
|---|---|---|
| Critical | Must fix before merge | Security vulnerabilities, data corruption risks, crashes |
| Important | Should fix | Performance issues, logic bugs, error handling gaps |
| Suggestion | Nice to have | Style improvements, refactoring opportunities, documentation |
Present findings organized by severity:
## Quick Review: {scope description}
**Reviewer:** Draft Quick Review
**Scope:** {files/PR/commits reviewed}
**Date:** {ISO_TIMESTAMP}
### Summary
- Critical: {count}
- Important: {count}
- Suggestion: {count}
### Verdict: {PASS | PASS WITH NOTES | NEEDS CHANGES}
### Findings
#### Critical
1. **[finding title]** — `file:line`
[description and recommendation]
#### Important
...
#### Suggestion
...
### What Went Well
[2-3 positive observations about the code — good patterns, clean logic, thorough error handling]
If track-scoped, save to draft/tracks/<id>/quick-review-<timestamp>.md.
MANDATORY: Include YAML frontmatter with git metadata when saving. Follow core/shared/git-report-metadata.md.
Include the report header table immediately after frontmatter:
| Field | Value |
|-------|-------|
| **Branch** | `{LOCAL_BRANCH}` → `{REMOTE/BRANCH}` |
| **Commit** | `{SHORT_SHA}` — {COMMIT_MESSAGE} |
| **Generated** | {ISO_TIMESTAMP} |
| **Synced To** | `{FULL_SHA}` |
/draft:implement at phase boundaries as lightweight alternative to full review/draft:review if critical findings require deeper analysis/draft:learn (findings update guardrails via pattern learning)/draft:review for full three-stage analysis"/draft:deep-review for security audit"core/shared/jira-sync.mdIf no diff/file found: "No changes to review. Specify a file, PR URL, or commit range."
If MCP unavailable for PR: Fall back to local git diff. "GitHub MCP and gh CLI unavailable. Reviewing local diff instead."
If no draft context: Proceed with generic review patterns. Note: "Review enriched when draft context is available (run /draft:init)."