check

GitHub

执行代码验证门禁,包括格式化、静态检查和单元测试。支持指定包范围或全量运行,确保代码质量与合规性。

.claude/skills/check/SKILL.md Giskard-AI/giskard-oss

触发场景

用户要求检查代码质量 任务完成前的验证流程 执行代码格式化与测试

安装

npx skills add Giskard-AI/giskard-oss --skill check -g -y
更多选项

非标准路径

npx skills add https://github.com/Giskard-AI/giskard-oss/tree/main/.claude/skills/check -g -y

不安装直接使用

npx skills use Giskard-AI/giskard-oss@check

指定 Agent (Claude Code)

npx skills add Giskard-AI/giskard-oss --skill check -a claude-code -g -y

安装 repo 全部 skill

npx skills add Giskard-AI/giskard-oss --all -g -y

预览 repo 内 skill

npx skills add Giskard-AI/giskard-oss --list

SKILL.md

Frontmatter
{
    "name": "check",
    "description": "Run the giskard-oss verification gate (format, check, unit tests) for a package",
    "disable-model-invocation": true
}

check

Run the giskard-oss verification gate that AGENTS.md mandates before any task is "done":

make format && make check && make test-unit PACKAGE=<affected-lib>

Usage

/check <package> — run the full gate scoped to one lib's unit tests.

/check — run the gate; unit tests cover all libs (slower).

<package> is a directory under libs/: giskard-agents, giskard-checks, giskard-core, giskard-llm, giskard-scan.

What to run

With a package:

make format && make check && make test-unit PACKAGE=<package>

Without a package:

make format && make check && make test-unit

format and check are repo-wide and take no PACKAGE. Only test-unit is scoped.

Notes

  • Run the three steps as one && chain so a failure stops the gate early.
  • Report failures with the command's output — do not claim the gate passed unless every step exited 0.
  • make format mutates files (ruff format + check --fix); show the resulting diff if anything changed.

版本历史

  • 8aafe58 当前 2026-07-25 04:51

同 Skill 集合

.claude/skills/fix-cve/SKILL.md
.claude/skills/giskard-oss-quality-gate/SKILL.md
.claude/skills/setup-env/SKILL.md
.cursor/skills/giskard-checks-new-check/SKILL.md
.cursor/skills/giskard-oss-pr-ready/SKILL.md

元信息

文件数
0
版本
6b2534c
Hash
cd035a5b
收录时间
2026-07-25 04:51

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-16 21:49
浙ICP备14020137号-1