Fix CI Failure
JetBrains/youtrackdb
Diagnose and fix a CI test failure from a GitHub PR or workflow run.
Triage failing GitHub PR checks: list failures with gh, fetch capped Actions logs, skip non-Actions checks, and summarize root cause.
$ npx skills add Mentra-Community/MentraOS --skill ci-triage -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Mentra-Community/MentraOS ci-triage --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/Mentra-Community/MentraOS.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/ci-triage .claude/skills/ci-triage && 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 "ci-triage" agent skill from https://github.com/Mentra-Community/MentraOS/tree/dev/.agents/skills/ci-triage into .claude/skills/ci-triage/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ci-triage", 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/Mentra-Community/MentraOS/tree/dev/.agents/skills/ci-triageType 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 Mentra-Community/MentraOS --skill ci-triage -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Mentra-Community/MentraOS ci-triage --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Mentra-Community/MentraOS.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/ci-triage .agents/skills/ci-triage && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "ci-triage" agent skill from https://github.com/Mentra-Community/MentraOS/tree/dev/.agents/skills/ci-triage into .agents/skills/ci-triage/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ci-triage", 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 Mentra-Community/MentraOS --skill ci-triage -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Mentra-Community/MentraOS ci-triage --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Mentra-Community/MentraOS.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/ci-triage .cursor/skills/ci-triage && 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 "ci-triage" agent skill from https://github.com/Mentra-Community/MentraOS/tree/dev/.agents/skills/ci-triage into .cursor/skills/ci-triage/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ci-triage", 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/Mentra-Community/MentraOS.git --path .agents/skills/ci-triage--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 Mentra-Community/MentraOS --skill ci-triage -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Mentra-Community/MentraOS ci-triage --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Mentra-Community/MentraOS.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/ci-triage .gemini/skills/ci-triage && 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 "ci-triage" agent skill from https://github.com/Mentra-Community/MentraOS/tree/dev/.agents/skills/ci-triage into .gemini/skills/ci-triage/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ci-triage", 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 Mentra-Community/MentraOS ci-triageInstalls 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 Mentra-Community/MentraOS --skill ci-triage -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Mentra-Community/MentraOS.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/ci-triage .github/skills/ci-triage && 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 "ci-triage" agent skill from https://github.com/Mentra-Community/MentraOS/tree/dev/.agents/skills/ci-triage into .github/skills/ci-triage/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ci-triage", 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 Mentra-Community/MentraOS --skill ci-triage -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Mentra-Community/MentraOS ci-triage --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Mentra-Community/MentraOS.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/ci-triage .opencode/skills/ci-triage && 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 "ci-triage" agent skill from https://github.com/Mentra-Community/MentraOS/tree/dev/.agents/skills/ci-triage into .opencode/skills/ci-triage/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "ci-triage", 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.
ci-triageTriage failing GitHub PR checks: list failures with gh, fetch capped Actions logs, skip non-Actions checks, and summarize root cause.
CI Triage is an agent skill from Mentra-Community/MentraOS. Triage failing GitHub PR checks: list failures with gh, fetch capped Actions logs, skip non-Actions checks, and summarize root cause. Use when the user pastes CI failures, asks why a PR is red, mentions failing checks, or says /ci.
Its SKILL.md is about 580 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 Development, covering Root cause analysis and Failing and flaky tests. It works with GitHub. The repository describes itself as: MentraOS is the leading smart glasses OS. See live captions, stream your view, talk to AI, and capture photos hands-free on compatible glasses. The licence is Apache-2.0.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit bc626e0. 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.
Shell commands in SKILL.md call:
ghFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.
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.
CI Triage loads about 582 tokens when it runs. Until then it costs about 60 tokens; SKILL.md has 251 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 Mentra-Community/MentraOS at commit bc626e0, republished under its Apache-2.0 licence (© Mentra-Community). 251 words, ~582 tokens.
.claude/skills/ci-triage/SKILL.md (or your agent's skills folder).Summarize root causes. Cap every log fetch.
/ci 523 or "PR 3502"), orgh pr view --json number -q .number on the current branch.gh pr checks <n> --json name,link,workflow,bucket,stateFilter to entries where bucket == "fail".
Field name is workflow, not workflowName.
For each failing check, test link against:
/\/actions\/runs\/(\d+)/| Match | Meaning | Next step |
|---|---|---|
| Yes | GitHub Actions run | Extract runId, go to step 4 |
| No | External check (Cloudflare Pages, Vercel, Bugbot, etc.) | Do not call gh run view. Carry forward as name + link + state only |
Multiple failing jobs can share one runId. Deduplicate by runId before fetching logs.
For each unique runId, stop after the first 3 distinct runs. Extra runs: list by check name only, with a note that more failures exist.
gh run view <runId> --log-failed | tail -c 20000Always pipe through tail -c 20000 (~20KB). Never feed the unbounded stream into context.
Prefer the built-in Task subagent when available:
Task(
subagent_type: "ci-investigator",
description: "Investigate PR <n> check <name>",
prompt: "<PR number, repo, run id, failing check name, and the capped log excerpt>"
)If ci-investigator is not available in this agent runtime, analyze the capped log excerpt yourself (or use any local agent definition under ~/.cursor/agents/ / .cursor/agents/ if present). Do not stall the triage on a missing subagent type.
One aggregated report:
If nothing failed, say so and stop.
© Mentra-Community, 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 .agents/skills/ci-triage of Mentra-Community/MentraOS.
Open the folder on GitHubat commit bc626e0
CI Triage 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 |
|---|---|---|---|---|---|---|
| CI Triage this skillMentra-Community/MentraOS | 2.4k | — | ~582 | Automated safety check: Pass | Apache-2.0 | |
| Fix CI FailureJetBrains/youtrackdb | 439 | — | ~5.3k | Automated safety check: Pass | Apache-2.0 | |
| Bug To Patch GeneratorArabelaTso/Skills-4-SE | 253 | — | ~4.4k | Automated safety check: Pass | Apache-2.0 | |
| GreptimeDB Fuzz CI Failure InvestigationGreptimeTeam/greptimedb | 6.7k | — | ~4.4k | Automated safety check: Pass | Apache-2.0 | |
| Megatron-LM CI Failure TriageNVIDIA/Megatron-LM | 18k | — | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| MAUI CI Investigatordotnet/maui | 23k | — | ~2k | Automated safety check: Pass | MIT |
JetBrains/youtrackdb
Diagnose and fix a CI test failure from a GitHub PR or workflow run.
ArabelaTso/Skills-4-SE
Generate code fixes and patches from bug reports, failing test cases, error messages, and stack traces.
GreptimeTeam/greptimedb
Diagnoses a failed GreptimeDB fuzz CI job by pulling its GitHub Actions logs and fuzz artifacts, then matching the evidence to the local source code.
NVIDIA/Megatron-LM
Investigates a failing GitHub Actions run or job for Megatron-LM, finds the root cause plus the PR and test author involved, and files a structured bug issue.
dotnet/maui
Adds dotnet/maui-specific context for investigating failing PR checks and broken nightly builds: pipelines, Helix logs, binlogs and merge-readiness verdicts.
ClickHouse/ClickHouse
Investigate a ClickHouse CI failure end-to-end from a PR or S3 report URL.
Mentra-Community/MentraOS
Investigate a Mentra routine failure from an Admin testRun URL or run/request ID, fetch authenticated results and verified artifacts with the existing incident-report token, trace the exact routine…
Mentra-Community/MentraOS
Update MentraOS firmwarelive.json from the published BES and MTK feeds and prepare a PR, preserving production MTK upgrade paths.
Mentra-Community/MentraOS
Run an independent local Codex (gpt-6.1-sol, medium) review of a GitHub pull request and relay its verdict.
Mentra-Community/MentraOS
Add or change backend deployment environment variables through Doppler shared configs and native Porter syncs.
Mentra-Community/MentraOS
Diagnose an ongoing or finished Mentra nightly suite, group demonstrated shared failures, implement fixes, and carry PRs through independent Codex review and merge.
Mentra-Community/MentraOS
Prepare an external Mentra miniapp for bundling into mobile/assets/miniapps (version bump, pack, zip install, regenerate bundledMiniapps).
Works with
Categories
Triage failing GitHub PR checks: list failures with gh, fetch capped Actions logs, skip non-Actions checks, and summarize root cause. CI Triage is an agent skill from Mentra-Community/MentraOS. Triage failing GitHub PR checks: list failures with gh, fetch capped Actions logs, skip non-Actions checks, and summarize root cause.
CI Triage fits situations like: the user pastes CI failures; asks why a PR is red; mentions failing checks.
Run `npx skills add Mentra-Community/MentraOS --skill ci-triage -a claude-code`. Or copy the skill folder (.agents/skills/ci-triage in Mentra-Community/MentraOS) into .claude/skills/ci-triage in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Mentra-Community/MentraOS --skill ci-triage -a codex`. Or copy the skill folder (.agents/skills/ci-triage in Mentra-Community/MentraOS) into .agents/skills/ci-triage 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 Mentra-Community/MentraOS --skill ci-triage -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ci-triage, .gemini/skills/ci-triage, .github/skills/ci-triage and .opencode/skills/ci-triage in your project.
Going by SKILL.md and its folder, CI Triage needs the command-line tools its instructions call (gh).
SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. 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.
CI Triage 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 582 tokens (SKILL.md is roughly 2.3k 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 CI Triage: Fix CI Failure (JetBrains/youtrackdb, 439 stars), Bug To Patch Generator (ArabelaTso/Skills-4-SE, 253 stars), GreptimeDB Fuzz CI Failure Investigation (GreptimeTeam/greptimedb, 6.7k stars) and Megatron-LM CI Failure Triage (NVIDIA/Megatron-LM, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Mentra-Community (a GitHub organization) maintains it in Mentra-Community/MentraOS, which has 2,381 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 10, 2026.
Source: Mentra-Community/MentraOS on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.