Generate comprehensive, reviewer-ready code review documents from git diffs. Use this when the user provides code changes (git diff output, file changes, or asks to review code changes) and wants a structured review document. Creates detailed analysis covering change overview, business flow, key code explanation, risk assessment, and review recommendations. Supports both manual diff input and automatic git workspace detection. Particularly useful for reviewing pull requests, feature branches, or any code changes requiring thorough documentation for reviewers.
/plugin marketplace add ArcBlock/agent-skills/plugin install devflow@arcblock-agent-skillsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
assets/review-template.mdreferences/patterns.mdreferences/review-checklist.mdscripts/get_diff.shGenerate comprehensive code review documents from git diffs, providing detailed analysis with real code snippets, business flow breakdown, and actionable review recommendations.
If user provides diff directly:
If no diff is provided:
scripts/get_diff.sh to retrieve changes:
# Get all uncommitted changes (default)
./scripts/get_diff.sh
# Get staged changes only
./scripts/get_diff.sh --staged
# Compare with a branch
./scripts/get_diff.sh --branch main
# Get changes from specific commit
./scripts/get_diff.sh --commit abc123
Parse the diff to extract:
Read relevant files:
Identify patterns:
references/patterns.md for common code issuesFollow this analysis framework:
改动概览 (Change Summary)
业务流程分析 (Business Flow Analysis)
关键代码详解 (Key Code Analysis)
风险评估 (Risk Assessment)
Consult references/review-checklist.md for comprehensive evaluation criteria:
For each category:
Final recommendation:
Use assets/review-template.md as the base structure:
Output:
REVIEW.md)Bash script to retrieve git diffs in various scenarios. Supports getting uncommitted changes, staged changes, branch comparisons, and specific commits.
Comprehensive checklist covering all aspects of code review: quality, architecture, functionality, security, performance, testing, compatibility, operations, and documentation.
Load this reference when generating review recommendations to ensure thorough evaluation.
Catalog of common code patterns to watch for, including anti-patterns, security vulnerabilities, performance issues, and architectural concerns.
Load this reference during analysis phase to identify potential issues in the code changes.
Structured Markdown template for the review document. Provides consistent format with sections for change summary, business flow, code analysis, risk assessment, and review recommendations.
Use as the base structure and fill in with actual analysis.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.