Move runtime and document pages into their correct scope, remove obsolete pending entries, and regenerate the function index.\nUpdate agent test guidance and API skill routing to match the new reference layout.
39 lines
1.5 KiB
Markdown
39 lines
1.5 KiB
Markdown
---
|
|
name: tsl-api-reference
|
|
description: "Use when writing or reviewing TSL code and needing authoritative TSL API facts: builtin/dotnet functions, module APIs, exact signatures, parameters, return values, examples, or Chinese keyword discovery when the function name is unknown."
|
|
---
|
|
|
|
# TSL API Reference
|
|
|
|
Use this skill for TSL API facts only: function/module names, exact signatures,
|
|
parameters, return values, and examples. For TSL syntax, control flow, variables,
|
|
object model, or runtime language rules, use the `tsl-syntax-reference` skill instead.
|
|
|
|
Do not infer API signatures from memory or similar languages. TSL names are
|
|
case-insensitive, but underscores are significant: do not remove underscores or
|
|
camel-case names when querying or reporting APIs.
|
|
|
|
Run the bundled lookup script. Replace `<this-skill-dir>` with the directory
|
|
containing this `SKILL.md`.
|
|
|
|
- Known API name:
|
|
|
|
```bash
|
|
python <this-skill-dir>/scripts/lookup.py --name argmax
|
|
```
|
|
|
|
- Unknown name, known behavior or Chinese keywords:
|
|
|
|
```bash
|
|
python <this-skill-dir>/scripts/lookup.py --kw 数组 排序
|
|
```
|
|
|
|
- Keyword terms use AND semantics; add terms to narrow results.
|
|
- Use `--limit N` to change how many candidate rows are printed.
|
|
|
|
Exact lookup prints the full entry body and source marker. Keyword lookup prints
|
|
candidate rows; pick a candidate, then rerun exact lookup with `--name`.
|
|
|
|
If exact lookup has no match, retry with Chinese keywords. If bundled data is
|
|
missing, reinstall the skill.
|