tmp-use
Build real shell commands from waz Token Model Protocol (TMP) schemas instead of guessing flags. Use whenever the user wants to run, fill, or generate a cargo/git/npm/docker/kubectl (or any schema-backed) command. Prefer waz MCP tools over inventing argv.
来源信息
- 仓库
- codeitlikemiley/waz
- 最近来源活动
- 2026年8月20日 13:27
- 检测到的 SKILL.md 语言
- 英语
- 星标
- 14
- Forks
- 1
安装方式
默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。
检查来源文件
决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。
正在显示 SKILL.md
SKILL.md
来源说明 · 只读预览- name
- tmp-use
- description
- Build real shell commands from waz Token Model Protocol (TMP) schemas instead of guessing flags. Use whenever the user wants to run, fill, or generate a cargo/git/npm/docker/kubectl (or any schema-backed) command. Prefer waz MCP tools over inventing argv.
# Use waz TMP instead of guessing
Waz stores **verified command shapes** (binary + tokens + live values) in TMP schemas. Agents MUST assemble commands from those schemas.
## Workflow
1. `waz_tmp_list` with the user's cwd and a short query (`cargo`, `git`, `docker`).
2. Pick the exact `command` string from the list (e.g. `cargo run`, `git commit`).
3. `waz_tmp_show` for that command to see tokens and resolved values. Pass `file` (and `line`) when the user has a focused file so cargo bin/example can prefill.
4. `waz_tmp_build` with `--set name=value` pairs (or `waz_resolve` for natural language). Same `file`/`line`.
5. Return the `argv` string. Do not invent flags that were not in the schema.
If the tool is missing from the list, call `waz_generate` and **wait until it finishes** (`wait` defaults to true). Then retry list/show. Do not call `waz_tmp_list` immediately after a background generate (`wait=false`) — poll `waz_generate_status` with `wait=true` (or `waz generate --wait --job <id>`) until `done` or `error`. Do not hand-write a schema.
## Rules
- Never guess `--flag` names for a tool that has a TMP schema.
- Never put positionals into the command name; they are tokens.
- Prefer resolver-backed values (bins, branches, scripts) from `waz_tmp_show`.
- If `waz_tmp_build` errors, fix tokens and retry — do not fall back to a guessed command.
在 GitHub 查看