Pr Jira Linker logo

Pr Jira Linker

Organization
opendatahub-io
pr-jira-linker

Find and link Jira issues to PRs/MRs that are missing Jira references. Supports single PR/MR linking and batch audit of configured repos. Use when the user mentions "link PR to Jira", "scan PRs", "PR audit", "MR missing Jira", "link merge request", or wants to connect code changes to Jira for traceability.

Overview

Publisheropendatahub-io
Repositoryai-helpers
Skill namepr-jira-linker
Stars
39
Forks
76
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by opendatahub-io on GitHub. Read the source before you install it.

Installation

Install the Pr Jira Linker AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-jira/skills/pr-jira-linker
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/opendatahub-io/ai-helpers.git /tmp/ai-helpers
mkdir -p .claude/skills
cp -r /tmp/ai-helpers/plugins/odh-jira/skills/pr-jira-linker .claude/skills/pr-jira-linker
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Pr Jira Linker in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Pr Jira Linker on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Pr Jira Linker is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

PR-Jira Linker

Detects PRs/MRs missing Jira references, finds or creates the matching Jira issue, and links them bidirectionally.

Required Tools

  • GitHub (MCP: user-github): list_pull_requests, pull_request_read, update_pull_request
  • GitLab (MCP: plugin-gitlab-GitLab): get_merge_request, get_merge_request_commits, search, create_workitem_note
  • Jira (MCP: user-mcp-atlassian): jira_search, jira_add_comment, jira_create_issue
  • Shell — git commands, curl for GitLab API fallback (constrained; see safety rules below)

Configuration

The skill reads repository lists and project defaults from a user-provided config.yaml file. A minimal example:

yaml
defaults:
  project_key: "MYPROJECT"
  issue_type: "Task"
  security_level: "Red Hat Employee"
  priority: "Normal"
  component: "Engineering"
  team: "My Team"
  team_id: "your-team-id-here"

repos:
  gitlab:
    - project: "my-org/my-repo"
      host: "gitlab.example.com"
  github:
    - owner: "my-org"
      repo: "my-repo"

Jira Key Detection

Scan for pattern [A-Z][A-Z0-9]+-[0-9]+ in: (1) PR/MR title, (2) description, (3) branch name, (4) commit messages. If found, mark as candidate key detected and verify bidirectional linkage (PR/MR references Jira key and Jira issue has PR/MR URL comment) before classifying as linked.

Mode 1: Single PR/MR

Trigger: User provides a PR/MR URL or says "link this PR to Jira".

Step 1: Read the PR/MR

Use pull_request_read (GitHub) or get_merge_request (GitLab). If GitLab MCP is down, fall back to curl --negotiate -u: against the GitLab REST API under the following mandatory safety constraints:

  1. Host allowlist: Only issue requests to hostnames explicitly listed in config.yaml under repos.gitlab[].host. Reject any target not in the allowlist.
  2. No raw IPs: Reject URLs containing raw IP addresses (IPv4 or IPv6). Resolve hostnames and reject any that resolve to private/reserved ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 127.0.0.0/8, 169.254.0.0/16, ::1, fc00::/7, fe80::/10) to prevent SSRF.
  3. URL canonicalization: Parse the URL, verify scheme is https://, and reconstruct from validated components. Do not pass user-supplied URLs directly to shell commands.
  4. Safe argument passing: Pass URL, host, and path as separate, safely shell-quoted arguments. Never string-concatenate untrusted input into commands. Pass credentials via environment variables (e.g., GITLAB_TOKEN), not interpolated into command strings.
  5. Resource limits: Always use --max-time 30 --max-redirs 3 to enforce timeouts and limit redirects.
  6. Protocol restriction: Use --proto '=https' to prevent protocol downgrade or scheme switching.

Extract title, description, branch name, author.

Step 2: Detect Jira Reference

Scan title, description, branch, and commits for Jira key.

  • Found: Report candidate key and verify bidirectional link status before deciding skip/fix.
  • Not found: Proceed to Step 3.

Step 3: Find Matching Jira

Search Jira with escaped/sanitized keywords from the PR/MR title (treat user text as data, not query syntax). Strip or escape JQL/Lucene operators (+ - && || ! ( ) { } [ ] ^ " ~ * ? : \ /) before constructing the query. If sanitized tokens are empty, fall back to prompting the user for manual input. Show matches and let user pick, or offer to create new / enter key manually / skip.

Step 4: Link Bidirectionally

After user selects or creates a Jira issue:

4a. Add Jira ref to PR/MR: Use update_pull_request (GitHub) to append to description. For GitLab, use create_workitem_note to add a comment with the Jira link.

4b. Add PR/MR link to Jira: Use jira_add_comment with MR/PR URL, repo, branch, and author.

4c. Report success: Show both URLs and confirm what was linked.

Never modify a PR/MR or Jira issue without showing a preview and getting user confirmation.

Mode 2: Batch Audit

Trigger: "scan PRs for missing Jira links", "PR audit", "check repos for unlinked PRs".

  1. Load repos from config.yaml
  2. Scan open PRs/MRs in each repo, run Jira key detection on each
  3. Report: List missing vs. linked (verified bidirectionally), offer to fix individually or fix all
  4. Fix: Run the Single PR/MR flow for each selected item

Creating New Jira Issues

When no matching Jira exists, the skill can create one:

  1. Gather context from PR/MR content (title, description, diff)
  2. Read defaults from config.yaml
  3. Show defaults, ask for modifications
  4. Draft issue with What/Why/What Changed sections
  5. Preview and confirm
  6. Create via jira_create_issue
  7. Return to the linking step

IMPORTANT: Every issue MUST include "security": {"name": "Red Hat Employee"} and "customfield_10001": "[TEAM_ID]" in additional_fields. Never omit these fields.

Error Handling

ErrorAction
GitLab MCP downFall back to curl --negotiate -u: only for hosts allowlisted in config.yaml; reject non-allowlisted targets and raw IPs; enforce --max-time 30 --max-redirs 3 --proto '=https'; pass credentials via env vars
GitHub MCP not availableSkip GitHub repos, process GitLab only
PR/MR already linkedVerify bidirectional linkage, report and skip if confirmed
Jira search returns nothingOffer to create new or enter key manually
PR/MR description update failsFall back to adding a comment
Permission deniedInform user, suggest checking repo access

Examples

Single PR Linking

text
User: Link this PR to Jira https://github.com/my-org/my-repo/pull/42
Assistant: [Reads PR, scans for Jira key, searches Jira, links bidirectionally]

Single MR Linking

text
User: Link this MR to Jira https://gitlab.example.com/my-org/my-repo/-/merge_requests/15
Assistant: [Reads MR via API, scans for Jira key, creates or finds Jira issue, links both]

Batch Audit

text
User: Scan my repos for PRs missing Jira links
Assistant: [Loads repos from config, scans all open PRs/MRs, reports linked vs missing]

Frequently asked questions

What does the Pr Jira Linker AI skill do?

Find and link Jira issues to PRs/MRs that are missing Jira references. Supports single PR/MR linking and batch audit of configured repos. Use when the user mentions "link PR to Jira", "scan PRs", "PR audit", "MR missing Jira", "link merge request", or wants to connect code changes to Jira for traceability.

Why use Pr Jira Linker on TypingMind?

Because you install it once and use it with any model. Pr Jira Linker is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Pr Jira Linker in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/opendatahub-io/ai-helpers/tree/main/plugins/odh-jira/skills/pr-jira-linker. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Pr Jira Linker?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Pr Jira Linker?

As many as you like. As long as a model supports skills, you can use Pr Jira Linker with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Pr Jira Linker AI skill free?

Yes. It is published on GitHub by opendatahub-io under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇