Agent skill

jira-tool

Create, update, transition, and manage Jira tickets. Use when working with Jira issues, tracking work, or automating ticket workflows.

Stars 487
Forks 35

Install this agent skill to your Project

npx add-skill https://github.com/dmmulroy/.dotfiles/tree/main/home/.config/opencode/skill/jira-tool

SKILL.md

Jira Tool

CLI for Jira operations via Cloudflare Access authentication.

Quick Reference

Task Command
Create ticket scripts/jira-tool.sh create -p PROJECT -s "Summary" [-t Type] [-d "Desc"] [-l labels]
Get ticket scripts/jira-tool.sh get ISSUE-KEY
Update ticket scripts/jira-tool.sh update ISSUE-KEY [-s "Summary"] [-d "Desc"] [-a user]
Add comment scripts/jira-tool.sh comment ISSUE-KEY "Comment body"
Transition scripts/jira-tool.sh transition ISSUE-KEY [STATUS]
Close ticket scripts/jira-tool.sh close ISSUE-KEY
Assign scripts/jira-tool.sh assign ISSUE-KEY [username]
Search scripts/jira-tool.sh search "JQL query" [max]
Auth status scripts/jira-tool.sh status

Authentication

Auth is automatic via cloudflared. On first use or token expiry:

  • Browser opens for Cloudflare Access login
  • Token valid 24h

Check status: scripts/jira-tool.sh status

Commands

Create

bash
scripts/jira-tool.sh create \
  -p PROJECT \
  -s "Fix authentication bug" \
  -t Bug \
  -d "Detailed description" \
  -l "urgent,backend" \
  --priority High \
  -a username

Required: -p (project), -s (summary) Optional: -t (type, default: Task), -d (description), -l (labels), --priority, -a (assignee), --parent (for Sub-task), --epic (link to epic)

Sub-tasks

bash
# Create a sub-task under an existing issue
scripts/jira-tool.sh create -p PROJ -s "Subtask summary" -t Sub-task --parent PROJ-123

Link to Epic

bash
# Create task linked to an epic
scripts/jira-tool.sh create -p PROJ -s "Task summary" --epic PROJ-100

Note: Assignee uses Jira username (not email). Find via search on existing tickets.

Get

bash
scripts/jira-tool.sh get PROJ-123

Returns JSON with summary, status, assignee, priority, description, labels.

Update

bash
scripts/jira-tool.sh update PROJ-123 -s "New summary" -d "New desc" -a newuser

Comment

bash
scripts/jira-tool.sh comment PROJ-123 "Fixed in commit abc123"

Transition

List available transitions:

bash
scripts/jira-tool.sh transition PROJ-123

Transition to status:

bash
scripts/jira-tool.sh transition PROJ-123 "In Progress"

Close

Tries common close statuses (Done, Closed, Resolved, Complete):

bash
scripts/jira-tool.sh close PROJ-123

Assign

bash
scripts/jira-tool.sh assign PROJ-123 username   # assign
scripts/jira-tool.sh assign PROJ-123 -1         # unassign

Search

bash
scripts/jira-tool.sh search "project = DEVTOOLS AND status = Open" 50

Delete

bash
scripts/jira-tool.sh delete PROJ-123

Common JQL Queries

Query JQL
My open tickets assignee = currentUser() AND status != Done
Project backlog project = PROJ AND status = "To Do"
Recently updated project = PROJ AND updated >= -7d
High priority priority in (High, Highest) AND status != Done

Output

Most commands return JSON. Parse with jq:

bash
scripts/jira-tool.sh get PROJ-123 | jq '.fields.status.name'
scripts/jira-tool.sh search "assignee = currentUser()" | jq '.issues[].key'

Typical Workflow

bash
# Create and start work
scripts/jira-tool.sh create -p PROJ -s "Implement feature X" -t Task
scripts/jira-tool.sh transition PROJ-456 "In Progress"

# Update progress
scripts/jira-tool.sh comment PROJ-456 "Initial implementation done"

# Complete
scripts/jira-tool.sh close PROJ-456

Expand your agent's capabilities with these related and highly-rated skills.

dmmulroy/.dotfiles

pr-walkthrough

Generate an interactive visual walkthrough of any pull/merge request as a local HTML webapp. Produces a multi-slide presentation with SVG diagrams, annotated code, and architecture visuals. Pass a PR/MR URL and optional audience context (e.g. "assume I don't know Rust"). Use when the user says "walkthrough this PR", "explain this MR", "visual walkthrough", "PR presentation", or provides a PR/MR URL and asks for a walkthrough.

487 35
Explore
dmmulroy/.dotfiles

tdd

Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.

487 35
Explore
dmmulroy/.dotfiles

write-a-prd

Create a PRD through user interview, codebase exploration, and module design. Use when user wants to write a PRD, create a product requirements document, or plan a new feature.

487 35
Explore
dmmulroy/.dotfiles

grill-me

Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "grill me".

487 35
Explore
dmmulroy/.dotfiles

prd-to-todos

Break a PRD into independently-grabbable file-backed todos using tracer-bullet vertical slices. Use when the user wants to convert a PRD into implementation tasks, create vertical-slice todos, or break down a PRD into work items.

487 35
Explore
dmmulroy/.dotfiles

tmux

Remote control tmux sessions for interactive CLIs (python, gdb, etc.) by sending keystrokes and scraping pane output.

487 35
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results