Fix issue: $ARGUMENTS
Automates end-to-end issue resolution by detecting tracker type, implementing fixes, and creating PRs.
/plugin marketplace add Cloud-Officer/claude-code-plugin-dev/plugin install cloud-officer-co-dev@Cloud-Officer/claude-code-plugin-devFix issue: $ARGUMENTS
gh repo view --json hasIssuesEnabled --jq '.hasIssuesEnabled'
true): Use gh issue commands, branch name issue-$ARGUMENTS, commit format Fix #$ARGUMENTS: descriptionfalse): Use jira commands, branch name $ARGUMENTS (uppercase), commit format $ARGUMENTS: descriptionGet issue details - Present to user before proceeding
gh issue view $ARGUMENTS --commentsjira issue view $ARGUMENTS --comments 16Prepare repository
DEFAULT_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@')
git fetch --all
git checkout $DEFAULT_BRANCH
git pull origin $DEFAULT_BRANCH
git submodule update --init --recursive
git checkout -b issue-$ARGUMENTSgit checkout -b $ARGUMENTS (uppercase)Fix the issue
Create PR (only when user explicitly requests)
Commit and push:
git add .
git commit -m "Fix #$ARGUMENTS: <brief description>" then git push -u origin issue-$ARGUMENTSgit commit -m "$ARGUMENTS: <brief description>" then git push -u origin $ARGUMENTSGenerate PR content:
Use the create-pr skill to generate PR title and body from the staged changes.
Create PR:
gh pr create --base $DEFAULT_BRANCH --head issue-$ARGUMENTS --title "Fix #$ARGUMENTS: <summary>" --body "<PR body from skill>"gh pr create --base $DEFAULT_BRANCH --head $ARGUMENTS --title "$ARGUMENTS <summary>" --body "<PR body from skill>"After PR created:
jira issue move $ARGUMENTS "Code Review"Update issue if needed If the implementation differs from the original or additional context would be helpful, update the issue. Write in a prospective tone (as if before implementation, not after):
gh issue edit $ARGUMENTS --title "<updated title>" --body "<updated description>"jira issue edit $ARGUMENTS --summary "<updated title>" --description "<updated description>"Cleanup
git checkout $DEFAULT_BRANCH