Skill Setup
jr ships with a skill file (SKILL.md) that teaches AI agents how to use the CLI — runtime command discovery, token-efficient patterns, error handling, and batch operations.
The skill follows the Agent Skills open standard, supported by 30+ tools including Claude Code, Cursor, VS Code Copilot, OpenAI Codex, Gemini CLI, Goose, and more.
Download the Skill
curl -sL https://raw.githubusercontent.com/sofq/jira-cli/main/skill/jira-cli/SKILL.md \
-o SKILL.mdOr copy from a local jr install:
cp $(brew --prefix jr)/share/jr/skill/jira-cli/SKILL.md SKILL.mdSetup by Tool
Claude Code
| Scope | Path |
|---|---|
| Project (shared via git) | .claude/skills/jira-cli/SKILL.md |
| Personal (all projects) | ~/.claude/skills/jira-cli/SKILL.md |
mkdir -p .claude/skills/jira-cli
cp SKILL.md .claude/skills/jira-cli/SKILL.mdGrant permission to run jr:
// .claude/settings.json
{
"permissions": {
"allow": ["Bash(jr *)"]
}
}Claude loads the skill automatically when you mention Jira, or invoke it directly with /jira-cli.
See Claude Code skills docs for more details.
Cursor
| Scope | Path |
|---|---|
| Project | .cursor/skills/jira-cli/SKILL.md or .agents/skills/jira-cli/SKILL.md |
| Personal | ~/.cursor/skills/jira-cli/SKILL.md |
mkdir -p .cursor/skills/jira-cli
cp SKILL.md .cursor/skills/jira-cli/SKILL.mdCursor discovers skills automatically at startup and applies them when relevant. Invoke manually with /jira-cli in Agent chat.
See Cursor skills docs for more details.
VS Code Copilot
| Scope | Path |
|---|---|
| Project | .github/skills/jira-cli/SKILL.md or .agents/skills/jira-cli/SKILL.md |
| Personal | ~/.copilot/skills/jira-cli/SKILL.md |
mkdir -p .github/skills/jira-cli
cp SKILL.md .github/skills/jira-cli/SKILL.mdCopilot discovers skills progressively — reads metadata first, loads full instructions when relevant.
See VS Code skills docs for more details.
OpenAI Codex
| Scope | Path |
|---|---|
| Project | .agents/skills/jira-cli/SKILL.md |
| Personal | ~/.agents/skills/jira-cli/SKILL.md |
| System | /etc/codex/skills/jira-cli/SKILL.md |
mkdir -p .agents/skills/jira-cli
cp SKILL.md .agents/skills/jira-cli/SKILL.mdCodex scans .agents/skills/ from the current directory up to the repo root. Invoke with /skills or $jira-cli in the prompt.
See Codex skills docs for more details.
Gemini CLI
| Scope | Path |
|---|---|
| Workspace | .gemini/skills/jira-cli/SKILL.md or .agents/skills/jira-cli/SKILL.md |
| Personal | ~/.gemini/skills/jira-cli/SKILL.md or ~/.agents/skills/jira-cli/SKILL.md |
mkdir -p .gemini/skills/jira-cli
cp SKILL.md .gemini/skills/jira-cli/SKILL.mdGemini CLI injects skill descriptions into the system prompt at session start. When a matching task is detected, it calls activate_skill with user confirmation.
TIP
.agents/skills/ takes precedence over .gemini/skills/ when both exist.
See Gemini CLI skills docs for more details.
Goose
| Scope | Path |
|---|---|
| Project | .goose/skills/jira-cli/SKILL.md or .agents/skills/jira-cli/SKILL.md |
mkdir -p .goose/skills/jira-cli
cp SKILL.md .goose/skills/jira-cli/SKILL.mdSee Goose skills docs for more details.
Universal Path (.agents/skills/)
Most tools scan .agents/skills/ as a vendor-neutral directory. If your tool isn't listed above, or you want one path that works across multiple tools:
mkdir -p .agents/skills/jira-cli
cp SKILL.md .agents/skills/jira-cli/SKILL.mdThis works with Codex, Cursor, VS Code Copilot, Gemini CLI, Goose, and others that support the Agent Skills standard.
What the Skill Teaches
The SKILL.md teaches agents to:
| Capability | How |
|---|---|
| Discover commands | jr schema for runtime discovery — no hardcoded knowledge |
| Workflow commands | jr workflow for transitions, assignments, comments, issue creation — no raw JSON |
| Minimize tokens | --preset for common field sets, --fields + --jq for custom filtering |
| Batch calls | jr batch for multiple operations in one process |
| Handle errors | Branch on exit codes: 0=ok, 1=error, 2=auth, 3=not_found, 4=validation, 5=rate_limited, 6=conflict, 7=server |
| Configure auth | Setup with jr configure, profiles, env vars |
| Troubleshoot | Common issues: auth failures, unknown commands, large responses |
For Tools Without Skill Support
If your tool doesn't support the Agent Skills standard, add this to the system prompt or agent instructions:
You have access to `jr`, an agent-friendly Jira CLI.
- All output is JSON on stdout. Errors are JSON on stderr.
- Use `jr workflow` for transitions, assignments, comments, and issue creation (no raw JSON).
- Use --preset (agent, detail, triage, board) or --fields + --jq to limit token usage.
- Exit codes: 0=ok, 1=error, 2=auth, 3=not_found, 4=validation, 5=rate_limited, 6=conflict, 7=server.
- Run `jr schema` to discover commands at runtime.
- Use `jr batch` to run multiple operations efficiently.