Create or update a pull request for the current work, with mutation testing
Create or update a pull request with mutation testing. Use when ready to submit your current work for review - it runs mutation tests, creates/updates the PR, links it to the issue, and keeps the issue in "In Progress" while the PR goes to review.
/plugin marketplace add jwilger/claude-code-setup/plugin install sdlc@jwilger-claude-pluginsCreate or update a pull request for the current work. This command:
Read .claude/sdlc.yaml for git workflow settings.
From the current branch name, extract the issue number:
git branch --show-current
Parse issue number from branch name (e.g., feature/123-add-login → 123).
If no issue number in branch, ask user which issue this PR is for.
Use the sdlc-mutation agent to run mutation testing:
Task tool with subagent_type="sdlc-mutation":
Run mutation testing on the changes in this branch. Enforce 100% mutation score.
Report any surviving mutants that need additional test coverage.
If mutation score is below 100%:
gh pr list --head $(git branch --show-current) --json number,url
If PR exists, we'll update it. If not, we'll create it.
If using git-spice:
gs stack submit
If using standard git:
git push -u origin $(git branch --show-current)
Get issue details for PR body:
gh issue view <issue-number> --json title,body
Create PR with link to issue:
gh pr create \
--title "<issue-title>" \
--body "Closes #<issue-number>
## Summary
<brief summary of changes>
## Changes
<list of key changes>
## Testing
- All tests passing
- Mutation score: <score>%
---
Related: #<issue-number>" \
--assignee @me
# Push already happened, just ensure it's up to date
gh pr view --json url
If using gh-issue-ext for explicit linking:
gh issue-ext branch link <issue-number> <branch-name>
The PR should show in Review status. If using projects:
Pull Request created/updated!
PR: <url>
Issue: #<number> - <title>
Mutation Score: <score>%
Status:
- PR: In Review
- Issue: In Progress (will close when PR merges)
Next steps:
- Wait for review feedback
- Run /sdlc:review when you have comments to address