ecutest-api-skill
1
总安装量
1
周安装量
#54112
全站排名
安装命令
npx skills add https://github.com/blitzer207/ecutest-api-skill --skill ecutest-api-skill
Agent 安装分布
amp
1
opencode
1
kimi-cli
1
codex
1
github-copilot
1
claude-code
1
Skill 文档
ecu.test (local, multi-version)
Use local ecu.test files as the source of truth. Prefer RST (*_sources/*.rst.txt) when shipped (<=2025.1), otherwise use the Sphinx HTML docs (>=2025.2). Always confirm exact Python signatures in Templates\ApiClient\ApiClient.py / Templates\ApiClient\ApiClient.xml.
Base path / environment
.env(next to this file) defines installed ecu.test roots, e.g.:ECU_TEST_2024_3_HOME=C:\Program Files\ecu.test 2024.3ECU_TEST_2025_4_HOME=C:\Program Files\ecu.test 2025.4
- Optional override:
ECU_TEST_HOME=...(forces a single version without passing--version)
Version selection (important)
- If the user specifies a version (e.g. 2025.4), use
ECU_TEST_2025_4_HOMEas the install root. - If the user does NOT specify a version:
- use
ECU_TEST_HOMEif set, otherwise - use the latest
ECU_TEST_<version>_HOMEfound in.env.
- use
- If the version matters (API changed) and the user did not specify it, ask which ecu.test version to target.
Docs roots (auto by version)
Paths below are relative to the selected ecu.test install root (see Version selection).
- Main API docs root:
- <=2025.1:
Help\APIDoc\(RST inHelp\APIDoc\_sources\) -
=2025.2:
Help\api\(HTML-only; no_sources\)
- <=2025.1:
- Traceanalysis docs root:
- <=2025.1:
Help\APIDoc\TraceanalysisAPI\ -
=2025.2:
Help\api\TraceAnalysisAPI\
- <=2025.1:
- Trace step templates docs root:
- <=2025.1:
Help\TraceStepTemplatesDoc\(RST in...\_sources\root\) -
=2025.2:
Help\trcp\(HTML-only)
- <=2025.1:
MUST follow Modules / examples (key locations) when writing relative api code
- general API (Object API + Internal API):
- RST/HTML:
general_api\under the main docs root - Key docs:
general_api\api,general_api\objectApi,general_api\objectApiExamples
- RST/HTML:
- UserTool / user-utility:
- RST/HTML:
user-utility\under the main docs root
- RST/HTML:
- tooling framework:
- RST/HTML:
tools\under the main docs root
- RST/HTML:
- generators:
- RST/HTML:
generators\under the main docs root
- RST/HTML:
- Utilities API Python examples:
- <=2025.1:
Help\APIDoc\ExampleUtilities\ -
=2025.2:
Help\api\ExampleUtilities\
- <=2025.1:
Source of truth (in order)
- Python API interface definitions (exact signatures win):
Templates\ApiClient\ObjectApiProxy.pyTemplates\ApiClient\ApiClient.pyTemplates\ApiClient\ApiClient.xml
- Docs (use what exists in the selected version):
- <=2025.1: RST under
Help\APIDoc\_sources\... -
=2025.2: HTML under
Help\api\.../Help\trcp\...
- <=2025.1: RST under
- Python examples (real usage patterns; prefer these over guessing).
MUST follow Local experience / standards when writing code
references\coding-standards.md(includes API entry points + hard-won safety rules)
MUST follow existing debugging experience first when debug code
references\debug-patterns.md(debugging experience in the past)
Fast lookup workflow
- Search via Sphinx index (preferred; auto-picks RST vs HTML):
- main docs:
python scripts/search_api.py --version 2025.4 --docset main --query AnalysisJobApi - traceanalysis:
python scripts/search_api.py --version 2025.4 --docset traceanalysis --query templates - trace step templates:
python scripts/search_api.py --version 2025.4 --docset tracestep --query Threshold
- main docs:
- Grep for details (exact matches):
- RST:
rg -n "<keyword>" "<ECU_TEST_HOME>\Help\APIDoc\_sources" -g "*.rst.txt" - HTML:
rg -n "<keyword>" "<ECU_TEST_HOME>\Help\api" -g "*.html" - signatures:
rg -n "class .*Api" "<ECU_TEST_HOME>\Templates\ApiClient\ApiClient.py"
- RST:
- When generating Python code, confirm names/parameters in
ApiClient.py/ApiClient.xml.
Answering rules (keep replies accurate)
- Prefer RST sources when available; otherwise use the shipped HTML docs.
- Always cite the local file paths you used (docs and/or Python source files).