CommunityRecherche & Datenanalysegithub.com

kos322/testrail-skill

AI agent skill for TestRail REST API - zero dependencies, security-friendly alternative to MCP servers

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add kos322/testrail-skill

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Dokumentation

TestRail API Skill

Direct TestRail REST API integration through repository-local bash wrappers.

Installation

Clone the repository first:

git clone https://github.com/kos322/testrail-skill.git
cd testrail-skill

Setup

Set these environment variables:

  • TESTRAIL_URL
  • TESTRAIL_USER
  • TESTRAIL_API_KEY

Base URL:

${TESTRAIL_URL}/index.php?/api/v2

Decision tree

  • Known PROJECT_ID + simple read-only question: call the direct wrapper immediately.
  • Unknown PROJECT_ID: call ./scripts/get_projects.sh.
  • Env/auth/setup problem or first-time installation: call ./scripts/doctor.sh.

Common queries

# Known project ID: total case count
./scripts/count_cases.sh PROJECT_ID [SECTION_ID] [--suite SUITE_ID]

# Known project ID: full case list with auto-pagination
./scripts/list_cases.sh PROJECT_ID [SECTION_ID] [--suite SUITE_ID]

# Known project ID: raw paginated case page
./scripts/get_cases.sh PROJECT_ID [SECTION_ID] [--suite SUITE_ID]

# Any time: read one case
./scripts/get_case.sh CASE_ID | jq -r .title

# Single field without manual JSON parsing
./scripts/get_case_field.sh CASE_ID FIELD

# Precondition shortcut
./scripts/get_case_precondition.sh CASE_ID

# Unknown project ID: discover accessible projects
./scripts/get_projects.sh | jq '(.projects // .) | map({id, name})'

# Setup/auth problem: validate env and access
./scripts/doctor.sh

Preferred wrappers

  • scripts/count_cases.sh — reliable total-case count
  • scripts/list_cases.sh — full case list with auto-pagination
  • scripts/get_cases.sh — raw paginated case response
  • scripts/get_case.sh — single case lookup
  • scripts/get_case_field.sh — single field lookup
  • scripts/get_case_precondition.sh — precondition shortcut
  • scripts/get_projects.sh — discover accessible projects
  • scripts/doctor.sh — setup/auth smoke check
  • scripts/create_run.sh, scripts/add_result*.sh, scripts/close_run.sh — run/result flows
  • scripts/get_reference_data.sh — statuses, fields, templates, users

Output contracts

IntentCommandOutput
total case countcount-casesplain integer
case listlist-casesplain text by default: C{id}: {title}
structured case listlist-cases --format jsonJSON object with count and cases
one caseget-caseJSON case object
one case fieldget-case-fieldplain scalar/string or compact JSON for arrays/objects
case preconditionget-case-preconditionplain text / raw field value

Pagination

  • get_cases, get_runs, get_results*, and similar endpoints may be paginated.
  • Do not assume .size is a safe total unless _links.next is empty.
  • Use ./scripts/count_cases.sh when the question is “how many cases are there?”

Windows

  • Preferred: Git Bash / WSL.
  • PowerShell-only environment: use thin wrappers in powershell/.
  • PowerShell wrappers only launch bash scripts; they do not read .env themselves.
.\powershell\count-cases.ps1 1
.\powershell\list-cases.ps1 1
.\powershell\list-cases.ps1 1 --format json
.\powershell\get-case.ps1 93
.\powershell\get-case-field.ps1 2 custom_preconds
.\powershell\get-case-precondition.ps1 2
.\powershell\get-cases.ps1 1 10 --suite 1
.\powershell\get-sections.ps1 1 1
.\powershell\get-runs.ps1 1

On-demand docs

  • scripts/README.md — script-by-script usage
  • docs/api-reference.md — endpoint notes and payload shapes
  • docs/troubleshooting.md — setup and auth failures
  • docs/agent-guide.md — agent-specific execution guidance
  • docs/maintenance/endpoint-status.md — maintenance snapshot, not runtime guidance

Examples

  • examples/workflow_ci.sh
  • examples/workflow_plans_milestones.sh
  • examples/workflow_attachments.sh

Official API docs: https://support.testrail.com/hc/en-us/categories/7076541806228-API-Manual

Verwandte Skills

squirrelscan/audit-website

Audit websites for SEO, performance, security, technical, content, and 17 other issue categories with 240+ rules using the squirrelscan CLI. Returns LLM-optimized reports with health scores, broken links, meta tag analysis, and actionable recommendations. Use to discover and asses website or webapp issues and health.

community

firecrawl/firecrawl-qa

QA test a live website with Firecrawl browser and scrape evidence. Use when the user wants exploratory QA, form testing, navigation/link checks, responsive checks, performance observations, bug reports, or a pre-launch quality review.

community

Anagogic-blastinggelatin157/hookradar-agent-skill

Connect your AI agent to HookRadar to automate competitive creative research and analyze ad performance data using the MCP standard.

community

Filivignaga/skeptic

Claude Code skill for question-first data analysis

community

ljagiello/ctf-web

Provides web exploitation techniques for CTF challenges. Use when the target is primarily an HTTP application, API, browser client, template engine, identity flow, or smart-contract frontend/backend surface, including XSS, SQLi, SSTI, SSRF, XXE, JWT, auth bypass, file upload, request smuggling, OAuth/OIDC, SAML, prototype pollution, and similar web bugs. Do not use it for native binary memory corruption, reverse engineering of standalone executables, disk or memory forensics, or pure cryptanalysis unless the web flaw is still the main path to the flag.

community

290963249/zhaoyaojing

Prompt Mirror — catch ambiguity before you hit Enter. 11 rules × live web search × zero storage. | 照妖镜 — 按 Enter 前照一下 prompt,含混处现查行业数据

community