Preface¶
When performing batch regression tests in CI or before releases, a common practice is to log into the TP platform, click to select tasks, monitor execution status, and then pull reports. If you are already using Agents to orchestrate daily development in environments like Cursor or Claude Code, and wish to incorporate “triggering tests, checking resources, and viewing results” into the same conversational workflow, you need a Skill that clearly documents the platform APIs and configuration, rather than manually writing curl commands or digging through internal documentation every time.
Below is an introduction to the SkillHub community skill Qianliu-aitest (Coordinates: @user_6c0ab08d/qianliu-aitest, Version 1.0.0). It is designed for integration with the Qianliu AI Test Efficiency Platform (TP), organizing task execution, resource querying, status monitoring, and report retrieval into instructions that an Agent can follow.
What is this¶
Qianliu-aitest is a community Skill published by user_6c0ab08d on SkillHub, categorized under ai-agent, with a brief description of “Qianliu AI Automation Skill.” The core documentation within the skill package describes itself as a “Qianliu AI Test Efficiency Platform Integration Skill.”
It solves the problem of configuring TP platform Tokens and task parameters via a fixed path within Agents that support SKILL.md. It enables the completion of test task dispatching and result tracking by following the documentation to call platform REST interfaces or accompanying scripts. The SkillHub page marks requires_api_key=true, meaning TP access credentials must be configured before use.
Core Functions¶
The following capabilities are derived from the SKILL.md within the skill package; no extensions are made beyond what appears in the documentation:
- Execute TP platform test tasks (The documentation example uses the
execute-tp-testscript, corresponding toPOST /api/test/execute). - Retrieve testbed and execution host information (
GET /api/resource/testbeds,GET /api/resource/exec-hosts). - Monitor test execution status (
GET /api/test/status/{taskId}). - Retrieve test reports (
GET /api/test/report/{taskId}).
The default platform base URL in the configuration example is https://tp.atrust.sangfor.com; specific values for project_id, version_id, ai_testcase_task_id, etc., must be filled in according to your project.
Installation and Activation¶
Install SkillHub CLI (if not already installed)¶
First, check if the CLI is already on your machine:
command -v skillhub && skillhub --version
If not installed, you can follow the official SkillHub installation instructions to perform a complete installation (including CLI and default Skills):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
To install only the CLI:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
Install Qianliu-aitest¶
When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, the skill may land in the default ./skills/ and not be recognized. The installation hint provided on the SkillHub page is: Install @user_6c0ab08d/qianliu-aitest according to the SkillHub Installation Documentation.
Assuming skillhub is installed, the community namespace installation example is:
skillhub install qianliu-aitest --namespace user_6c0ab08d --dir <Your Agent skills directory>
Common paths (subject to SkillHub documentation):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
After installation, restart or refresh the Agent as required by your client to ensure the new Skill is loaded.
TP Platform and Task Configuration¶
1. Token and Base URL
Create or edit ~/.qianliu/config.json in the user directory and write in the TP platform Token and Base URL:
{
"tp_token": "your_token_here",
"tp_base_url": "https://tp.atrust.sangfor.com"
}
Token acquisition steps (original text from documentation): Log into https://tp.atrust.sangfor.com → Personal Settings → API Token → Generate or copy and write into the file above.
2. Task Parameters
Configure tasks in the workspace path workspace/.qianliu/.qianliu-aitest/tp-aitest-config.yaml (The following is the example structure from the documentation; IDs must be replaced with your project’s actual values):
tp_platform:
project_id: 8
version_id: 117
ai_testcase_task_id: 1488
agent_version: "v1"
testbed_name: ""
exec_host_name: ""
desc: "Batch test task (Release verification) - Qianliu manus"
Typical Usage¶
The skill documentation assumes the existence of PowerShell scripts in scripts/ within the skill directory; currently, the 1.0.0 package pulled from SkillHub only contains SKILL.md. Before actual execution, please confirm if your local skill directory contains these scripts, or have the Agent call the APIs and parameters strictly according to the documentation.
Execute Test Task (Documentation example, needs to be executed in the skill root directory):
./scripts/execute-tp-test.ps1 -PlanId 1488 -ProductId 8 -ProjectId 117
The parameter meanings should align with project_id, version_id, ai_testcase_task_id in tp-aitest-config.yaml; do not copy the example numbers directly.
Get Testbed List:
./scripts/get-resources.ps1 -Type testbed
When comparing with REST, the testbed list corresponds to GET /api/resource/testbeds; execution hosts correspond to GET /api/resource/exec-hosts. Task status and reports use GET /api/test/status/{taskId} and GET /api/test/report/{taskId} respectively.
A common practice in Agent conversations is: First explain the plan / product / project IDs to run, let the Agent read this Skill and the configuration files above, then trigger execution via interfaces or scripts and poll status, and finally pull the report summary.
Applicable Scenarios and Notes¶
Who is it for
- Internal teams already using Qianliu TP (
tp.atrust.sangfor.com) for AI testing or batch case tasks. - Those who want to trigger “Check Testbed → Run Task → View Report” via natural language in environments like Cursor or Claude Code, instead of opening the Web console every time.
Limitations and Notes
- A valid
tp_tokenmust be configured; the SkillHub tag indicates an API Key is required, and platform interfaces cannot be called without a Token. - The script paths in the documentation are PowerShell (
.ps1). In a pure Linux environment, you need to switch to WSL, a remote Windows execution machine, or call directly via the HTTP API instructions in the same Skill. - The testbed must be “idle” and the execution host must be online; the troubleshooting section of the documentation lists check items for invalid Tokens, occupied testbeds, and host connection failures.
- SkillHub statistics (based on page scraping): Rating 100000, Downloads 952, Installs 0; Community source, upgrades and script integrity are subject to the latest package for this coordinate on SkillHub.
Conclusion¶
Qianliu-aitest integrates the TP platform’s Token configuration, task YAML, and a set of fixed REST endpoints into a standard SKILL.md, facilitating the reuse of Qianliu AI testing capabilities within Agent workflows. Installation and coordinates are subject to SkillHub.
- Skill API Entry: https://api.skillhub.cn/user_6c0ab08d/qianliu-aitest
- SkillHub Page: https://www.skillhub.cn/skills/user_6c0ab08d/qianliu-aitest
- Installation Instructions: https://skillhub.cn/install/skillhub.md