Pester Failure Analysis
PowerShell/PowerShell
Investigates failing Pester tests in PowerShell CI jobs by following a six-step workflow from pull request status to documented fix recommendations.
Investigate unexpected behavior and mysterious bugs. An agent skill from avibebuilder/claude-prime.
$ npx skills add avibebuilder/claude-prime --skill diagnose -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install avibebuilder/claude-prime diagnose --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/avibebuilder/claude-prime.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/diagnose .claude/skills/diagnose && 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 "diagnose" agent skill from https://github.com/avibebuilder/claude-prime/tree/main/.claude/skills/diagnose into .claude/skills/diagnose/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagnose", 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/avibebuilder/claude-prime/tree/main/.claude/skills/diagnoseType 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 avibebuilder/claude-prime --skill diagnose -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install avibebuilder/claude-prime diagnose --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/avibebuilder/claude-prime.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/diagnose .agents/skills/diagnose && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "diagnose" agent skill from https://github.com/avibebuilder/claude-prime/tree/main/.claude/skills/diagnose into .agents/skills/diagnose/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagnose", 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 avibebuilder/claude-prime --skill diagnose -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install avibebuilder/claude-prime diagnose --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/avibebuilder/claude-prime.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/diagnose .cursor/skills/diagnose && 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 "diagnose" agent skill from https://github.com/avibebuilder/claude-prime/tree/main/.claude/skills/diagnose into .cursor/skills/diagnose/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagnose", 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/avibebuilder/claude-prime.git --path .claude/skills/diagnose--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 avibebuilder/claude-prime --skill diagnose -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install avibebuilder/claude-prime diagnose --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/avibebuilder/claude-prime.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/diagnose .gemini/skills/diagnose && 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 "diagnose" agent skill from https://github.com/avibebuilder/claude-prime/tree/main/.claude/skills/diagnose into .gemini/skills/diagnose/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagnose", 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 avibebuilder/claude-prime diagnoseInstalls 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 avibebuilder/claude-prime --skill diagnose -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/avibebuilder/claude-prime.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/diagnose .github/skills/diagnose && 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 "diagnose" agent skill from https://github.com/avibebuilder/claude-prime/tree/main/.claude/skills/diagnose into .github/skills/diagnose/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagnose", 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 avibebuilder/claude-prime --skill diagnose -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install avibebuilder/claude-prime diagnose --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/avibebuilder/claude-prime.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/diagnose .opencode/skills/diagnose && 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 "diagnose" agent skill from https://github.com/avibebuilder/claude-prime/tree/main/.claude/skills/diagnose into .opencode/skills/diagnose/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagnose", 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.
diagnoseInvestigate unexpected behavior and mysterious bugs. An agent skill from avibebuilder/claude-prime.
Diagnose is an agent skill from avibebuilder/claude-prime. Investigate unexpected behavior and mysterious bugs. Use when the cause of a problem is unknown and the user needs to understand WHY something is happening — symptoms like: sudden unexplained changes in metrics or behavior, works locally but not in staging/production, inconsistent or intermittent failures, correct code producing wrong results, operations succeeding but having no effect, environment-specific failures, duplicate executions, stale data, or any "why did this change?" or "why is this happening?"…
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `references/runtime-debugging.md`, `scripts/__tests__/diagnose-server.test.js` and `scripts/diagnose-server.js`).
It sits in Testing & QA, covering Failing and flaky tests and Root cause analysis. The repository describes itself as: You've heard Claude Code can do amazing things. Skills, hooks, agents, memory systems — but who has time to figure all that out? Claude Prime sets it up for you in one command. The licence is MIT.
5 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 80bcfa4. 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.
Ships 3 files in scripts/ (JavaScript), which the agent can run.
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.
Diagnose loads about 1.2k tokens when it runs, and up to ~2.3k if it reads all its reference files. Until then it costs about 205 tokens; SKILL.md has 437 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); the scripts in this folder are not scanned.
The full file from avibebuilder/claude-prime at commit 80bcfa4, republished under its MIT licence (© avibebuilder). 437 words, ~1,174 tokens.
.claude/skills/diagnose/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Think harder.
Check conversation context and skip completed steps.
Fact (confirmed): the server returns 200Assumption (unconfirmed): the client receives the full HTML body
Misidentifying an assumption as a fact is the most common source of wasted investigation.Form 2-4 plausible root-cause hypotheses that are mechanistically distinct — different failure layers (e.g., server render vs. client hydration vs. network layer), not variations of the same idea
Rank them by likelihood
For each hypothesis, state both sides:
Confirm if: [what observation would prove this is the cause]Eliminate if: [what observation would rule this out]A hypothesis you can't falsify in both directions is too vague to test.
Start with the cheapest source of truth that can kill hypotheses:
Only add new instrumentation when existing evidence is insufficient.
diagnose/references/runtime-debugging.md#region agent log / #endregion markers for any instrumentation you addhypothesisIdagent-browser skill when reproduction or inspection needs itOutput structured diagnosis:
## Diagnosis: [Issue Title]
### Symptoms
- [What was observed]
### Evidence
- [Finding] — `file:line` or runtime source — hypothesis X
- ...
### Root Cause
[Confirmed or most likely cause, with evidence]
### Hypotheses Tested
| # | Hypothesis | Confirm if | Eliminate if | Result |
|---|-----------|-----------|-------------|--------|
| A | ... | [what observation would prove this] | [what observation would rule this out] | Confirmed/Eliminated/Inconclusive |
### Recommended Next Steps
- [What to do next — usually hand off to `/fix` with this diagnosis]
### Active Instrumentation
- [List files with `#region agent log` blocks still in place, or `None`]/fix with the diagnosis; it does not prescribe specific parameter values, code snippets, or step-by-step implementation instructions.#region agent log blocks, leave them in place for /fix to verify the repair and call them out in the final report<bug>$ARGUMENTS</bug>
© avibebuilder, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (scripts, references) in .claude/skills/diagnose of avibebuilder/claude-prime.
Open the folder on GitHubat commit 80bcfa4
We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in avibebuilder/claude-prime, which our catalogue first saw on October 7, 2026.
Diagnose 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 |
|---|---|---|---|---|---|---|
| Diagnose this skillavibebuilder/claude-prime | 120 | 1 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Pester Failure AnalysisPowerShell/PowerShell | 56k | — | ~5.1k | Automated safety check: Pass | MIT | |
| Diagnose a Red Rundifferent-ai/openwork | 24k | — | ~779 | Automated safety check: Pass | Custom licence | |
| Eval Triage And Improvementmicrosoft/eval-guide | 138 | — | ~5.9k | Automated safety check: Pass | MIT | |
| cmux Package Test Bisectmanaflow-ai/cmux | 28k | — | ~1.5k | Automated safety check: Pass | Custom licence | |
| Map Debugazalio/map-framework | 157 | — | ~4.6k | Automated safety check: Pass | MIT |
PowerShell/PowerShell
Investigates failing Pester tests in PowerShell CI jobs by following a six-step workflow from pull request status to documented fix recommendations.
different-ai/openwork
Classifies a failing test, typecheck or CI job before any code changes, by recording the failure and running a clean control to show whether it was already broken.
microsoft/eval-guide
A skill your agent uses when the user's Copilot Studio agent evaluations have come back and they need to interpret scores, diagnose root causes of underperforming test cases, find remediation steps…
manaflow-ai/cmux
Finds which commit broke a failing Swift package suite in the cmux repo by bisecting on CI, then judges per test whether it went stale or the code regressed.
azalio/map-framework
Structured MAP debugging via decomposer, actor, and monitor agents.
azalio/map-framework
Structured MAP debugging via task-decomposer, actor, and monitor agents.
avibebuilder/claude-prime
Builds distinctive, production-grade UIs that avoid generic AI aesthetics.
avibebuilder/claude-prime
Specialized visual and multimedia processing tools. An agent skill from avibebuilder/claude-prime.
avibebuilder/claude-prime
A skill your agent uses when the user wants to work on a Claude Code skill file (SKILL.md): writing one from scratch, testing whether an existing one works well, running evals or benchmarks…
avibebuilder/claude-prime
The single config quality skill. An agent skill from avibebuilder/claude-prime.
avibebuilder/claude-prime
Implement, build, create, or add any feature, endpoint, page, component, or functionality.
avibebuilder/claude-prime
Syncs Claude config between prime repo and target projects. An agent skill from avibebuilder/claude-prime.
Categories
Investigate unexpected behavior and mysterious bugs. An agent skill from avibebuilder/claude-prime. Diagnose is an agent skill from avibebuilder/claude-prime. Investigate unexpected behavior and mysterious bugs.
Diagnose fits situations like: works locally but not in staging/production; intermittent failures; correct code producing wrong results; operations succeeding but having no effect.
Run `npx skills add avibebuilder/claude-prime --skill diagnose -a claude-code`. Or copy the skill folder (.claude/skills/diagnose in avibebuilder/claude-prime) into .claude/skills/diagnose in your project. Claude Code loads it when a task matches its description.
Run `npx skills add avibebuilder/claude-prime --skill diagnose -a codex`. Or copy the skill folder (.claude/skills/diagnose in avibebuilder/claude-prime) into .agents/skills/diagnose 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 avibebuilder/claude-prime --skill diagnose -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/diagnose, .gemini/skills/diagnose, .github/skills/diagnose and .opencode/skills/diagnose in your project.
Going by SKILL.md and its folder, Diagnose needs JavaScript for the scripts in its folder. Our summary lists: Node.js.
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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Diagnose is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.1k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Diagnose: Pester Failure Analysis (PowerShell/PowerShell, 56k stars), Diagnose a Red Run (different-ai/openwork, 24k stars), Eval Triage And Improvement (microsoft/eval-guide, 138 stars) and cmux Package Test Bisect (manaflow-ai/cmux, 28k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
avibebuilder (a GitHub organization) maintains it in avibebuilder/claude-prime, which has 120 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on May 16, 2026.
Source: avibebuilder/claude-prime on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.