devkit.prompt-optimize
Provides expert prompt optimization using advanced techniques (CoT, few-shot, constitutional AI) for LLM performance enhancement. Use when you need to improve…
Creates a GitHub pull request with branch creation, commits, and detailed description. Use when you need to submit changes for review.
> /plugin marketplace add giuseppe-trisciuoglio/developer-kit > /plugin install developer-kit@developer-kit
How it fires
How this command gets triggered: by you, by Claude, or both.
/devkit.github.create-prContext preview
What this command does when you run it.
Creates a GitHub pull request with branch creation, commits, and detailed description. Use when you need to submit changes for review.
description: Creates a GitHub pull request with branch creation, commits, and detailed description. Use when you need to submit changes for review. allowed-tools: Bash(git *), Bash(gh *) argument-hint: "[pr-title] [target-branch] [language]"
Creates a GitHub pull request with branch creation, commits, and detailed description. Use when you need to submit changes for review.
/devkit.github.create-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 title (optional - will be generated if not provided) **$2**: Target branch (optional - defaults to `main` or `master`) **$3**: Language for PR description (optional - defaults to `en`)
**Supported languages**: `en`, `it`, `es`, `fr`, `de`
Verify git repository and working directory status:
# Verify git repository
if ! git rev-parse --git-dir > /dev/null 2>&1; then
echo "Error: Not a git repository"
exit 1
fi
# Check for uncommitted changes
if [ -z "$(git status --porcelain)" ]; then
echo "Error: No changes to commit"
exit 1
fi
# Verify remote repository exists
if ! git config --get remote.origin.url > /dev/null 2>&1; then
echo "Error: No remote repository configured"
exit 1
fi
# 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# Detect default branch
TARGET_BRANCH="${2:-$(git remote show origin | grep 'HEAD branch' | cut -d' ' -f5)}"
if [ -z "$TARGET_BRANCH" ]; then
TARGET_BRANCH="main"
fi
echo "Target branch: $TARGET_BRANCH"# Get list of modified files MODIFIED_FILES=$(git diff --name-only) STAGED_FILES=$(git diff --cached --name-only) UNTRACKED_FILES=$(git ls-files --others --exclude-standard) echo "Modified files:" echo "$MODIFIED_FILES" echo "" echo "Staged files:" echo "$STAGED_FILES" echo "" echo "Untracked files:" echo "$UNTRACKED_FILES"
Analyze changes by type:
# Generate branch name from PR title or changes
if [ -n "$1" ]; then
BRANCH_NAME=$(echo "$1" | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9]/-/g' | sed 's/--*/-/g' | sed 's/^-//;s/-$//')
else
# Generate from changed files
MAIN_CHANGE=$(echo "$MODIFIED_FILES" | head -1 | xargs dirname | sed 's/\//-/g')
BRANCH_NAME="feature/${MAIN_CHANGE}-$(date +%s)"
fi
# Ensure unique branch name
COUNTER=1
ORIGINAL_BRANCH=$BRANCH_NAME
while git show-ref --verify --quiet refs/heads/$BRANCH_NAME; do
BRANCH_NAME="${ORIGINAL_BRANCH}-${COUNTER}"
((COUNTER++))
done
echo "Branch name: $BRANCH_NAME"# Create new branch git checkout -b "$BRANCH_NAME" echo "Created and switched to branch: $BRANCH_NAME"
Determine if changes should be split into multiple commits:
**Single commit when**:
**Multiple commits when**:
# Stage all changes
git add -A
# Get diff statistics
TOTAL_ADDITIONS=$(git diff --cached --numstat | awk '{s+=$1} END {print s}')
TOTAL_DELETIONS=$(git diff --cached --numstat | awk '{s+=$2} END {print s}')
FILES_CHANGED=$(git diff --cached --name-only | wc -l)
echo "Changes: +$TOTAL_ADDITIONS -$TOTAL_DELETIONS across $FILES_CHANGED files"Follow Conventional Commits specification:
<type>(<scope>): <description> <body> <footer>
**Types**:
**Example commits**:
# Feature commit git commit -m "feat(user-service): add email verification functionality - Implement email verification service - Add verification token generation - Create email template - Add integration tests Closes #123" # Bug fix commit git commit -m "fix(auth): resolve JWT token expiration issue JWT tokens were expiring prematurely due to timezone miscalculation. Updated to use UTC consistently. Fixes #456" # Refactoring commit git commit -m "refactor(repository): simplify user query methods - Remove duplicate code - Extract common query logic - Improve method naming - Add Javadoc comments"
# Push to remote git push -u origin "$BRANCH_NAME" echo "Pushed branch to remote: $BRANCH_
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.
Repo: giuseppe-trisciuoglio/developer-kit
Provides expert prompt optimization using advanced techniques (CoT, few-shot, constitutional AI) for LLM performance enhancement. Use when you need to improve…
Provides guided feature development capability with codebase understanding and architecture focus. Use when implementing a new feature from scratch.
Provides guided bug fixing and debugging capability with systematic root cause analysis. Use when encountering bugs, errors, or unexpected behavior.
Provides comprehensive GitHub pull request review with code quality, security, and best practices analysis. Use when reviewing a PR before merging.
Provides guided code refactoring capability with deep codebase understanding, compatibility options, and comprehensive verification. Use when restructuring or…
Validates a skill against DevKit standards (requirements, template, dependencies). Use when you need to verify a skill before publishing or after modifications.