jira-discover-project

jira-discover-project is a command for Claude Code from grandcamel/JIRA-Assistant-Skills. It costs 16 tokens per session (1,247 once invoked), scanned B, original, MIT.

A JIRA project discovery tool that examines project settings and a sample of recent issues. JIRA is a work-tracking system where teams manage issues such as bugs and tasks.

In plain words
What is it for?
Use it to review issue types, components, versions, priorities, users, labels, field usage, and parent relationships in a JIRA project.
Why use it?
It removes the need to inspect project conventions manually before creating issues. The findings help choose sensible defaults based on the project's existing setup and activity.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the jira-assistant-skills plugin — 14 skills, 4 commands, 15 agents shipped together

Good fit Use it to review issue types, components, versions, priorities, users, labels, field usage, and parent relationships in a JIRA project.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/grandcamel/jira-assistant-skills/jira-discover-project
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/grandcamel/JIRA-Assistant-Skills

Made for: Claude Code.

Or install jira-assistant-skills, the plugin that ships this one along with the rest of its 14 skills, 4 commands, 15 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for jira-discover-project

README.md
[![agentmods](https://agentmods.dev/badge/commands/grandcamel/jira-assistant-skills/jira-discover-project/github.svg)](https://agentmods.dev/commands/grandcamel/jira-assistant-skills/jira-discover-project)
Your own site
<a href="https://agentmods.dev/commands/grandcamel/jira-assistant-skills/jira-discover-project"><img src="https://agentmods.dev/badge/commands/grandcamel/jira-assistant-skills/jira-discover-project/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for jira-discover-project

Your own site · 80×15
<a href="https://agentmods.dev/commands/grandcamel/jira-assistant-skills/jira-discover-project"><img src="https://agentmods.dev/badge/commands/grandcamel/jira-assistant-skills/jira-discover-project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,247 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.01247
Opus 5 $0.00008 $0.00624
Sonnet 5 $0.00003 $0.00249
Haiku 4.5 $0.00002 $0.00125

Measured 13d ago against content hash f7e21d632061, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

jira-discover-project scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat .claude/jira-project-{PROJECT_KEY}/defaults.json
commands/jira-discover-project.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

JIRA Project Discovery

You are helping the user discover and configure JIRA project context. This context enables intelligent defaults when creating issues.

What Gets Discovered

  • Metadata: Issue types, components, versions, priorities, assignable users
  • Patterns: Top assignees, common labels, and per-issue-type breakdowns based on recent activity
  • Field usage: Per-field fill rates and value distributions (issue type, status, priority) from sampled issues
  • Hierarchy: Parent hierarchy usage (how often sampled issues have a parent)

Step 1: Get Project Key

Ask the user which project they want to configure:

"Which JIRA project would you like to discover context for? Please provide the project key (e.g., PROJ, DEV, MYAPP)."

If the user provides multiple projects, handle them one at a time.

Step 2: Run Discovery

Run discovery with the jira-as CLI (credentials come from the environment or settings — run /jira-assistant-setup first if not configured):

jira-as ops discover-project {PROJECT_KEY}

Useful options:

Option Description
-s, --sample-size N Number of issues to sample for patterns
-d, --days N Sample period in days
-o, --output [text|json] Output format (json returns the full discovery data)
-v, --verbose Verbose output

The command prints everything to stdout — it does not write any files. Capture the output.

Step 3: Review Results

After discovery completes, summarize what was found:

For the user, display:

  • Number of issue types found
  • Number of components found
  • Number of versions
  • Top assignees by activity
  • Most common labels
  • Field fill rates and value distributions worth noting
  • Parent hierarchy usage
  • Sample size and period

Example output:

Discovery complete for PROJ!

Discovered:
- 6 issue types: Bug, Story, Task, Epic, Subtask, Improvement
- 8 components: Backend, Frontend, API, Database, CI/CD, Docs, Testing, UX
- 3 versions: v2.1.0, v2.2.0, v3.0.0-beta

Patterns (last 30 days, 85 issues sampled):
- Top assignees: John Doe (35%), Jane Smith (28%), Bob Wilson (15%)
- Common labels: backend, needs-review, urgent, regression
- Priority distribution: High (45%), Medium (35%), Low (20%)
- Field fill rates: description 60%, components 40%, duedate 5%
- Parent hierarchy: 20% of sampled issues have a parent

Read the full file on GitHub · 152 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 152 lines · 16 tokens per session scan B f7e21d632061

Subscribe to this mod's changes

jira-discover-project is a command published in the GitHub repository grandcamel/JIRA-Assistant-Skills (46 stars, last pushed 3d ago), licensed MIT. It adds 16 tokens to every session and 1,247 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.