跳到主要内容
知仓学习社ZHICANG

skillgrade-setup

Sets up and runs skillgrade evaluation pipelines for Agent Skills. Use when initializing eval configurations, running trials, reviewing results, or …

不碰外部(只输出文字)无严重或高危命中mgechev/skillgrade

它会碰到什么

扫了多少3 个文本文件,8 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

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)
  1. 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.
  1. Run the evaluation: skillgrade --smoke.
  2. Run a specific eval by name: skillgrade --eval=fix-linting.
  3. Run multiple evals: skillgrade --eval=fix-linting,write-tests.
  4. Run only deterministic graders (skip LLM calls): skillgrade --grader=deterministic.
  5. Run only LLM rubric graders: skillgrade --grader=llm_rubric.
  6. The agent is auto-detected from the API key. Override with --agent=gemini|claude|codex|acp|opencode|command.
  7. For ACP, pass --acp-command="gemini --acp" or set defaults.acp.command.
  8. For OpenCode, pass --opencode-agent=build|plan|explore or --opencode-model=provider/model.
  9. For a custom agent, pass --agent=command --command="node mycli.js" or set defaults.command. The instruction is piped to the command's stdin.
  10. Override the provider with --provider=docker|local.

Step 5: Review Results

  1. Run skillgrade preview for a CLI report.
  2. Run skillgrade preview browser to open the web UI at http://localhost:3847.
  3. Reports are saved to $TMPDIR/skillgrade/<skill-name>/results/. Override with --output=DIR.

Step 6: Integrate with CI

  1. Add a GitHub Actions step that installs skillgrade, navigates to the skill directory, and runs with --regression --ci --provider=local.
  2. Use --provider=local in CI — the runner is already an ephemeral sandbox, so Docker adds overhead without benefit.
  3. The --ci flag causes a non-zero exit code if the pass rate falls below --threshold (default: 0.8).
  4. Read references/ci-example.md for a complete workflow template.

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 environment variable is exported, not just set inline for a different command.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 710
本站分层T2
该仓技能数2
原文件路径skills/skillgrade-setup/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 2 个技能