testrail
TestRail API for QA test case management. Use when user mentions "TestRail", "test cases", "test runs", "test results", "test plans", "QA management", or "Gurock TestRail".
What this skill does
## Troubleshooting
If requests fail, run `zero doctor check-connector --env-name TESTRAIL_TOKEN` or `zero doctor check-connector --url https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/get_projects --method GET`
## How to Use
All examples assume `TESTRAIL_EMAIL`, `TESTRAIL_TOKEN` (API key), and `TESTRAIL_INSTANCE` (the subdomain before `.testrail.io`) are set. TestRail uses HTTP Basic auth — email as username, API key as password.
Base URL: `https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/`
Pass credentials with `-u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN"`. Self-hosted instances use a different domain; set `TESTRAIL_INSTANCE` appropriately if your team runs TestRail Server.
### 1. List Projects
```bash
curl -s "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/get_projects" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN" | jq '.projects[] | {id, name, suite_mode, is_completed}'
```
`suite_mode`: `1` = single suite, `2` = single suite + baselines, `3` = multiple suites.
### 2. Get a Single Project
```bash
curl -s "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/get_project/<project-id>" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN"
```
### 3. List Test Suites in a Project
```bash
curl -s "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/get_suites/<project-id>" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN" | jq '.[] | {id, name, description}'
```
### 4. List Sections in a Suite
Sections organize cases into a tree. Replace `<project-id>` and `<suite-id>`:
```bash
curl -s "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/get_sections/<project-id>&suite_id=<suite-id>" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN" | jq '.sections[] | {id, name, parent_id, depth}'
```
### 5. List Test Cases
```bash
curl -s "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/get_cases/<project-id>&suite_id=<suite-id>" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN" | jq '.cases[] | {id, title, priority_id, type_id, section_id}'
```
Filter by section or other criteria:
```bash
curl -s "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/get_cases/<project-id>&suite_id=<suite-id>§ion_id=<section-id>&priority_id=4" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN"
```
### 6. Get a Specific Test Case
```bash
curl -s "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/get_case/<case-id>" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN"
```
### 7. Create a Test Case
Write to `/tmp/testrail_request.json`:
```json
{
"title": "User can log in with valid credentials",
"type_id": 1,
"priority_id": 4,
"custom_steps": "1. Open login page\n2. Enter valid credentials\n3. Click Login",
"custom_expected": "User lands on dashboard"
}
```
Replace `<section-id>` with the destination section ID:
```bash
curl -s -X POST "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/add_case/<section-id>" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN" --header "Content-Type: application/json" -d @/tmp/testrail_request.json
```
### 8. Update a Test Case
Write to `/tmp/testrail_request.json` with only the fields you want to change, then run (replace `<case-id>`):
```bash
curl -s -X POST "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/update_case/<case-id>" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN" --header "Content-Type: application/json" -d @/tmp/testrail_request.json
```
### 9. List Test Runs
```bash
curl -s "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/get_runs/<project-id>" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN" | jq '.runs[] | {id, name, suite_id, is_completed, passed_count, failed_count}'
```
### 10. Create a Test Run
A run binds cases to a planned execution. Write to `/tmp/testrail_request.json`:
```json
{
"suite_id": <suite-id>,
"name": "Sprint 42 — Regression",
"include_all": false,
"case_ids": [<case-id>, <case-id>]
}
```
Set `include_all` to `true` to include every case in the suite; otherwise list specific `case_ids`. Replace `<project-id>`:
```bash
curl -s -X POST "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/add_run/<project-id>" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN" --header "Content-Type: application/json" -d @/tmp/testrail_request.json
```
### 11. List Tests in a Run
`tests` are case-in-run instances and have IDs distinct from the underlying case IDs:
```bash
curl -s "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/get_tests/<run-id>" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN" | jq '.tests[] | {id, case_id, title, status_id}'
```
### 12. Add a Result for a Test
Write to `/tmp/testrail_request.json`:
```json
{
"status_id": 1,
"comment": "Verified on Chrome 124 and Firefox 125.",
"elapsed": "3m 20s",
"version": "1.2.3"
}
```
Status IDs: `1` Passed, `2` Blocked, `3` Untested, `4` Retest, `5` Failed (defaults — your instance may have custom statuses).
```bash
curl -s -X POST "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/add_result/<test-id>" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN" --header "Content-Type: application/json" -d @/tmp/testrail_request.json
```
### 13. Bulk-Add Results by Case ID
Useful for posting CI results in one call. Write to `/tmp/testrail_request.json`:
```json
{
"results": [
{ "case_id": 101, "status_id": 1, "comment": "Passed" },
{ "case_id": 102, "status_id": 5, "comment": "Failed — see attached log" }
]
}
```
```bash
curl -s -X POST "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/add_results_for_cases/<run-id>" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN" --header "Content-Type: application/json" -d @/tmp/testrail_request.json
```
### 14. Close a Test Run
Archives the run and prevents further result entry:
```bash
curl -s -X POST "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/close_run/<run-id>" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN"
```
### 15. List Milestones
```bash
curl -s "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/get_milestones/<project-id>" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN" | jq '.milestones[] | {id, name, due_on, is_completed}'
```
### 16. List Users
```bash
curl -s "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/get_users" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN" | jq '.[] | {id, name, email, role_id, is_active}'
```
## Common Workflows
### Post CI results for a sprint run
```bash
# 1. Find (or create) the run for this sprint
curl -s "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/get_runs/<project-id>&is_completed=0" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN" | jq '.runs[] | {id, name}'
# 2. Bulk-post results by case_id (see step 13)
curl -s -X POST "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/add_results_for_cases/<run-id>" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN" --header "Content-Type: application/json" -d @/tmp/testrail_request.json
# 3. Close the run when sprint completes
curl -s -X POST "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/close_run/<run-id>" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN"
```
### Find failing tests in the latest run
```bash
curl -s "https://$TESTRAIL_INSTANCE.testrail.io/index.php?/api/v2/get_tests/<run-id>&status_id=5" -u "$TESTRAIL_EMAIL:$TESTRAIL_TOKEN" | jq '.tests[] | {case_id, title, refs}'
```
## Guidelines
1. URLs use TestRail's quirky `index.php?/api/v2/<endpoint>/<id>` query-string style — extra parameters use `&key=value`, never `?key=value` (the `?` is already consumed by `/api/v2/...`).
2. Authentication is HTTP Basic: email as username, API key as password. Generate the key in **My Settings → API Keys** (admin must have **Enable API** turned on for the instance).
3. `case_ids` belong to the suite; `test_id` belongs to a specific run — don't confuse them when adding results.
4. Bulk endpoints (e.g. `add_results_for_cases`) succeed atomically — if any record fails validation, the entire batch is rejected.
5. Pagination: list endpoints with many records return a `_links` object with `next`/`prev` and use `offset` + `limit` query params (default limit 250, max 250 from v6.7+).
6. Status, priority, and type IDs differ if your instance was customizedRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.