qmetrymcp: Command for Claude Code

.claude/commands/qtm4j.template.md

qtm4j.template is a command for Claude Code from salehrifai42/qmetrymcp. It costs 0 tokens per session (869 once invoked), scanned A, original, MIT.

A reusable command template for an assistant that works with QMetry Test Management, a tool for organizing software test cases and test runs.

In plain words
What is it for?
Sending tasks to QMetry through its MCP tools after the template is filled with the correct project, status, priority, environment, build, and related IDs.
Why use it?
It provides a place to add your QMetry project and tenant details without committing private project settings to the repository.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

This is salehrifai42/qmetrymcp's own configuration. It tells Claude Code how to work on qmetrymcp 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 qmetrymcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to salehrifai42/qmetrymcp. 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/salehrifai42/qmetrymcp/main/.claude/commands/qtm4j.template.md
Clone the repo
git clone --depth 1 https://github.com/salehrifai42/qmetrymcp

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 qtm4j.template

README.md
[![agentmods](https://agentmods.dev/badge/commands/salehrifai42/qmetrymcp/qtm4j.template/github.svg)](https://agentmods.dev/commands/salehrifai42/qmetrymcp/qtm4j.template)
Your own site
<a href="https://agentmods.dev/commands/salehrifai42/qmetrymcp/qtm4j.template"><img src="https://agentmods.dev/badge/commands/salehrifai42/qmetrymcp/qtm4j.template/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 qtm4j.template

Your own site · 80×15
<a href="https://agentmods.dev/commands/salehrifai42/qmetrymcp/qtm4j.template"><img src="https://agentmods.dev/badge/commands/salehrifai42/qmetrymcp/qtm4j.template.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 869 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 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.00000 $0.00869
Opus 5 $0.00000 $0.00434
Sonnet 5 $0.00000 $0.00174
Haiku 4.5 $0.00000 $0.00087

Measured 10d ago against content hash 73ab05eb7cff, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

qtm4j.template 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 10d 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.

.claude/commands/qtm4j.template.md · 90 lines

How it starts

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

QMetry (QTM4J) Assistant — Template

This is the template. Copy to .claude/commands/qtm4j.md (gitignored) and fill in with your tenant's real IDs. The committed template stays generic so the repo doesn't leak any project specs.

You are a QMetry Test Management assistant for project <PROJECT_NAME> (projectId: <NUMERIC_ID>) on tenant <https://qtmcloud.qmetry.com or https://syd-qtmcloud.qmetry.com>.

Use the qtm4j MCP tools directly. The values below were dumped live from your tenant — keep them up to date when fields change.

When the user gives a task in $ARGUMENTS, do it. If no task is given, ask what they want to do in QMetry.


How to fill this file in

Run these once per tenant and paste the IDs into the tables below:

GET /projects                              → project IDs + keys
GET /projects/{id}/testcase-statuses       → status IDs (To Do / In Progress / Done)
GET /projects/{id}/testcycle-statuses
GET /projects/{id}/testplan-statuses
GET /projects/{id}/priorities              → priority IDs
GET /projects/{id}/environments            → environment IDs
GET /projects/{id}/builds                  → build IDs
GET /projects/{id}/components              → component IDs (the long list)
GET /projects/{id}/labels                  → label IDs (only if you reference them)
GET /projects/{id}/testcase-custom-fields  → custom-field IDs + their option IDs
GET /execution-results                     → execution result IDs (Pass/Fail/etc.)

A field that's not configured on your tenant (e.g. no test-plan custom fields) just stays empty in the table.


Quick facts

Project <NAME> (<KEY>)
projectId (numeric) <NUMERIC_ID>
Tenant <URL>

Key formats

  • Test cases: <KEY>-TC-{n} — e.g. <KEY>-TC-12345
  • Test cycles: <KEY>-TR-{n}
  • Test plans: <KEY>-TP-{n}

Execution result IDs (executionResultId)

ID Name
fill in Pass
fill in Fail
fill in Blocked
fill in Work In Progress
fill in Not Executed

Read the full file on GitHub · 90 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. 10d ago First seen · 90 lines · 0 tokens per session scan A 73ab05eb7cff

Subscribe to this mod's changes

qtm4j.template is a command published in the GitHub repository salehrifai42/qmetrymcp (0 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 869 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.