build-setup
Set up build environment and test fixtures for COBOL-to-Java migrations. Creates compilation infrastructure for both languages…
This skill should be used when the user asks to "set up a Jira automation to create pull requests", "poll Jira for create-pr issues", "automatically create GitHub PRs from Jira tickets", "deploy a Jira issue-to-PR automation", "create a Jira to GitHub PR workflow", "set up the
$ npx -y skills add openhands/extensions --skill jira-issue-to-pr --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/jira-issue-to-prContext preview
The summary Claude sees to decide when to auto-load this skill.
This skill should be used when the user asks to "set up a Jira automation to create pull requests", "poll Jira for create-pr issues", "automatically create GitHub PRs from Jira tickets", "deploy a Jira issue-to-PR automation", "create a Jira to GitHub PR workflow", "set up the
name: jira-issue-to-pr description: > This skill should be used when the user asks to "set up a Jira automation to create pull requests", "poll Jira for create-pr issues", "automatically create GitHub PRs from Jira tickets", "deploy a Jira issue-to-PR automation", "create a Jira to GitHub PR workflow", "set up the Jira issue to GitLab MR automation", "set up the Jira issue to Bitbucket PR automation", "open GitLab merge requests from Jira tickets", "open Bitbucket pull requests from Jira tickets", or mentions automating pull request or merge request creation from a Jira label. Deploys a cron-based OpenHands automation that watches a Jira Cloud project for issues labeled with a configurable label (default: "create-pr") and spawns an agent conversation that opens a pull request on GitHub (the default), a merge request on GitLab, or a pull request on Bitbucket for each new issue found, chosen with git_provider. The target repository is read from the body of the Jira ticket - no repo parameter is required at deploy time.
Deploys a cron automation that polls a Jira Cloud instance for open issues carrying a configurable label and, for each new issue, starts an OpenHands agent conversation that clones the repository specified in the ticket body on the configured git provider (GitHub by default, GitLab or Bitbucket with `git_provider`), creates a branch, implements or placeholders the requested change, and opens a pull request (a merge request on GitLab). Once the conversation starts, it also posts a comment on the Jira ticket: "I'm on it: <conversation URL>".
1. **Poll** - every N minutes, search the Jira Cloud instance for open issues with the configured label: through the user's connected Atlassian Rovo MCP server on OpenHands Cloud and Enterprise, or with `POST /rest/api/3/search/jql` and an API token. 2. **Deduplicate** - on the very first run the script records a `first_run_at` baseline timestamp in the KV store; any issue whose `updated` timestamp predates that baseline is skipped (no backfill blast on first deploy). Using `updated` rather than `created` means an old issue that has its label added after the automation is deployed will still be picked up. Subsequent runs filter by both `first_run_at` and a KV-backed set of already-processed issue keys. A `max_new_per_run` cap (default 5) limits conversations started per cron firing as additional defense-in-depth. 3. **Dispatch** - for each new issue, start an independent agent conversation with a PR-creation prompt: `POST /api/conversations` on the agent server when running locally, or `POST /api/v1/app-conversations` on OpenHands Cloud. The prompt instructs the agent to extract the target repository (`owner/repo` on GitHub; `group/project` or a URL on GitLab; `workspace/repo` on Bitbucket) from the ticket body. 4. **Comment** - immediately after the conversation is created, post a Jira comment on the issue: `I'm on it: <conversation URL>`. 5. **Persist** - record the processed issue key so re-runs never duplicate work.
The polling run is lightweight (stdlib only, no SDK install); LLM costs are incurred only when new issues are actually found.
Before deploying, ensure the following are in place:
| Requirement | Details | |---|---| | **Jira access** | OpenHands Cloud and Enterprise: the user's connected Atlassian Rovo MCP server, with no API token. Local, or without that connection: a Jira API token stored as an OpenHands secret (see [Jira API token setup](#jira-api-token)) | | **Git provider access** | OpenHands Cloud and Enterprise: the user's connected GitHub, GitLab or Bitbucket integration, whichever `git_provider` names. A connected MCP server also works - GitHub's (with the saved access token), GitLab's, or Atlassian Rovo for Bitbucket - with a private repository read through the tools rather than cloned. Local: a token for that provider stored as an OpenHands secret (`GITHUB_TOKEN` with `repo` + `workflow`, `GITLAB_TOKEN` with `api`, `BITBUCKET_TOKEN`) so the spawned conversation can push branches and open the request | | **KV store** (OpenHands Cloud only) | The automation service must have its KV store enabled (`kvStore` in `GET /api/automation/v1/capabilities`); each cloud run starts in a fresh sandbox, so processed issues are remembered there | | **Jira label** | The label to watch for (default: `create-pr`) must exist in the Jira project | | **Target repository** | Must exist on the configured provider; the connected integration or token must have write access |
Set `OPENHANDS_HOST` and `AUTH_HEADER` for the curl commands below:
OPENHANDS_HOST="<HOST value>" AUTH_HEADER="Authorization: Bearer $OPENHANDS_API_KEY"
OPENHANDS_HOST="http://localhost:8000" AUTH_HEADER="X-Session-API-Key: $OPENHANDS_AUTOMATION_API_KEY"
First decide how the poller reaches Jira:
user has connected it. OpenHands calls Jira for the poller through that connection, so do not ask for a Jira email or an API token and do not create a secret.
Then pick `git_provider` from the automation the user asked for: `github` for *Jira issue to GitHub PR* (the default, so it can be left out), `gitlab` for *Jira issue to GitLab MR*, `bitbucket` for *Jira issue to Bitbucket PR*. It changes only what the conversation is told; the conversation pushes with the user's connected integration for that provider, or delivers through the connected MCP server's tools when i
This repository is the public extensions registry for OpenHands. It contains reusable, shareable skills, plugins, and Agent Canvas Apps that customize agent behavior and interfaces. Skills overview docs: SDK skill guide:
Set up build environment and test fixtures for COBOL-to-Java migrations. Creates compilation infrastructure for both languages…
End-to-end COBOL to Java migration workflow. Handles build setup, mainframe dependency removal, and code migration with test…
Create a transformation guide for replacing mainframe-specific COBOL constructs with standard COBOL equivalents. Use when…
Apply mainframe dependency transformations to COBOL code using a pre-generated transformation guide. Converts CICS/VSAM…
Migrate COBOL code to idiomatic Java, preserving business logic while following Java best practices. Use for COBOL modernization…
A test skill that responds to the magic word "alakazam" with a specific phrase