xray-cli

xray-cli is a skill for Claude Code from upex-galaxy/agentic-qa-boilerplate. It costs 140 tokens per session (11,875 once invoked), scanned A, original, MIT.

A command-line tool for managing Xray Cloud, a Jira add-on for organizing and running software tests. It handles tests, test executions, test plans, result imports, statuses, project backups, restores, and defect links.

In plain words
What is it for?
Use it to create or list tests, create executions and plans, import JUnit or Cucumber results, update run statuses, back up or restore projects, and link defects.
Why use it?
It keeps test records and automated results in Xray without requiring each update to be performed manually in Jira.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents); mentions Codex; mentions OpenCode.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bun xray run evidence --id <runId> --file ./screenshots/error.png.

Good fit Use it to create or list tests, create executions and plans, import JUnit or Cucumber results, update run statuses, back up or restore projects, and link defects.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/upex-galaxy/agentic-qa-boilerplate
agentmods
npx agentmods add skills/upex-galaxy/agentic-qa-boilerplate/xray-cli

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 xray-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/upex-galaxy/agentic-qa-boilerplate/xray-cli/github.svg)](https://agentmods.dev/skills/upex-galaxy/agentic-qa-boilerplate/xray-cli)
Your own site
<a href="https://agentmods.dev/skills/upex-galaxy/agentic-qa-boilerplate/xray-cli"><img src="https://agentmods.dev/badge/skills/upex-galaxy/agentic-qa-boilerplate/xray-cli/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 xray-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/upex-galaxy/agentic-qa-boilerplate/xray-cli"><img src="https://agentmods.dev/badge/skills/upex-galaxy/agentic-qa-boilerplate/xray-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 140 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 11,875 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 3 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 64
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • medium Data Exfiltration · line 78
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
  • medium Rogue Agent · line 227
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00140 $0.11875
Opus 5.5 $0.00056 $0.04750
Sonnet 5.5 $0.00028 $0.02375
Haiku 4.5 $0.00014 $0.01188

Measured 18d ago against content hash 0438445e5313, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

xray-cli scanned grade A 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 18d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

bun xray test create --project DEMO --summary "API check" --type Generic --definition "curl http://api.test"
.agents/skills/xray-cli/SKILL.md · 831 lines

How it starts

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

Xray CLI - Test Management

Compact Rules

  • DO: confirm the project is in Modality jira-xray before invoking anything here; a jira-native project (no Xray plugin) routes to /acli instead. Modality is resolved once in /test-documentation Phase 0 and inherited downstream, never re-decided mid-flow.
  • DO NOT: call this CLI from a workflow skill. Workflow skills write [TMS_TOOL] pseudocode and load this skill; only this skill owns the literal syntax.
  • DO: pass an explicit --limit above the expected count on every list command — all of them default to a small --limit (see cli/xray) and truncate silently. Read the true count from the (N total) header, never by counting rows; a truncated read looks exactly like data loss.
  • DO: capture the key of anything you create from the bare KEY <PROJ-123> line or from --json, never by scraping the decorated success line — a create whose key was not captured leaves an orphan artifact nothing downstream can link.
  • DO NOT: pass Manual steps inline when creating a test — Xray Cloud silently drops them. Create the test first, add one step per call, then verify the steps landed.
  • DO: pin every ATR execution to a Test Environment (value from active_env), so results stay comparable across runs. An execution that slipped through without one is repaired in place, not left.
  • DO: keep the Set-first cascade: the per-Story ATS holds the membership, and the Plan (ATP) and Execution (ATR) derive their test lists from it rather than maintaining their own.
  • DO: fill Story coverage with the Jira-layer issue link from the ATS to the Story. Plan→Story and Execution→Story links are administrative traceability and cover nothing; a direct Test→Story link is a last resort for an instance with no Test Set work type. Plan/Execution/Set MEMBERSHIP is Xray-internal GraphQL; membership of the Story's ATS is ALSO a TC→ATS test issue link (link create <TC> <ATS> --type test), in both modalities (agentic-qa-core/references/traceability-linking.md §9).
  • DO: state the coverage direction as the RAW FIELD, never as an outward/inward description: on a Story, the counting edge is the issuelinks entry carrying the artifact under inwardIssue. The artifact-first argument order produces it. Verify against Xray coverage (the three-edge check or the coverage panel), never against Jira link semantics — a Jira link list looks correct in both directions.
  • DO: replace an inverted coverage link, never add a corrected one on top: Jira dedupes a link between the same pair and type regardless of direction, so the create is a silent no-op until the wrong link is deleted by its own link id. Read the id first, dry-run, then delete with an explicit confirmation.
  • DO: verify traceability with the one-call three-edge check, never from the coverage edge alone — a missing ATP→Story or ATR→Story link is a FAIL, not a warning, and the same call compares the ATS membership against the Plan and Execution test lists. Sweep a whole project (several keys or a JQL query) at least once per engagement: an inverted link is invisible per Story and only reads as a pattern in aggregate.
  • DO: treat Xray run statuses as PER-INSTANCE vocabulary. TODO / EXECUTING / PASSED / FAILED are the safe floor; ABORTED and BLOCKED are Xray defaults a project may not define, and the mutation is rejected when it does not. Record a blocked case in a status the project DOES define and explain it in the run comment — never leave the run TODO, which reads as never executed.
  • WHEN a Jira-fallback path created the container without authenticated Xray: the Xray layer never registered the tests and runs come back empty. Reconcile with the per-entity sync (or the bulk repair scan) before importing results.
  • DO: import results onto an existing Execution key, never scoped to a project — the import API cannot set a parent, so a project-scoped import mints a fresh unparented Execution on every run, outside the artifact ladder.
  • DO NOT: hand-craft Xray JSON payloads outside this CLI, or reuse a bearer token past its 24h TTL. A stale token produces silent 401s mid-import that read like network blips.
  • DO: dry-run any import or backup restore before applying. Both write irreversibly across hundreds of tests and runs.
  • WHEN moving between sites: restore in sync-by-key mode (GraphQL ids are re-assigned per site, keys are not), re-authenticate between export and restore because auth holds ONE site at a time, and finish with the Jira instance-migration flow — field ids are reassigned and an old id silently resolves to a different field.
  • DO NOT: push run results for TCs the ROI verdict marked terminal-Manual. It creates audit noise and breaks the Candidate / Manual / Deferred reporting.
  • WHEN Xray credentials are missing or broken: STOP per Critical Rule #10 — name XRAY_CLIENT_ID / XRAY_CLIENT_SECRET, point at .env, ask for a session restart. Nothing reaches the Xray GraphQL layer without them.

Read the full file on GitHub · 831 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 18d ago Changed 0438445e5313
  2. 22d ago Changed · +6 lines a9f72afd7455
  3. 27d ago Changed · -1 lines be14c0c96d0d
  4. 29d ago Changed · +11 lines 013d4a340ad6
  5. 1mo ago Changed · +80 lines 5b1392fde446
  6. 1mo ago Changed · +74 lines d2560428d950
  7. 1mo ago Changed · +6 lines 8a8451c672d5
  8. 1mo ago First seen · 655 lines · 140 tokens per session scan A 8a5b349e6aad

Subscribe to this mod's changes

xray-cli is a skill published in the GitHub repository upex-galaxy/agentic-qa-boilerplate (26 stars, last pushed 11d ago), licensed MIT. It adds 140 tokens to every session and 11,875 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

agent-testing-harness

Use this skill when testing AI agent systems. Activate when the user needs to test agent behavior, write tests for multi-agent systems, implement agent evaluation frameworks, create test harnesses for autonomous agents, or validate agent outputs systematically.

latestaiagents/agent-skills · 51 tokens

test-generation-patterns

Use this skill when generating tests with AI assistance. Activate when the user wants to create unit tests, integration tests, generate test cases, improve test coverage, write tests for existing code, or set up testing patterns for their project.

latestaiagents/agent-skills · 52 tokens

api-test-patterns

Write comprehensive API tests for REST and GraphQL endpoints. Use this skill when testing APIs, writing contract tests, or validating integrations. Activate when: api testing, REST test, GraphQL test, endpoint testing, integration test, postman, contract testing.

latestaiagents/agent-skills · 56 tokens

playwright-patterns

Write reliable, maintainable E2E tests with Playwright best practices. Use this skill when writing Playwright tests, debugging flaky tests, or setting up E2E automation. Activate when: playwright, e2e test, end-to-end, browser testing, UI automation, web testing.

latestaiagents/agent-skills · 64 tokens

test-case-design

Design comprehensive test cases with proper coverage and clear documentation. Use this skill when writing test cases, creating test suites, or improving test coverage. Activate when: test case, test scenario, test coverage, test design, write tests, BDD, gherkin.

latestaiagents/agent-skills · 57 tokens

regression-evals

Set up continuous regression evals so model/prompt/tool changes don't silently break existing behavior. Covers gating thresholds, CI integration, statistical significance, and response to regressions. Use this skill when deploying prompts to production, gating model upgrades, or noticing "it worked yesterday" in AI…

latestaiagents/agent-skills · 85 tokens