devkit.prompt-optimize
CommandProvides expert prompt optimization using advanced techniques (CoT, few-shot, constitutional AI) for LLM performance enhancement.…
Provides comprehensive GitHub pull request review with code quality, security, and best practices analysis. Use when reviewing a PR before merging.
> /plugin marketplace add giuseppe-trisciuoglio/developer-kit> /plugin install developer-kit@developer-kit
description: Provides comprehensive GitHub pull request review with code quality, security, and best practices analysis. Use when reviewing a PR before merging. allowed-tools: Bash(gh *), Bash(git *), Read, Grep, Glob argument-hint: "[pr-number] [review-focus] [output-format]"
Perform comprehensive code review of a GitHub pull request including code quality, security, architecture, performance, and best practices analysis.
/devkit.github.review-pr $ARGUMENTS
| Argument | Description | |--------------|------------------------------------------| | `$ARGUMENTS` | Combined arguments passed to the command |
**Agent Selection**: To execute this GitHub task, use the following approach:
**Arguments received**: `$ARGUMENTS`
**$1**: PR number (required - e.g., `123`) **$2**: Review focus (optional - defaults to `full`) **$3**: Output format (optional - defaults to `summary`)
**Available review focuses**:
**Output formats**:
# Validate PR number
if [ -z "$1" ]; then
echo "Error: PR number is required"
echo "Usage: /developer-kit:devkit.github.review-pr <pr-number> [review-focus] [output-format]"
exit 1
fi
PR_NUMBER=$1
REVIEW_FOCUS=${2:-full}
OUTPUT_FORMAT=${3:-summary}
# Check GitHub CLI authentication
if ! gh auth status > /dev/null 2>&1; then
echo "Error: GitHub CLI not authenticated. Run: gh auth login"
exit 1
fi
# Fetch PR information
echo "Fetching PR #$PR_NUMBER details..."
PR_TITLE=$(gh pr view $PR_NUMBER --json title -q .title)
PR_AUTHOR=$(gh pr view $PR_NUMBER --json author -q .author.login)
PR_STATE=$(gh pr view $PR_NUMBER --json state -q .state)
PR_BASE=$(gh pr view $PR_NUMBER --json baseRefName -q .baseRefName)
PR_HEAD=$(gh pr view $PR_NUMBER --json headRefName -q .headRefName)
PR_URL=$(gh pr view $PR_NUMBER --json url -q .url)
PR_CREATED=$(gh pr view $PR_NUMBER --json createdAt -q .createdAt)
PR_ADDITIONS=$(gh pr view $PR_NUMBER --json additions -q .additions)
PR_DELETIONS=$(gh pr view $PR_NUMBER --json deletions -q .deletions)
PR_CHANGED_FILES=$(gh pr view $PR_NUMBER --json changedFiles -q .changedFiles)
echo "PR Title: $PR_TITLE"
echo "Author: $PR_AUTHOR"
echo "State: $PR_STATE"
echo "Branch: $PR_HEAD -> $PR_BASE"
echo "Changes: +$PR_ADDITIONS -$PR_DELETIONS across $PR_CHANGED_FILES files"# Get list of changed files with their status gh pr diff $PR_NUMBER --name-only > changed_files.tmp echo "" echo "Changed files:" cat changed_files.tmp echo "" # Categorize files by type JAVA_FILES=$(grep '\.java$' changed_files.tmp | wc -l) JS_FILES=$(grep -E '\.(js|jsx|ts|tsx)$' changed_files.tmp | wc -l) PY_FILES=$(grep '\.py$' changed_files.tmp | wc -l) CONFIG_FILES=$(grep -E '\.(xml|yml|yaml|json|properties)$' changed_files.tmp | wc -l) TEST_FILES=$(grep -i 'test' changed_files.tmp | wc -l) DOC_FILES=$(grep -E '\.(md|txt|adoc)$' changed_files.tmp | wc -l) echo "File types:" echo "- Java files: $JAVA_FILES" echo "- JavaScript/TypeScript files: $JS_FILES" echo "- Python files: $PY_FILES" echo "- Configuration files: $CONFIG_FILES" echo "- Test files: $TEST_FILES" echo "- Documentation files: $DOC_FILES"
# Download full diff gh pr diff $PR_NUMBER > pr_diff.tmp # Get diff statistics TOTAL_LINES=$(wc -l < pr_diff.tmp) ADDED_LINES=$(grep '^+' pr_diff.tmp | grep -v '^+++' | wc -l) REMOVED_LINES=$(grep '^-' pr_diff.tmp | grep -v '^---' | wc -l) echo "" echo "Diff statistics:" echo "- Total lines in diff: $TOTAL_LINES" echo "- Lines added: $ADDED_LINES" echo "- Lines removed: $REMOVED_LINES" echo ""
Analyze:
Review for:
Evaluate:
Check for:
Modular plugin marketplace for Claude Code and agentic CLIs, with validated, spec-driven skills, agents, commands, and workflows for Java, TypeScript, Python, PHP, AWS, and AI.
Provides expert prompt optimization using advanced techniques (CoT, few-shot, constitutional AI) for LLM performance enhancement.…
Provides guided feature development capability with codebase understanding and architecture focus. Use when implementing a new…
Provides guided bug fixing and debugging capability with systematic root cause analysis. Use when encountering bugs, errors, or…
Creates a GitHub pull request with branch creation, commits, and detailed description. Use when you need to submit changes for…
Provides guided code refactoring capability with deep codebase understanding, compatibility options, and comprehensive…
Validates a skill against DevKit standards (requirements, template, dependencies). Use when you need to verify a skill before…
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.