plugins/openshift-developer/skills/jira-solve/SKILL.md
Analyze a JIRA issue and create a pull request to solve it. Use when the user wants to implement a fix or feature described in a Jira issue, push a branch, and open a draft PR.
npx skillsauth add openshift-eng/ai-helpers jira-solveInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
openshift-developer:jira-solve
/openshift-developer:jira-solve <jira-issue-id> [remote] [--ci]
Analyzes a JIRA issue, implements a solution in the current repository, and creates a comprehensive pull request with the necessary changes.
Takes a JIRA URL or issue key, fetches the issue description and requirements, analyzes the codebase to understand how to implement the solution, and produces a branch with well-structured commits.
Parse the JIRA issue and fetch details:
curl -s -u "$JIRA_USERNAME:$JIRA_API_TOKEN" "https://redhat.atlassian.net/rest/api/3/issue/{$1}"
--ci flag ($3) is NOT set: Ask the user for further issue grooming if the required sections are missing--ci flag ($3) IS set: Proceed with available information, making reasonable assumptions where neededSearch and analyze relevant code:
spec-$1.md within the .work/solve/ folder (e.g. .work/solve/spec-OCPBUGS-12345.md)--ci flag ($3) is NOT set: Ask the user to review the plan and give them the choice to modify it before starting--ci flag ($3) IS set: Proceed immediately without waiting for approvaldocs/ folderfunc add(int a, b) int { return a + b }$1 as the branch name (e.g. git checkout -b fix-{jira-key})api/ directory (types, CRDs)
git commit -m"feat(api): Update HostedCluster API for X" -m"Add new fields to support Y functionality"vendor/ directory
git commit -m"chore(vendor): Update dependencies for X" -m"Required to pick up bug fixes in upstream library Y"git commit -m"chore(generated): Regenerate clients and CRDs" -m"Regenerate after API changes to ensure client code is in sync"cmd/ directory
git commit -m"feat(cli): Add support for X flag" -m"This allows users to configure Y behavior at cluster creation time"operator/ or controllers/
git commit -m"feat(operator): Implement X controller logic" -m"Without this the controller won't reconcile when Y condition occurs"support/ directory
git commit -m"refactor(support): Extract common X utility" -m"Consolidate duplicated logic from multiple controllers into shared helper"git commit -m"test: Add tests for X functionality" -m"Ensure the new behavior is covered by unit tests to prevent regressions"docs/ directory
git commit -m"docs: Document X feature" -m"Help users understand how to configure and use the new capability"$2--ci flag ($3) IS set: Skip PR creation — it will be handled by a subsequent pipeline step (e.g. /openshift-developer:create-pr). Output: "Skipping PR creation in CI mode — branch pushed, PR will be created by the pipeline."--ci flag ($3) is NOT set:
OCPBUGS-12345: ...).github/PULL_REQUEST_TEMPLATE.md if the file existsAlways review AI generated responses prior to use.
Generated with [Claude Code](https://claude.com/claude-code) via openshift-developer plugin
--ci flag ($3) IS set: Skip — no PR was created in CI mode--ci flag ($3) is NOT set:
gh pr edit {PR_NUMBER} --body "{new_description}"$1 — The JIRA issue to solve (required)$2 — The remote repository to push the branch (required)$3 — Optional --ci flag for non-interactive CI automation mode. When set, skips all user prompts and proceeds automatically.Solve a specific JIRA issue:
/openshift-developer:jira-solve OCPBUGS-12345 origin
Solve in CI mode (non-interactive):
/openshift-developer:jira-solve OCPBUGS-12345 origin --ci
JIRA_USERNAME and JIRA_API_TOKEN for Atlassian Clouddevelopment
Use when a deeper level of code review is requested. Multi-agent panel code review with specialist reviewers and forced runtime reproducers for all BLOCKING bug findings. Optionally posts to GitHub/GitLab as a PENDING review.
development
Review agentic documentation — verify claims locally against source code first, then use chai-bot for cross-repo and cross-functional verification
development
Use this skill when debugging a failed Prow CI job.
testing
Snapshot OpenShift payload data (release controller, PR diffs, comments, CI jobs, JUnit results, regression tracking) to a local directory for offline analysis