use-skill-up-cli
Help the user evaluate and evolve Agent Skills through the
CLI.
Language Policy
Default to English when responding to the user. If the user writes in Chinese (or any other language), switch to that language and stay consistent with the user's input throughout the session.
Detection rules (highest priority first):
- The user explicitly specifies a language in the current message (e.g. "answer in English" / "用中文回答") → follow the user's instruction.
- The natural language used in the user's current message → match it.
- None of the above → use English (default).
Regardless of the response language, technical identifiers in this SKILL — CLI commands,
/
field names, report field names, etc. — MUST stay in their original English form. Do not translate them.
Language Rules for Generated Artifacts
When creating or editing
,
, grading scripts, README snippets, final replies, or any other user-visible artifact, treat the language of the user's current message as the output language for this turn:
- If the user asks in Chinese, write the final response and all generated natural-language content in Chinese, including YAML comments, , , , keywords, and .
- If the user asks in English, write the final response and all generated natural-language content in English, including YAML comments, , , , keywords, and ; do not leave Chinese or CJK characters in generated case files.
- If the target Skill itself is written in Chinese but the user asks in English, translate the Skill's functional intent into English test prompts and assertions instead of copying Chinese prose from the target Skill or templates.
- In an English context, deterministic keywords in cases, including and
judge.success.output_contains
, must also be English keywords. Translate terms such as , , and into , , and ; do not write bilingual parentheticals like .
- Keep technical identifiers unchanged, such as , , , , , , file paths, and commands.
- Treat as structural references only. Rewrite placeholder prose and comments into the current output language; in an English context, translate or remove every Chinese comment and Chinese placeholder before writing generated files.
- In an English context, after generating all files but BEFORE submitting the final reply, you MUST perform a CJK self-check: open every and and scan for CJK characters (Unicode ranges
\u4e00-\u9fff\u3400-\u4dbf\uf900-\ufaff\u3000-\u303f\uff00-\uffef
), including but not limited to , , , keywords, , and YAML comments. If any CJK character is found, replace it with an equivalent English expression before finishing the task. This step is mandatory and must not be skipped.
What is skill-up
is an evaluation CLI for Agent Skill authors. It installs the Skill into a real Agent Engine (Claude Code, Codex, qodercli, etc.), spins up an execution environment for each case, runs the prompt, then grades the result via declared rules / LLM judges / custom scripts, and finally produces a report.
Typical layout:
my-skill/
SKILL.md
evals/
eval.yaml
cases/
<case-id>.yaml
fixtures/
When to trigger
Use this skill in any of the following situations:
- The user asks to "run / evaluate / verify / test this skill".
- The user asks to "fix / improve / iterate / evolve this skill" from eval failures.
- The user wants to "add evals, test cases, or regression cases to a skill".
- The user wants to edit / , or asks you to choose an appropriate type.
- The user mentions
skill-up run/validate/list-cases/report/import/init
.
- The user wants to migrate from Anthropic to skill-up.
- The current working directory contains or and the user wants to run it.
Main flow (follow this order strictly)
Step 0: Make sure skill-up is installed
Before doing anything, verify
is available:
bash
command -v skill-up && skill-up --version
If a version is printed, continue. If you see
, on
macOS / Linux:
bash
curl -fsSL https://raw.githubusercontent.com/alibaba/skill-up/main/install.sh | bash
export SKILL_UP_VERSION=v0.1.0
curl -fsSL https://raw.githubusercontent.com/alibaba/skill-up/main/install.sh | bash
export INSTALL_DIR="$HOME/bin"
curl -fsSL https://raw.githubusercontent.com/alibaba/skill-up/main/install.sh | bash
Platform: currently supports
macOS / Linux only; Windows is not supported.
After installing, run
again. If the command is still missing, add
to
.
Step 0.5 (optional): User config and telemetry
For OTLP defaults,
(e.g. OpenSandbox
), etc.:
bash
skill-up init
skill-up init --local
skill-up init --print
skill-up init --force
Precedence (low → high): embedded empty defaults < user config < project
<
.
can point at the user config file (env var name is historical). See the upstream README "User config".
Step 1: Locate the target Skill
- Identify the root directory of the target Skill (the directory containing ). Search in this priority: user path → nearest upward from CWD → recently viewed files.
- Read the target for scope, triggers, and dependencies. If the Skill is Chinese but the user writes in English, translate capabilities into English for prompts and assertions.
- Check :
- exists → Step 4 (optionally Step 3).
- Only →
references/migrate-anthropic.md
( or ).
- Nothing → Step 2.
Step 2: Scaffold the evals (only when none exist)
- Copy to
<skill-root>/evals/eval.yaml
.
- Copy to
<skill-root>/evals/cases/<case-id>.yaml
.
Adapt language per "Language Rules for Generated Artifacts". In an English context, it is prohibited to copy Chinese placeholder text from the templates into generated files — all prose must be rewritten in English. The Chinese in the templates is for structural reference only, not to be carried over.
Selection guidelines:
- : use for pure-text Skills; use when you need a remote sandbox (set , put non-secrets in ).
- + : default ; is optional. For , often omit .
- : (preferred), , (expensive) — see
references/judge-types.md
.
- Case ID = filename without ; prompts should exercise real Skill value.
Step 3: Fill the gaps (when evals already exist)
skill-up list-cases <path>
- Review and representative cases; avoid abuse.
- Add or edit YAML under as needed.
Step 4: Validate the configuration
bash
skill-up validate <skill-root>/evals/eval.yaml
Expect:
✓ eval.yaml is valid (loaded N case(s))
.
Step 5: Prepare credentials
Priority:
> env (
,
,
QODER_PERSONAL_ACCESS_TOKEN
) >
~/.skill-up/credentials.yaml
.
bash
printenv | grep -E 'ANTHROPIC_API_KEY|OPENAI_API_KEY|QODER_PERSONAL_ACCESS_TOKEN'
If missing, stop and ask; do not write secrets into YAML without consent.
For
, also ensure
(and related env) as needed.
Step 6: Run the evaluation
bash
skill-up run <skill-root>/evals/eval.yaml
| Scenario | Command |
|---|
| Subset | --include-case-name "basic-*"
|
| Exclude | --exclude-case-name "*-flaky"
|
| HTML report | |
| Engine override | --engine codex --model openai/gpt-4
|
| Parallelism | (1–256) |
| Anthropic JSON | |
| Stability/flakiness sampling | |
| Auto-append after last iteration | (default behavior) |
| Verbose | , |
Exit
= all passed;
= failure or error — suitable for CI. When
an explicit positive
runs more than one sample, inspect the
terminal's simple current-command summary for lines like
case_a: 3 trials, 2 PASS, 1 FAIL -> flaky
.
Step 7: Interpret the report
Artifacts under
<skill-root>/<skill-name>-workspace/iteration-N/
:
- , , optional
<case-id>/with_skill/grading.json
,
Summarize: pass rate and timing; for failures, case id, assertion
, and
; benchmark deltas if enabled; offer HTML path or
skill-up report result.json --format html
.
Step 8: Evolve the Skill when requested
Only enter this loop when the user asks to fix, improve, iterate, or evolve the
target Skill. If the user only asks to evaluate or report results, stop after
Step 7 without modifying it.
- Diagnose failures from , , and output evidence.
- Fix or supporting files when the Skill behavior is incorrect.
- Add or refine eval cases when coverage is missing.
- Do not weaken valid assertions merely to make a failure pass.
- Rerun failed cases first, then run the full eval suite.
- Continue until the evals pass or clearly report what remains blocked.
Command quick reference
| Command | Purpose |
|---|
skill-up validate <eval.yaml>
| Validate before . |
skill-up list-cases <eval.yaml>
| List cases. |
| Run evals. |
| Run from . |
skill-up report <result.json> --format html
| Re-render reports. |
skill-up import <evals.json>
| Convert Anthropic format to YAML. |
| Write user-config template. |
skill-up debug judge <input.json>
| Debug judge. |
skill-up debug report <input.json>
| Debug report. |
Common pitfalls
- Model IDs vs proxy aliases — preserve what works for the user's .
- without — auth failures.
- Chinese vs English model output — align language in prompts/assertions.
- Abusing .
- Anthropic expectations → default ; use + hand edits for deterministic checks.
- Paths relative to Skill root ( directory).
- appends one run after the latest existing iteration without
summarizing history; positive runs N samples of the selected
cases and, when N > 1, prints a simple stability/flakiness summary covering
only samples from the current command.
References
references/judge-types.md
references/migrate-anthropic.md
- ,