Skillgrade 配置
- 作者仓库星标 490
- 作者仓库 skillgrade
Skillgrade Evaluation Setup
Procedures
Step 1: Install Skillgrade
- Verify Node.js 20+ and Docker are available.
- Run
npm i -g skillgradeto install the CLI globally.
Step 2: Initialize an Eval Configuration
- Navigate to the skill directory (must contain a
SKILL.md). - Set the appropriate API key environment variable (
GEMINI_API_KEY,ANTHROPIC_API_KEY, orOPENAI_API_KEY). - Run
skillgrade initto generate aneval.yamlwith AI-powered tasks and graders. - If an
eval.yamlalready exists, pass--forceto overwrite:skillgrade init --force. - Without an API key, a well-commented template is generated instead.
Step 3: Configure eval.yaml
- Read
references/eval-yaml-spec.mdfor the full configuration schema. - Define one or more tasks under the
tasks:key. Each task requires:name: unique task identifierinstruction: what the agent should accomplishworkspace: files to copy into the evaluation containergraders: one or more scoring mechanisms (see theskillgrade-gradersskill)
- Optionally configure
defaults:for agent, provider, trials, timeout, and threshold.
Step 4: Run Evaluations
- Select an appropriate preset based on the evaluation goal:
--smoke(5 trials): Quick capability check.--reliable(15 trials): Reliable pass rate estimate.--regression(30 trials): High-confidence regression detection.
- Run the evaluation:
skillgrade --smoke. - Run a specific eval by name:
skillgrade --eval=fix-linting. - Run multiple evals:
skillgrade --eval=fix-linting,write-tests. - Run only deterministic graders (skip LLM calls):
skillgrade --grader=deterministic. - Run only LLM rubric graders:
skillgrade --grader=llm_rubric. - The agent is auto-detected from the API key. Override with
--agent=gemini|claude|codex. - Override the provider with
--provider=docker|local.
Step 5: Review Results
- Run
skillgrade previewfor a CLI report. - Run
skillgrade preview browserto open the web UI athttp://localhost:3847. - Reports are saved to
$TMPDIR/skillgrade/<skill-name>/results/. Override with--output=DIR.
Step 6: Integrate with CI
- Add a GitHub Actions step that installs skillgrade, navigates to the skill directory, and runs with
--regression --ci --provider=local. - Use
--provider=localin CI — the runner is already an ephemeral sandbox, so Docker adds overhead without benefit. - The
--ciflag causes a non-zero exit code if the pass rate falls below--threshold(default: 0.8). - Read
references/ci-example.mdfor a complete workflow template.
Error Handling
- If
skillgrade initfails with "No SKILL.md found," verify the current directory contains a validSKILL.mdfile. - If evaluation hangs, check Docker is running and the container has network access for API calls.
- If all trials fail with "No API key," ensure the environment variable is exported, not just set inline for a different command.
- 流狐分类
- 写作
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @mgechev · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需手动接入
- 是否需要外部 API Key
- 需要 · OpenAI / Anthropic / Gemini
- 检测到的系统要求
- Docker
- 底层运行要求
- Node.js · Docker
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 读取环境变量
- 检测到的网络行为
- 允许外网请求
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Procedures
Step 1: Install Skillgrade Verify Node.js 20+ and Docker are available. Run npm i -g skillgrade to install the CLI globally.
Error Handling
If skillgrade init fails with "No SKILL.md found," verify the current directory contains a valid SKILL.md file. If evaluation hangs, check Docker is running and the container has network access for API calls. If all trials fail with "No API key," ensure the…
# Skillgrade Evaluation Setup
## Procedures
**Step 1: Install Skillgrade**
1. Verify Node.js 20+ and Docker are available.
2. Run `npm i -g skillgrade` to install the CLI globally.
**Step 2: Initialize an Eval Configuration**
1. Navigate to the skill directory (must contain a `SKILL.md`).
2. Set the appropriate API key environment variable (`GEMINI_API_KEY`, `ANTHROPIC_API_KEY`, or `OPENAI_API_KEY`).
3. Run `skillgrade init` to generate an `eval.yaml` with AI-powered tasks and graders.
4. If an `eval.yaml` already exists, pass `--force` to overwrite: `skillgrade init --force`.
5. Without an API key, a well-commented template is generated instead.
**Step 3: Configure eval.yaml**
1. Read `references/eval-yaml-spec.md` for the full configuration schema.
2. Define one or more tasks under the `tasks:` key. Each task requires:
- `name`: unique task identifier
- `instruction`: what the agent should accomplish
- `workspace`: files to copy into the evaluation container
- `graders`: one or more scoring mechanisms (see the `skillgrade-graders` skill)
3. Optionally configure `defaults:` for agent, provider, trials, timeout, and threshold.
**Step 4: Run Evaluations**
1. Select an appropriate preset based on the evaluation goal:
- `--smoke` (5 trials): Quick capability check.
- `--reliable` (15 trials): Reliable pass rate estimate.
- `--regression` (30 trials): High-confidence regression detection.
2. Run the evaluation: `skillgrade --smoke`.
3. Run a specific eval by name: `skillgrade --eval=fix-linting`.
4. Run multiple evals: `skillgrade --eval=fix-linting,write-tests`.
5. Run only deterministic graders (skip LLM calls): `skillgrade --grader=deterministic`.
6. Run only LLM rubric graders: `skillgrade --grader=llm_rubric`.
… 证据边界与执行链路
作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Procedures → Error Handling
要点 -> Step 1: Install Skillgrade · Step 2: Initialize an Eval Configuration · Step 3: Configure eval.yaml · Step 4: Run Evaluations · Step 5: Review Results · Step 6: Integrate with CI
文件/命令 -> npm i -g skillgrade · GEMINIAPIKEY · ANTHROPICAPIKEY · OPENAIAPIKEY · skillgrade init · eval.yaml · --force · skillgrade init --force
内容 SHA-256 -> 16ebf8cdf65f
原文结构
适用与边界
原文中的明确线索
npm i -g skillgrade、GEMINIAPIKEY、ANTHROPICAPIKEY、OPENAIAPIKEY、skillgrade init、eval.yaml、--force、skillgrade init --force