jira-cli
Skill2 starsChanged 6 months agoMITView on GitHub
Drive Jira from the shell via the `jira` CLI - read, create, edit, search, assign, transition, and comment on issues; run JQL; manage sprints, boards, projects, and users. Use whenever the user mentions a Jira issue key (e.g. PROJ-123), asks to query, update, or automate Jira, or wants to look up sprints/boards/projects. All output is non-interactive JSON by default.
- Installs packages
8 other projects use a version of this.
Adopted by
Most recently taken up by
- PixiBixi/claude-skillstheir own version, first seen Oct 25, 2026
- air-gapped/skillstheir own version, first seen Oct 19, 2026
- ankitpokhrel/jira-clitheir own version, first seen Oct 17, 2026
- sofq/jira-clitheir own version, first seen Oct 13, 2026
- mgiovani/cc-arsenaltheir own version, first seen Sep 25, 2026
- hideki5123/agent-skill-settheir own version, first seen Jul 9, 2026
Used with
Projects with it also use handoff.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillhandoff
Compact the current conversation into a handoff document for another agent to pick up.
Also in 3 projects that use this
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- ankitpokhrel/jira-cli★ 6.1ksame name
- mgiovani/cc-arsenal★ 8same name
- air-gapped/skills★ 6same name
- hideki5123/agent-skill-set★ 2same name
- sofq/jira-cli★ 2same name
- khanglvm/skills★ 1same name
- rozza/ai-skills★ 1same name
- PixiBixi/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 2 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
If missing -> the user logs in themselves.
- Distinctive: line 27
Approve: Wait for confirmation. If they want changes, redraft and show it again — never execute a partially-approved change.
- Distinctive: line 28
Execute: Run the approved command verbatim.
- Very specific: line 94
Never fetch the content URL with unauthenticated curl or expose credentials to another host.
- Very specific: line 133
If the jira CLI itself misbehaves (a crash, a wrong result, a missing flag — not a Jira data error), and gh is installed (gh --version …
- Very specific: line 141
If gh is missing or not authenticated, give the user the title and body to file manually at …
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
jira-cli
Non-interactive CLI for Jira Cloud and Jira Server/Data Center. JSON by default, markdown on request, designed to be driven by an agent. Cloud uses REST v3 + ADF; Server/Data Center uses REST v2 + wiki/plain text bodies.
Prerequisite: the jira binary must be installed (npm install -g @888aaen/jira-cli) and authenticated. If jira ping fails, see references/auth-setup.md.
Boot sequence
jira auth status- is a token present in the keychain?- If missing -> the user logs in themselves; point them to
references/auth-setup.md. Never handle the token yourself. jira ping- verifies token + connectivity against the API.jira config show- inspect the active profile and defaults.- Pick a command from the index below.
Draft before writing (human approval required)
Never run a mutating command without showing the user the exact command and its effect, then getting their approval. Covers issue create, edit, delete, assign, move, comment add, link / unlink, clone, and sprint add / start / close.
Flow: draft -> approve -> execute.
- Draft. Show the exact command line(s) and a one-line summary of the effect.
- Approve. Wait for confirmation. If they want changes, redraft and show it again — never execute a partially-approved change.
- Execute. Run the approved command verbatim. If a key won't resolve or a field is rejected, stop and re-draft — don't improvise a different write.
Reads (list, view, search, attachment downloads, me/mine, ping, board/project/user queries) never mutate Jira — run them freely, including to gather data for an accurate draft. Attachment downloads do write to the explicit local --output path.
Core rules
- Draft mutating commands for approval before running them. See Draft before writing. Reads run freely.
- JSON is the default output. Parse it directly. Use
--format markdownonly when rendering for the user. - Never invent keys. Resolve project keys via
jira project list, issue keys viajira issue list/jira search, account IDs viajira user search. - JQL values use double quotes:
status = "In Progress",project = "PROJ". - Set and activate a named context once to stop repeating flags:
jira context set work --project PROJ --board-id 42 --profile default && jira context use work. --profile NAMEoverrides the active context's authentication profile for a single command.jira auth statusis local-only (keychain check). Usejira pingorjira auth whoamito confirm the token actually works.- Custom fields use raw IDs:
--field customfield_10016=5. Repeatable. - Bodies are Markdown.
--body/-b(and comment text) take CommonMark - headings, lists, fenced code blocks, links, bold/italic. The CLI converts it to ADF on Cloud and wiki markup on Server/DC. Write Markdown, not raw{code}/h3.wiki syntax. - Respect the boundary.
jira boundary showlists what you may access (projects and required labels). Every command is confined to it, and requests outside it fail withoutside the jira boundary. You may change the context freely, but changing the boundary requires sudo, which only the user can do. Never runsudo jira boundary …yourself, and never try to bypass the boundary (editing boundary files, changing permissions, reusing cached sudo credentials, or calling Jira outside this CLI). If you need wider access, show the user the exact command, e.g.sudo jira boundary set --project PROJ --label safe, and ask them to run it.jira apiis refused while a boundary is active.
Intent -> command
| Intent | Command |
| List issues in current project | jira issue list (alias ls) |
| Find dependency-ready work | jira issue ready (no unresolved Blocks blockers) |
| Inspect dependency graph | jira issue graph (nodes, blocker -> blocked edges, ready, blocked, cycles) |
| Visually verify dependencies | jira issue graph-pretty (connected lines and concise state markers) |
| List issues assigned to me | jira mine (alias my); --all includes done |
| View an issue | jira issue view PROJ-123 (alias get; includes attachment metadata; supports -F) |
| Download an attachment | jira issue attachment download PROJ-123 <id-or-filename> -o /tmp/file |
| Create an issue | jira issue create -p PROJ -s "Summary" -t Bug [-b "body"] [-y High] |
| Edit summary / labels / etc. | jira issue edit PROJ-123 -s "New summary" (alias update) |
| Edit a custom field | jira issue edit PROJ-123 --field customfield_10016=5 |
| Delete an issue | jira issue delete PROJ-123 |
| Assign to me | jira issue assign PROJ-123 me (x to unassign) |
| Assign to a user | jira issue assign PROJ-123 <account-id-or-email> |
| Transition status | jira issue move PROJ-123 "In Progress" (alias transition, case-insensitive) |
| Comment | jira issue comment add PROJ-123 "text" |
| Link / unlink | jira issue link PROJ-1 PROJ-2 Blocks, jira issue unlink PROJ-1 PROJ-2 |
| Clone | jira issue clone PROJ-123 |
| JQL search | jira search jql "project = PROJ AND ..." |
| Full-text search | jira search text "terms" |
| Boards | jira board list, jira board get 42, jira board issues 42 |
| Sprints | jira sprint list 42 --state active, jira sprint get <id>, jira sprint issues <id> |
| Projects | jira project list, jira project get PROJ |
| Users | jira user search "jane", jira user get <account-id> |
| Current user (display name) | jira me (use --raw for full JSON) |
| My activity for a day | jira mine audit [--date YYYY-MM-DD] (also jira me audit) |
| Connectivity check | jira ping |
| Update the CLI | jira update (uses npm for npm installations, GitHub otherwise) |
| Open in browser | jira open PROJ-123 |
| Profiles | jira config init/list/show/set/use/delete |
| Anything with no command above | jira api <path> — raw REST passthrough (-X, -d, -H) |
| Discover API endpoints | jira api --list [filter...] (offline, no auth needed) |
| Allowed scope (boundary) | jira boundary show; changing it needs sudo, so ask the user |
| Context defaults | jira context set NAME --project PROJ --profile PROFILE; switch with jira context use NAME, inspect with jira context list |
When no predefined command fits, use jira api: it sends a raw request with the profile's auth and prints the response verbatim. Full paths (starting with /) pass through unchanged; shorthand paths like issue/PROJ-1 get the platform prefix for the instance flavor (/rest/api/3 on Cloud, /rest/api/2 on Server/Data Center). -d implies POST (@file and - for stdin work); find the right endpoint first with jira api --list <terms>, which searches an embedded catalog of the official API for the profile's flavor. Errors print Jira's error body and exit non-zero.
For anything not listed, run jira <group> --help - help is authoritative. Failed commands automatically include the failing command's full help text on stderr; use it to correct the next call instead of repeating the same command.
jira issue get PROJ-123 returns attachment metadata in fields.attachment by default and adds a structured nextSteps download command when attachments exist. In markdown, that command appears at the bottom under Next steps. Prefer an attachment ID when downloading because filenames can be duplicated. Download to an explicit local path, then inspect that path with the available image, document, archive, or text-reading tool. The same guidance is available through jira issue get --help and jira issue attachment download --help:
jira issue get PROJ-123 | jq '.fields.attachment[] | {id, filename, mimeType, size}'
jira issue attachment download PROJ-123 10042 --output /tmp/jira-10042.pngNever fetch the content URL with unauthenticated curl or expose credentials to another host; let the CLI perform the authenticated download. Binary bytes are never printed to stdout.
Dependency commands inherit the active project/context filters and accept explicit scope flags; --status "Define,To Do,Backlog" selects multiple statuses. jira issue ready orders actionable issues by how many unresolved issues they directly unblock. jira issue graph retains linked blockers outside the selected scope as inScope: false; inspect .cycles before trying to sequence cyclic work. Use jira issue graph-pretty when a human should verify the full topology: it builds the graph first, layers it by dependency depth, and draws continuous top-down branch and join lines. ●, ○, ✓, ◇, and ↻ mark ready, blocked, resolved, external, and cyclic nodes. A blocker counts as resolved only when Jira's resolution field is set. Both "blocks" and "depends on" link types are followed by default; use --link-type NAME (repeatable) to follow only specific link types.
Example graph-pretty output:
Dependency graph (blocker ──▶ blocked)
Legend: ● ready ○ blocked ✓ resolved ◇ external ↻ cycle
Component 1
● PROJ-1
│
┌──────┴──────┐
▼ ▼
○ PROJ-2 ○ PROJ-3
│ │
└──────┬──────┘
▼
○ PROJ-4Output format
| Flag | Use |
--format json | default; parse programmatically |
--format markdown | structured display for the user |
Persistent default: jira context set NAME --display markdown. The --format flag always wins.
When to load a reference file
- Auth not working, first-time setup, multiple Jira instances, CI/automation tokens ->
references/auth-setup.md - Writing JQL beyond trivial queries ->
references/jql-cookbook.md - End-to-end issue lifecycle examples ->
references/workflows.md
Reporting CLI problems
If the jira CLI itself misbehaves (a crash, a wrong result, a missing flag — not a Jira data error), and gh is installed (gh --version succeeds) and authenticated, offer to file a bug. Get the user's OK first, then:
gh issue create --repo AndersSpringborg/jira-agent-cli \
--title "<short summary>" \
--body "<exact command run, expected vs actual, jira --version, OS>"If gh is missing or not authenticated, give the user the title and body to file manually at https://github.com/AndersSpringborg/jira-agent-cli/issues. Never paste tokens or secrets into an issue.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

