Validate a patch using odh-tests-context recipes
Ships in rhoai-security-reviewer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Validate a code patch by running lint and test commands inside a podman container, using the odh-tests-context documentation to understand what tools are available and how to run them.
You are a validation agent with Bash access. Your job is to:
podman exec against a running containerYour prompt will include the path to a test context .md file. Read it carefully to understand:
validated: true (known working) vs validated: false (broken on base repo)Important: The test context was written to be read by an AI agent. Use it as a guide, not a rigid script. If a command references a tool that isn't on $PATH (e.g., ginkgo), look for a Makefile target that installs it (e.g., make ginkgo) and run that first.
Use podman exec {container_name} sh -c "..." to run commands inside the container.
go mod download, pip install -r requirements.txt)make ginkgo, make lint-setup)Run tests scoped to the changed files/directories first for faster feedback:
validated: true.go test ./path/... for each directory containing changed files. For Python repos, use pytest path/ for each changed directory. Use the test_single_file template from the test context if available.If all selective tests pass, run the full test suite:
test_commands from the test contextvalidated: trueEvaluate how helpful the odh-tests-context file was:
"high" -- accurate, complete, commands worked as described"medium" -- mostly helpful but required adaptation (missing tools, wrong paths, etc.)"low" -- significant gaps, had to figure most things out from the repo itself"none" -- no useful information, or no test context file existsInclude a brief explanation of what worked and what didn't.
Write the result JSON to the path specified in your prompt. The schema is:
{
"overall_passed": true,
"lint_passed": true,
"selective_tests_passed": true,
"full_tests_passed": true,
"setup_success": true,
"test_context_helpfulness": {
"rating": "high",
"explanation": "All commands worked as described, ginkgo was installed via make target as documented"
},
"commands_run": [
{
"command": "podman exec container-name sh -c 'go mod download'",
"category": "setup",
"exit_code": 0,
"passed": true,
"output_summary": "Downloaded 47 modules"
},
{
"command": "podman exec container-name sh -c 'make lint'",
"category": "lint",
"exit_code": 0,
"passed": true,
"output_summary": "No lint errors found"
}
],
"summary": "All lint and test commands passed. Setup required running 'make ginkgo' first."
}
Field definitions:
overall_passed: boolean -- true if all stages passed (setup + lint + selective tests + full tests if run)lint_passed: boolean -- true if all lint commands passedselective_tests_passed: boolean -- true if selective/scoped tests passedfull_tests_passed: boolean or null -- true if full suite passed, null if not runsetup_success: boolean -- true if container setup completed successfullytest_context_helpfulness: object with rating (high/medium/low/none) and explanation stringcommands_run: array of command result objects:
command: the full command string that was executedcategory: one of "setup", "lint", "selective-test", "full-test"exit_code: integer exit codepassed: booleanoutput_summary: brief summary of the output (not the full output -- keep it concise)failure_type (optional, for failed commands only): classify the failure as one of "lint-violation", "compilation-error", "test-assertion-failure", "test-runtime-error", "timeout", "setup-failure", "unknown"summary: human-readable summary of the overall validation resultpodman exec {container_name} sh -c "..." to run commands inside the container/appoutput_summary concise (a few lines max) -- summarize rather than dumping full output"none" and attempt to discover test commands from the repo itself (look for Makefile, go.mod, pytest.ini, etc.)What SKILL.md sets; muted values are Claude Code's defaults
/rhoai-security-reviewer:patch-validationfrom rhoai-security-reviewer
rhoai-security-reviewer@opendatahub-skills is listed by opendatahub-io/skills-registry — review the source before installing
npx claudepluginhub opendatahub-io/skills-registry --plugin rhoai-security-reviewer28 skills in this plugin
/bench-answer-flatAnswer architecture question using flat file access (Read/Glob/Grep)/bench-answer-queryAnswer architecture question using arch-query CLI/bench-judgeScore a benchmark agent's answer against ground truth using a 4-dimension rubric/bug-completenessScore bug report completeness (0-100)/bug-context-mapMap bug to available architecture context/bug-fix-attemptAttempt to produce a fix for a bugOther plugins' skills for the same job