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
- 参考文档references/api-reference.md12.1 KB
- 参考文档references/custom-checks.md7.0 KB
- 参考文档references/troubleshooting.md7.5 KB
- 参考文档references/workflows.md8.9 KB
- 脚本scripts/run_checks_smoke.py4.2 KB
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 runningSuite.run(...). - Choosing deterministic checks such as
Equals, comparison checks,StringMatching,RegexMatching,JsonValid,AllOf,AnyOf,Not, or one-offfrom_fn/FnCheckchecks. - Using optional or model-backed checks such as
SemanticSimilarity,Readability,RegoPolicy,Groundedness,Conformity,Contradiction,AnswerRelevance,Toxicity, orLLMJudge. - Generating scenario inputs with
LLMGenerator,UserSimulator, orDatasetInputGenerator. - Debugging
Trace/Interactiondata and JSONPath selectors such astrace.last.inputs,trace.last.outputs, andtrace.last.metadata.context. - Defining reusable custom checks with
@Check.register("..."),JSONPathStr, andMISSINGdefaults, then round-tripping withmodel_validate(...). - Exporting suite results as JUnit XML.
Route elsewhere
- Provider aliases, provider SDK extras, live completion/embedding credentials,
and
giskard.llmclient behavior: use../llm-providers/SKILL.md. - Agent workflow construction, prompt templates, tools, and
Generatorinternals: 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
- Import public symbols from
giskard.checks; do not use agiskard_checksimport namespace. - Start with deterministic checks when provider keys or a default generator are unavailable.
- Bind target output deliberately: pass
outputs=tointeract(...), or bind a target on theScenario,Suite, orrun(...)call. - Prefer
trace.last.*JSONPath selectors for current-turn data; use explicit structured field paths when outputs are dictionaries or models. - Pass an explicit
generator=or configureset_default_generator(...)before running LLM judges or LLM-backed input generators; configure an embedding model before provider-backedSemanticSimilarityruns. - Import every custom registered class before
model_validate(...)of a serialized scenario, suite, test case, check, interaction spec, or input generator. - 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, orSuite.runbehavior 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
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.
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.
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.
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.
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.
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).