classify-zero-shot
GitHub基于DeBERTa-v3-small模型执行零样本文本分类,支持用户自定义标签集。通过CLI工具调用模型,输入文本和标签后输出各标签置信度分数,适用于情感分析、内容打标等场景。
Trigger Scenarios
Install
npx skills add zerogpu/zerogpu-router --skill classify-zero-shot -g -y
SKILL.md
Frontmatter
{
"name": "classify-zero-shot",
"description": "Zero-shot classification against a caller-supplied list of candidate labels (deberta-v3-small). Use when the user wants to classify text into a custom set of labels they provide (e.g. \"is this positive, negative, or neutral?\", \"tag this as bug, feature, or question\").",
"allowed-tools": "Bash(zerogpu chat_completions *)",
"argument-hint": "<text> (-l <label>... | --labels a,b,c)"
}
Run zero-shot classification. The request below holds the text to classify and the candidate labels, given as flags (-l bug -l feature, --labels bug,feature) or in plain words.
Run this with the Bash tool, filling in the labels and pasting the text into the heredoc verbatim — no escaping, the quoted heredoc handles every shell metacharacter, newline, quote, and paren:
zerogpu chat_completions -m deberta-v3-small -i "[bug, feature, question]" <<'ZGPU_END_OF_INPUT'
<the text to classify, verbatim>
ZGPU_END_OF_INPUT
- The labels go in
-ias one bracketed, comma-separated list. The model reads them from the system message and rejects a request without one. - At least one label is required. If the request names none, ask the user for the candidate labels.
-iis double-quoted, so leave",$, and backticks out of the labels.
Output is a JSON object mapping each label to its score.
Savings note: only if the command output literally contains a line starting with 💰 ZeroGPU savings, append that exact line, unchanged, as the last line of your reply. If no such line is present, say nothing about savings and do not mention or suggest /zerogpu-router:cost-savings — this note is intentionally occasional, not shown every time.
Request: $ARGUMENTS
Version History
-
4e1b070
Current 2026-09-22 08:06
升级至v2.3.0:改用zerogpu-cli 3.8.0的模型无关端点命令,使插件独立于CLI模型变化;统一使用chat_completions接口并指定模型名称。
- 7b9b503 2026-07-24 11:47


