BigQuery Slot and Cost Optimizer
google/skills
Analyzes BigQuery slot use, query costs and execution bottlenecks from INFORMATION_SCHEMA to diagnose slow queries, slot contention and unpartitioned scans.
A skill your agent uses when monitoring CHAI presubmit agent decisions in BigQuery to analyze the breakdown of override, retest, and report-only actions on PR presubmit failures and estimate CI cost…
$ npx skills add openshift-eng/ai-helpers --skill chai-presubmit-override-decisions -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install openshift-eng/ai-helpers chai-presubmit-override-decisions --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/openshift-eng/ai-helpers.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/bigquery-ci-data/skills/chai-presubmit-override-decisions .claude/skills/chai-presubmit-override-decisions && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "chai-presubmit-override-decisions" agent skill from https://github.com/openshift-eng/ai-helpers/tree/main/plugins/bigquery-ci-data/skills/chai-presubmit-override-decisions into .claude/skills/chai-presubmit-override-decisions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "chai-presubmit-override-decisions", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/openshift-eng/ai-helpers/tree/main/plugins/bigquery-ci-data/skills/chai-presubmit-override-decisionsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add openshift-eng/ai-helpers --skill chai-presubmit-override-decisions -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install openshift-eng/ai-helpers chai-presubmit-override-decisions --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openshift-eng/ai-helpers.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/bigquery-ci-data/skills/chai-presubmit-override-decisions .agents/skills/chai-presubmit-override-decisions && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "chai-presubmit-override-decisions" agent skill from https://github.com/openshift-eng/ai-helpers/tree/main/plugins/bigquery-ci-data/skills/chai-presubmit-override-decisions into .agents/skills/chai-presubmit-override-decisions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "chai-presubmit-override-decisions", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add openshift-eng/ai-helpers --skill chai-presubmit-override-decisions -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install openshift-eng/ai-helpers chai-presubmit-override-decisions --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openshift-eng/ai-helpers.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/bigquery-ci-data/skills/chai-presubmit-override-decisions .cursor/skills/chai-presubmit-override-decisions && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "chai-presubmit-override-decisions" agent skill from https://github.com/openshift-eng/ai-helpers/tree/main/plugins/bigquery-ci-data/skills/chai-presubmit-override-decisions into .cursor/skills/chai-presubmit-override-decisions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "chai-presubmit-override-decisions", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/openshift-eng/ai-helpers.git --path plugins/bigquery-ci-data/skills/chai-presubmit-override-decisions--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add openshift-eng/ai-helpers --skill chai-presubmit-override-decisions -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install openshift-eng/ai-helpers chai-presubmit-override-decisions --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openshift-eng/ai-helpers.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/bigquery-ci-data/skills/chai-presubmit-override-decisions .gemini/skills/chai-presubmit-override-decisions && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "chai-presubmit-override-decisions" agent skill from https://github.com/openshift-eng/ai-helpers/tree/main/plugins/bigquery-ci-data/skills/chai-presubmit-override-decisions into .gemini/skills/chai-presubmit-override-decisions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "chai-presubmit-override-decisions", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install openshift-eng/ai-helpers chai-presubmit-override-decisionsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add openshift-eng/ai-helpers --skill chai-presubmit-override-decisions -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/openshift-eng/ai-helpers.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/bigquery-ci-data/skills/chai-presubmit-override-decisions .github/skills/chai-presubmit-override-decisions && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "chai-presubmit-override-decisions" agent skill from https://github.com/openshift-eng/ai-helpers/tree/main/plugins/bigquery-ci-data/skills/chai-presubmit-override-decisions into .github/skills/chai-presubmit-override-decisions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "chai-presubmit-override-decisions", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add openshift-eng/ai-helpers --skill chai-presubmit-override-decisions -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install openshift-eng/ai-helpers chai-presubmit-override-decisions --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/openshift-eng/ai-helpers.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/bigquery-ci-data/skills/chai-presubmit-override-decisions .opencode/skills/chai-presubmit-override-decisions && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "chai-presubmit-override-decisions" agent skill from https://github.com/openshift-eng/ai-helpers/tree/main/plugins/bigquery-ci-data/skills/chai-presubmit-override-decisions into .opencode/skills/chai-presubmit-override-decisions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "chai-presubmit-override-decisions", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
chai-presubmit-override-decisionsA skill your agent uses when monitoring CHAI presubmit agent decisions in BigQuery to analyze the breakdown of override, retest, and report-only actions on PR presubmit failures and estimate CI cost…
Chai Presubmit Override Decisions is an agent skill from openshift-eng/ai-helpers. Use when monitoring CHAI presubmit agent decisions in BigQuery to analyze the breakdown of override, retest, and report-only actions on PR presubmit failures and estimate CI cost savings
Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Databases, covering Cloud cost optimization and Data warehousing. It works with Google BigQuery. The repository describes itself as: Developer productivity tools for Claude Code & other AI assistants. The licence is Apache-2.0.
7 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit a627176. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are sql).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Chai Presubmit Override Decisions loads about 2.5k tokens when it runs. Until then it costs about 55 tokens; SKILL.md has 789 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from openshift-eng/ai-helpers at commit a627176, republished under its Apache-2.0 licence (© openshift-eng). 789 words, ~2,468 tokens.
.claude/skills/chai-presubmit-override-decisions/SKILL.md (or your agent's skills folder).Query openshift-gce-devel.ci_analysis_us.chai_presubmit_decision_log to monitor decisions made by the CHAI agent when evaluating PR presubmit failures. The primary goal is understanding the decision breakdown: how many failures are being overridden vs retested vs just reported on, and estimating CI cost savings from overrides.
Follow the foundations skill for cost safety, caching, and execution workflow.
Use one week unless the user specifies otherwise.
Each overridden presubmit failure saves an estimated $3 per job run in CI costs (cloud compute for the retest that was avoided). When reporting override counts, always calculate and display the estimated savings:
estimated_savings = override_count * $3.00ci_analysis_us.chai_presubmit_decision_logProject: openshift-gce-devel
Each row represents one decision the CHAI agent made about a PR presubmit failure.
| Column | Type | Notes |
|---|---|---|
| logged_at | TIMESTAMP | When the record was appended (UTC) |
| persona | STRING | The persona that appended the record |
| session_id | STRING | The conversation session ID |
| repo | STRING | The PR's repository |
| pr_number | INTEGER | The PR number |
| head_sha | STRING | The live PR HEAD SHA the decision was made against |
| run_sha | STRING | The SHA the failed run tested, when known |
| revision_match | BOOLEAN | Whether the failed run tested the live PR HEAD SHA |
| status_context | STRING | Full GitHub status context (e.g. ci/prow/e2e-gcp-ovn-upgrade) |
| prow_job_name | STRING | Full Prow job name |
| prow_build_id | STRING | Prow build ID of the failed run |
| prow_job_url | STRING | Prow job URL of the failed run |
| run_finished_at | TIMESTAMP | When the failed run finished |
| decision | STRING | The action taken: override, retest, report_only, no_action_required |
| job_classification | STRING | Whether the job is an override-eligible long-running e2e or integration job |
| tests_executed | BOOLEAN | Whether the failed run executed tests |
| failing_tests | STRING (REPEATED) | The failing test names |
| job_pass_rate | FLOAT | Fleet-wide pass rate for this job (0-100) |
| linked_bugs | STRING (REPEATED) | Jira bugs linked to failing tests (e.g. OCPBUGS-12345) |
| pr_overlap | STRING | The PR's overlap with the failing test or tested surface |
| rationale | STRING | Why this decision was made, in a short paragraph |
| Decision | Meaning |
|---|---|
override | Agent overrode the failure — the PR can merge without retesting. Saves CI cost. |
retest | Agent triggered a retest of the job. |
report_only | Agent reported on the failure but took no action (e.g. waiting for human review). |
no_action_required | Agent determined no action was needed (e.g. failure already resolved). |
A healthy system should show a mix of all decision types. The breakdown reveals whether the agent is being too aggressive (too many overrides) or too conservative (mostly report_only).
This is the primary query to run when the user asks about CHAI decisions without a specific question. Always break down per repo — the agent is being rolled out to repos incrementally, so per-repo consistency is a key signal.
SELECT
repo,
COUNT(*) AS total_decisions,
COUNTIF(decision = 'override') AS overrides,
COUNTIF(decision = 'retest') AS retests,
COUNTIF(decision = 'report_only') AS report_only,
COUNTIF(decision = 'no_action_required') AS no_action,
ROUND(COUNTIF(decision = 'override') * 100.0 / COUNT(*), 1) AS override_pct,
ROUND(COUNTIF(decision = 'retest') * 100.0 / COUNT(*), 1) AS retest_pct,
ROUND(COUNTIF(decision = 'report_only') * 100.0 / COUNT(*), 1) AS report_only_pct,
COUNTIF(decision = 'override') * 3 AS estimated_savings_usd
FROM `openshift-gce-devel.ci_analysis_us.chai_presubmit_decision_log`
WHERE logged_at >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)
GROUP BY repo
ORDER BY total_decisions DESCAfter running this, always report:
Use alongside the per-repo query for a quick aggregate view:
SELECT
COUNT(DISTINCT repo) AS enabled_repos,
COUNT(*) AS total_decisions,
COUNTIF(decision = 'override') AS overrides,
COUNTIF(decision = 'retest') AS retests,
COUNTIF(decision = 'report_only') AS report_only,
COUNTIF(decision = 'no_action_required') AS no_action,
COUNTIF(decision = 'override') * 3 AS estimated_savings_usd
FROM `openshift-gce-devel.ci_analysis_us.chai_presubmit_decision_log`
WHERE logged_at >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)SELECT
prow_job_name,
decision,
COUNT(*) AS count,
ROUND(AVG(job_pass_rate), 1) AS avg_pass_rate
FROM `openshift-gce-devel.ci_analysis_us.chai_presubmit_decision_log`
WHERE logged_at >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)
GROUP BY prow_job_name, decision
ORDER BY count DESCSELECT
DATE(logged_at) AS day,
repo,
COUNTIF(decision = 'override') AS overrides,
COUNTIF(decision = 'retest') AS retests,
COUNTIF(decision = 'report_only') AS report_only,
COUNTIF(decision = 'no_action_required') AS no_action,
COUNT(*) AS total,
COUNTIF(decision = 'override') * 3 AS daily_savings_usd
FROM `openshift-gce-devel.ci_analysis_us.chai_presubmit_decision_log`
WHERE logged_at >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)
GROUP BY day, repo
ORDER BY day, repoSELECT
logged_at,
repo,
pr_number,
prow_job_name,
job_pass_rate,
rationale
FROM `openshift-gce-devel.ci_analysis_us.chai_presubmit_decision_log`
WHERE logged_at >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)
AND decision = 'override'
ORDER BY logged_at DESCSELECT
logged_at,
prow_job_name,
decision,
job_pass_rate,
revision_match,
rationale
FROM `openshift-gce-devel.ci_analysis_us.chai_presubmit_decision_log`
WHERE logged_at >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)
AND repo = @repo
AND pr_number = @pr_number
ORDER BY logged_at DESCSELECT
logged_at,
repo,
pr_number,
prow_job_name,
revision_match,
head_sha,
run_sha,
rationale
FROM `openshift-gce-devel.ci_analysis_us.chai_presubmit_decision_log`
WHERE logged_at >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)
AND decision = 'override'
AND revision_match = false
ORDER BY logged_at DESCSELECT
test,
COUNT(*) AS decision_count,
COUNTIF(decision = 'override') AS override_count,
COUNTIF(decision = 'report_only') AS report_only_count
FROM `openshift-gce-devel.ci_analysis_us.chai_presubmit_decision_log`,
UNNEST(failing_tests) AS test
WHERE logged_at >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)
GROUP BY test
ORDER BY decision_count DESC
LIMIT 20SELECT
bug,
COUNT(*) AS decision_count,
COUNTIF(decision = 'override') AS override_count
FROM `openshift-gce-devel.ci_analysis_us.chai_presubmit_decision_log`,
UNNEST(linked_bugs) AS bug
WHERE logged_at >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY)
GROUP BY bug
ORDER BY override_count DESCWhen presenting results, always include:
© openshift-eng, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in plugins/bigquery-ci-data/skills/chai-presubmit-override-decisions of openshift-eng/ai-helpers.
Open the folder on GitHubat commit a627176
Chai Presubmit Override Decisions next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Chai Presubmit Override Decisions this skillopenshift-eng/ai-helpers | 120 | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | |
| BigQuery Slot and Cost Optimizergoogle/skills | 21k | — | ~2.3k | Automated safety check: Pass | Apache-2.0 | |
| Gke Cost Analysisgoogle/skills | 21k | — | ~1.5k | Automated safety check: Pass | Apache-2.0 | |
| Deploying On GCPancoleman/ai-design-components | 525 | — | ~3.9k | Automated safety check: Pass | MIT | |
| Neocarta Add Source Connectorneo4j-labs/neocarta | 147 | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| Write Script Bigquerywindmill-labs/windmill | 18k | — | ~2.2k | Automated safety check: Pass | Custom licence |
google/skills
Analyzes BigQuery slot use, query costs and execution bottlenecks from INFORMATION_SCHEMA to diagnose slow queries, slot contention and unpartitioned scans.
google/skills
Answer natural language questions and perform analysis on GKE cluster and workload costs using BigQuery billing exports, cost allocation data, and live cluster monitoring metrics.
ancoleman/ai-design-components
Implement applications using Google Cloud Platform (GCP) services.
neo4j-labs/neocarta
Scaffold, build, and verify a neocarta source or format connector against the connector contract.
windmill-labs/windmill
MUST use when writing BigQuery queries.
alirezarezvani/claude-skills
Design GCP architectures for startups and enterprises. An agent skill from alirezarezvani/claude-skills.
openshift-eng/ai-helpers
Find and independently validate actionable reliability defects across OpenShift release jobs and presubmits, then export portable issue handoffs.
openshift-eng/ai-helpers
Fetch and address all PR review comments — categorize by priority, make code changes, post replies, and push.
openshift-eng/ai-helpers
Categorize Jira issues into Red Hat Sankey Activity Type categories using MCP Jira tools.
openshift-eng/ai-helpers
Decide whether a GitHub PR has unanswered authorized review comments or new required CI failures worth a follow-up agent.
openshift-eng/ai-helpers
Analyze OpenShift must-gather diagnostic data including cluster operators, pods, nodes, and network components.
openshift-eng/ai-helpers
Schema for the autodl JSON data file produced by payload-analysis for database ingestion — you must use this skill whenever generating the autodl JSON file
Works with
Categories
A skill your agent uses when monitoring CHAI presubmit agent decisions in BigQuery to analyze the breakdown of override, retest, and report-only actions on PR presubmit failures and estimate CI cost…. Chai Presubmit Override Decisions is an agent skill from openshift-eng/ai-helpers.
Chai Presubmit Override Decisions fits situations like: monitoring CHAI presubmit agent decisions in BigQuery to analyze the breakdown of override; report-only actions on PR presubmit failures and estimate CI cost savings.
Run `npx skills add openshift-eng/ai-helpers --skill chai-presubmit-override-decisions -a claude-code`. Or copy the skill folder (plugins/bigquery-ci-data/skills/chai-presubmit-override-decisions in openshift-eng/ai-helpers) into .claude/skills/chai-presubmit-override-decisions in your project. Claude Code loads it when a task matches its description.
Run `npx skills add openshift-eng/ai-helpers --skill chai-presubmit-override-decisions -a codex`. Or copy the skill folder (plugins/bigquery-ci-data/skills/chai-presubmit-override-decisions in openshift-eng/ai-helpers) into .agents/skills/chai-presubmit-override-decisions in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add openshift-eng/ai-helpers --skill chai-presubmit-override-decisions -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/chai-presubmit-override-decisions, .gemini/skills/chai-presubmit-override-decisions, .github/skills/chai-presubmit-override-decisions and .opencode/skills/chai-presubmit-override-decisions in your project.
SKILL.md names no scripts, command-line tools or credentials: Chai Presubmit Override Decisions is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Chai Presubmit Override Decisions is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.5k tokens (SKILL.md is roughly 9.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Chai Presubmit Override Decisions: BigQuery Slot and Cost Optimizer (google/skills, 21k stars), Gke Cost Analysis (google/skills, 21k stars), Deploying On GCP (ancoleman/ai-design-components, 525 stars) and Neocarta Add Source Connector (neo4j-labs/neocarta, 147 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
openshift-eng (a GitHub organization) maintains it in openshift-eng/ai-helpers, which has 120 GitHub stars. The repository holds 118 skills in this directory. The repository was last updated on October 6, 2026.
Source: openshift-eng/ai-helpers on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.