Create well-documented pull requests that facilitate code review and maintain clear change documentation.
/plugin marketplace add marcel-Ngan/ai-dev-team/plugin install marcel-ngan-ai-dev-team@marcel-Ngan/ai-dev-teamThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Create well-documented pull requests that facilitate code review and maintain clear change documentation.
git CLI commandsgh CLI (GitHub CLI){
"owner": "{{github.owner}}",
"repo": "{{github.repo}}",
"defaultBranch": "{{github.defaultBranch}}"
}
# Ensure you're on feature branch
git branch
# Ensure branch is up to date with remote
git pull origin $(git branch --show-current)
# Ensure base branch is up to date
git fetch origin {{github.defaultBranch}}
# Rebase if needed
git rebase origin/{{github.defaultBranch}}
# Push branch to remote
git push -u origin $(git branch --show-current)
# Basic PR creation
gh pr create --title "feat(auth): add login endpoint" --body "Description here"
# Create with template
gh pr create --title "{{title}}" --body-file .github/PULL_REQUEST_TEMPLATE.md
# Create as draft
gh pr create --draft --title "WIP: {{title}}"
# Create with reviewers
gh pr create --title "{{title}}" --reviewer @username1,@username2
# Create with labels
gh pr create --title "{{title}}" --label "feature,needs-review"
# Create with milestone
gh pr create --title "{{title}}" --milestone "v1.0"
# Create targeting specific base branch
gh pr create --base develop --title "{{title}}"
## Summary
Brief description of the changes and their purpose.
## Changes
- Change 1
- Change 2
- Change 3
## Type of Change
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Documentation update
## Related Issues
- Closes #{{issueNumber}}
- Related to #{{relatedIssue}}
## Testing
- [ ] Unit tests added/updated
- [ ] Integration tests added/updated
- [ ] Manual testing performed
## Screenshots (if applicable)
## Checklist
- [ ] My code follows the project's style guidelines
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] New and existing unit tests pass locally
## Feature: {{featureName}}
### Summary
{{briefDescription}}
### User Story
As a {{persona}}, I want to {{action}} so that {{benefit}}.
### Implementation Details
#### Changes Made
{{#each changes}}
- {{change}}
{{/each}}
#### Architecture Decisions
{{architectureNotes}}
### Testing
#### Unit Tests
- {{testFile1}}: {{description}}
- {{testFile2}}: {{description}}
#### Manual Testing Steps
1. {{step1}}
2. {{step2}}
3. {{step3}}
### Screenshots
{{#if hasUI}}
| Before | After |
|--------|-------|
|  |  |
{{/if}}
### Related
- Jira: [{{storyKey}}]({{jiraUrl}})
- Design: [Figma]({{figmaUrl}})
- ADR: [{{adrTitle}}]({{adrUrl}})
### Checklist
- [ ] Code follows project conventions
- [ ] Self-reviewed
- [ ] Tests pass
- [ ] Documentation updated
- [ ] Ready for review
## Bug Fix: {{bugTitle}}
### Problem
{{problemDescription}}
### Root Cause
{{rootCauseAnalysis}}
### Solution
{{solutionDescription}}
### Changes
{{#each files}}
- `{{file}}`: {{change}}
{{/each}}
### Testing
#### Reproduction Steps (Before Fix)
1. {{step1}}
2. {{step2}}
3. **Bug:** {{bugBehavior}}
#### Verification Steps (After Fix)
1. {{step1}}
2. {{step2}}
3. **Expected:** {{expectedBehavior}}
#### Regression Tests Added
- {{testCase1}}
- {{testCase2}}
### Related
- Bug: [{{bugKey}}]({{jiraUrl}})
- Original Issue: #{{issueNumber}}
### Checklist
- [ ] Bug reproduced before fix
- [ ] Fix verified
- [ ] Regression test added
- [ ] No new issues introduced
<type>/<ticket>-<description>
Examples:
feature/MDDEV-123-user-authentication
bugfix/MDDEV-456-cart-quantity-fix
hotfix/MDDEV-789-critical-security-patch
chore/MDDEV-100-update-dependencies
docs/MDDEV-200-api-documentation
# Create and checkout new branch
git checkout -b feature/MDDEV-123-user-auth
# From specific base
git checkout -b feature/MDDEV-123-user-auth origin/develop
| Size | Lines Changed | Review Time | Recommendation |
|---|---|---|---|
| XS | < 50 | ~15 min | Ideal |
| S | 50-200 | ~30 min | Good |
| M | 200-500 | ~1 hour | Consider splitting |
| L | 500-1000 | ~2 hours | Split if possible |
| XL | > 1000 | Hours+ | Must split |
## Splitting Large Changes
Instead of one large PR:
❌ "Add user authentication system" (2000 lines)
Split into focused PRs:
✅ PR 1: "Add user model and database migration"
✅ PR 2: "Implement password hashing utility"
✅ PR 3: "Add registration endpoint"
✅ PR 4: "Add login/logout endpoints"
✅ PR 5: "Add authentication middleware"
✅ PR 6: "Add auth documentation"
## Self-Review Checklist
Before creating PR:
- [ ] Ran all tests locally
- [ ] Reviewed own diff line by line
- [ ] Removed debug code and console.logs
- [ ] No commented-out code
- [ ] No unnecessary whitespace changes
- [ ] Commit history is clean
- [ ] Branch is up to date with base
# List open PRs
gh pr list
# View PR details
gh pr view 123
# View PR in browser
gh pr view 123 --web
# Check PR status (checks, reviews)
gh pr status
# Edit PR
gh pr edit 123 --title "New title"
# Add reviewers
gh pr edit 123 --add-reviewer @username
# Add labels
gh pr edit 123 --add-label "bug,priority-high"
# Convert to ready
gh pr ready 123
# Mark as draft
gh pr ready 123 --undo
# View checks status
gh pr checks 123
# Watch checks
gh pr checks 123 --watch
# Re-run failed checks
gh run rerun <run-id>
## Related Issues
- Implements [MDDEV-123](https://yoursite.atlassian.net/browse/MDDEV-123)
- Fixes [MDDEV-456](https://yoursite.atlassian.net/browse/MDDEV-456)
// Add PR link to Jira story
Atlassian:addCommentToJiraIssue({
cloudId: "{{jira.cloudId}}",
issueIdOrKey: "{{storyKey}}",
commentBody: `🤖 **Developer Agent** - Pull Request Created
**PR:** [#{{prNumber}} - {{prTitle}}]({{prUrl}})
**Branch:** {{branch}}
**Status:** Ready for Review
**Changes:**
{{#each changes}}
- {{change}}
{{/each}}
**Reviewers:** {{reviewers}}`
})
| Agent | PR Creation Use |
|---|---|
| Senior Developer | Creates PRs for complex features |
| Junior Developer | Creates PRs for implementations |
| DevOps Engineer | Creates PRs for infrastructure |
| QA Engineer | May create PRs for test automation |
| Error | Cause | Resolution |
|---|---|---|
| No commits between branches | Nothing to PR | Ensure commits exist |
| Branch not pushed | Local only | git push -u origin branch |
| Base branch behind | Merge conflicts likely | Update base branch |
| Checks failing | CI/CD issues | Fix failures before review |
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.