ClaudeCode_Playwright_Demo: Command for Claude Code

.claude/commands/fetch_jira_requirements.md

fetch_jira_requirements is a command for Claude Code from anhtester/ClaudeCode_Playwright_Demo. It costs 17 tokens per session (758 once invoked), scanned A, a copy of fetch_jira_requirements, MIT.

A command for retrieving requirements, user stories, or issues from Jira, a tool for tracking software work, and saving them as Markdown or JSON.

In plain words
What is it for?
Use it to fetch one issue, a project or issue type, matching JQL results, or the children of an epic, then choose the output format.
Why use it?
It removes the need to copy ticket details manually when preparing work or test automation.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is anhtester/ClaudeCode_Playwright_Demo's own configuration. It tells Claude Code how to work on ClaudeCode_Playwright_Demo itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ClaudeCode_Playwright_Demo configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/integrations/jira/jira_fetcher.js --issue <ISSUE_KEY>.

Reuse

Borrowing it

Nothing to install: this file belongs to anhtester/ClaudeCode_Playwright_Demo. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/anhtester/ClaudeCode_Playwright_Demo/main/.claude/commands/fetch_jira_requirements.md
Clone the repo
git clone --depth 1 https://github.com/anhtester/ClaudeCode_Playwright_Demo

Made for: Claude Code.

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 fetch_jira_requirements

README.md
[![agentmods](https://agentmods.dev/badge/commands/anhtester/claudecode_playwright_demo/fetch_jira_requirements.svg)](https://agentmods.dev/commands/anhtester/claudecode_playwright_demo/fetch_jira_requirements)
Your own site
<a href="https://agentmods.dev/commands/anhtester/claudecode_playwright_demo/fetch_jira_requirements"><img src="https://agentmods.dev/badge/commands/anhtester/claudecode_playwright_demo/fetch_jira_requirements.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 758 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 89% copy Near-identical to another mod 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.00017 $0.00758
Opus 5 $0.00009 $0.00379
Sonnet 5 $0.00003 $0.00152
Haiku 4.5 $0.00002 $0.00076

Measured 7d ago against content hash 941f9936866c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

fetch_jira_requirements scanned grade A with 0 findings 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 7d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

89% identical to fetch_jira_requirements — 8 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/fetch_jira_requirements.md · 61 lines

How it starts

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

Workflow: Fetch Jira Requirements

BẮT BUỘC (MANDATORY SKILL): Bạn PHẢI nạp và đọc kỹ nội dung của skill jira_integration (tại .agent/skills/jira_integration/SKILL.md) để biết cách sử dụng scripts trước khi bắt đầu.

Workflow này giúp lấy requirements, user stories, hoặc issues từ Jira và chuyển thành tài liệu phục vụ test automation.

Các bước thực hiện:

  1. Kiểm tra prerequisites:

    • Đọc skill jira_integration để nắm cấu trúc scripts.
    • Kiểm tra file .env đã tồn tại và được cấu hình đúng.
    • Kiểm tra dependencies đã được cài đặt (scripts/integrations/node_modules/).
    • Nếu chưa cài, chạy: cd scripts/integrations && npm install
  2. Xác định thông tin cần lấy:

    • Hỏi user cung cấp thông tin:
      • Issue key cụ thể (VD: PROJ-123) → dùng --issue
      • Project key + Issue type (VD: PROJ, Story) → dùng --project --type
      • JQL query tùy chỉnh → dùng --jql
      • Epic key (lấy children) → dùng --epic
    • Xác định format output: json (default) hoặc md (markdown requirement)
  3. Thực thi script:

    • Chạy lệnh phù hợp:
    # Lấy 1 issue cụ thể
    node scripts/integrations/jira/jira_fetcher.js --issue <ISSUE_KEY>
    
    # Lấy issues theo project
    node scripts/integrations/jira/jira_fetcher.js --project <PROJECT_KEY> --type <TYPE> --max <N>
    
    # Tìm theo JQL
    node scripts/integrations/jira/jira_fetcher.js --jql "<JQL_QUERY>"
    
    # Xuất Markdown
    node scripts/integrations/jira/jira_fetcher.js --issue <KEY> --format md --output ./requirements/jira
    
  4. Xử lý kết quả:

    • Kiểm tra output file được tạo trong requirements/jira/ (hoặc --output chỉ định).
    • Nếu format json: Đọc và hiển thị tóm tắt issues cho user.
    • Nếu format md: Hiển thị nội dung markdown requirement cho user review.
    • Nếu gặp lỗi: Đọc log, phân tích nguyên nhân theo bảng Troubleshooting trong skill.
  5. Xử lý lỗi thường gặp:

    • HTTP 401: Token sai → hướng dẫn user kiểm tra JIRA_API_TOKEN hoặc JIRA_PAT
    • HTTP 404: Issue không tồn tại hoặc JIRA_BASE_URL sai
    • File .env not found: Hướng dẫn user copy .env.example.env
    • Module not found: Chạy npm install trong scripts/integrations/

Read the full file on GitHub · 61 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. 7d ago First seen · 61 lines · 17 tokens per session scan A 941f9936866c

Subscribe to this mod's changes

fetch_jira_requirements is a command published in the GitHub repository anhtester/ClaudeCode_Playwright_Demo (2 stars, last pushed 3mo ago), licensed MIT. It adds 17 tokens to every session and 758 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to fetch_jira_requirements, differing in 8 lines, and is treated as a copy.