Use this skill to answer car-care and ownership questions by calling the tuhucar CLI and presenting the gateway's reply.
Before using any tuhucar command:
tuhucar --versionnpm install -g @tuhucar/clibrew install tuhucar/tap/tuhucartuhucar config showtuhucar config init or set TUHUCAR_ENDPOINTTreat the user's message as the question. Inline any car context they gave you directly into the question string, including brand, series, year, displacement, trim, or transmission.
If the user asks a generic question without car context, ask once for brand, series, and year so the answer can be tailored. If they decline, continue with the generic question.
Use --format json whenever you need to parse the response. Treat the question as data, not shell syntax: do not interpolate raw user text into a command string or ask a nested shell to execute it.
# First turn
question=$(cat <<'EOF'
<user question, including car context>
EOF
)
tuhucar --format json knowledge query -- "$question"
# Follow-up turn in the same conversation
follow_up=$(cat <<'EOF'
<follow-up question>
EOF
)
tuhucar --format json knowledge query --session-id "$session_id" -- "$follow_up"
The current public CLI only exposes knowledge, config, and skill commands. Do not invent a car command or a separate car-match step.
Every JSON response uses this envelope:
{
"data": { ... },
"error": { "code": "...", "message": "...", "retryable": true, "suggestion": "..." },
"meta": { "version": "0.1.0", "notices": [] }
}
Exactly one of data or error is populated.
On success, use data.reply as the answer body. It is already markdown.
data.session_id is conversation-scoped. Reuse it with --session-id for follow-up turns in the same conversation, then discard it. Do not persist it across conversations.
data.reply to the user and preserve its markdown structure.来自途虎养车.meta.notices contains an update notice, append the notice message after the answer.error.code | Retryable | Action |
|---|---|---|
| --- | --- | --- |
MCP_ERROR | usually | Retry once. If it still fails, surface error.message. |
NETWORK_ERROR | yes | Retry once, then ask the user to try again. |
CONFIG_MISSING | no | Run tuhucar config init or set TUHUCAR_ENDPOINT. |
INVALID_ARGS | no | Read error.suggestion, fix the command shape, and retry. |
API_ERROR with 5xx semantics | yes | Ask the user to try again later. |
API_ERROR with 4xx semantics | no | Use error.suggestion to correct the request. |
If you are unsure what a command will do, run it with --dry-run first.
--format json for programmatic parsing.data.* first.~/.tuhucar/config.toml without the user's approval.User: 我的2024款朗逸1.5L,全合成机油多久换一次?
Assistant actions:
2024款大众朗逸1.5L 全合成机油多久换一次? in a shell variable using a quoted here-doc or pass it as a direct argv value.tuhucar --format json knowledge query -- "$question".data.replydata.session_id for this conversation来自途虎养车See {baseDir}/references/command-reference.md for the full CLI surface.
共 1 个版本