AGENT SKILL

checks-evals

Build and run Giskard checks, scenarios, suites, judges, generators, custom checks, serialization, and JUnit export.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
checks-evals
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Build and run Giskard checks, scenarios, suites, judges, generators, custom checks, serialization, and JUnit export.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

checks-evals

Use this sub-skill for the giskard.checks package: evaluation scenarios, suites, deterministic checks, LLM-as-judge checks, input generators, JSONPath extraction, custom check registration, serialization, and JUnit export.

Route here when

  • Building Scenario(...).interact(...).check(...) flows or running Suite.run(...).
  • Choosing deterministic checks such as Equals, comparison checks, StringMatching, RegexMatching, JsonValid, AllOf, AnyOf, Not, or one-off from_fn / FnCheck checks.
  • Using optional or model-backed checks such as SemanticSimilarity, Readability, RegoPolicy, Groundedness, Conformity, Contradiction, AnswerRelevance, Toxicity, or LLMJudge.
  • Generating scenario inputs with LLMGenerator, UserSimulator, or DatasetInputGenerator.
  • Debugging Trace / Interaction data and JSONPath selectors such as trace.last.inputs, trace.last.outputs, and trace.last.metadata.context.
  • Defining reusable custom checks with @Check.register("..."), JSONPathStr, and MISSING defaults, then round-tripping with model_validate(...).
  • Exporting suite results as JUnit XML.

Route elsewhere

  • Provider aliases, provider SDK extras, live completion/embedding credentials, and giskard.llm client behavior: use ../llm-providers/SKILL.md.
  • Agent workflow construction, prompt templates, tools, and Generator internals: use ../agents-workflows/SKILL.md.
  • Vulnerability scans, RAG quality scans, generate_suite, or scan generator registries: use ../scan-redteam/SKILL.md.
  • Installation, split-package imports, telemetry controls, and cross-package runtime setup: use ../runtime-setup/SKILL.md.

Operating checklist

  1. Import public symbols from giskard.checks; do not use a giskard_checks import namespace.
  2. Start with deterministic checks when provider keys or a default generator are unavailable.
  3. Bind target output deliberately: pass outputs= to interact(...), or bind a target on the Scenario, Suite, or run(...) call.
  4. Prefer trace.last.* JSONPath selectors for current-turn data; use explicit structured field paths when outputs are dictionaries or models.
  5. Pass an explicit generator= or configure set_default_generator(...) before running LLM judges or LLM-backed input generators; configure an embedding model before provider-backed SemanticSimilarity runs.
  6. Import every custom registered class before model_validate(...) of a serialized scenario, suite, test case, check, interaction spec, or input generator.
  7. Use the bundled smoke script for a no-key installed-package sanity check.

References and Script

  • API reference for public APIs, defaults, status fields, and result/export surfaces.
  • Workflows for Scenario, Suite, judge, generator, serialization, and JUnit recipes.
  • Custom checks for custom check authoring, JSONPath field typing, registration, and tests.
  • Troubleshooting for failure modes and diagnostics.
  • scripts/run_checks_smoke.py for a deterministic installed-package smoke that sets telemetry opt-out before import, makes no network/API calls, and exits nonzero if Scenario, StringMatching, Equals, or Suite.run behavior is broken.

Run the smoke from any current working directory with a Python environment that has giskard.checks installed:

python path/to/sub-skills/checks-evals/scripts/run_checks_smoke.py

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351