fix-vi-flaky-test
Skill by vercel
Sets up a sandbox for vercel-internal's tests, then reproduces and fixes one flaky test or adds diagnostics for a shard hang. It is written for agents working on the repository's CI tests.
Install fix-vi-flaky-test
Built from the published package, never by AI.
git clone --depth 1 https://github.com/vercel/vercel /tmp/vercel && mkdir -p ~/.claude/skills && cp -r /tmp/vercel/.vc/automations/workflows/flaky-tests/skills/fix-vi-flaky-test ~/.claude/skills/fix-vi-flaky-testRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/vercel/vercel /tmp/vercel && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/vercel/.vc/automations/workflows/flaky-tests/skills/fix-vi-flaky-test ~/.gemini/antigravity-cli/skills/fix-vi-flaky-testAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
fix-vi-flaky-test is an agent skill for the vercel-internal repository. It sets up a Factory sandbox with Node and pnpm, installs a C compiler and a Rust toolchain, and builds the packages the CLI tests import. The skill then tells the assistant to reproduce one flaky test from the flaky-tests workflow with Vitest retries turned off, and to check whether the pull request itself changed that test.
When the failure is a shard hang that hits the 20-minute watchdog, the skill guides the assistant to add diagnostics to scripts/test.mjs, such as the Vitest hanging-process reporter and file start and end lines. It also covers tests the sandbox cannot run, such as integration and E2E tests that need VERCEL_TOKEN. It asks for a changeset and a pull request that lists the failed runs, commands and results. It is meant for engineers and agents working on vercel-internal's CI tests.
Written from the project's SKILL.md and checked against it.
What it can do
- Sandbox setupInstalls gcc or equivalent, a Rust 1.96.1 toolchain with the wasm32-wasip2 target, and builds the CLI's test dependencies.
- Single test reproductionRuns one CLI unit test file with retries disabled so a flaky failure can be reproduced.
- Shard reproductionRuns one CLI Unit shard, such as shard 6/7, several times to catch intermittent failures.
- Flaky test fixGuides a fix tied to a cause in the code or logs, such as leftover state between retries or a missing wait.
- Shard hang diagnosticsAdds Vitest hanging-process output and file start and end lines to scripts/test.mjs for hang investigations.
- Pull request write-upAsks for a changeset and a pull request body with failed run links, the cause, the fix and the commands run.
- Blocked reportingEnds with report_blocked and a list of checks when no cause can be identified.
What you need
- Node.js and pnpm
- Linux sandbox with apt-get (Ubuntu) or dnf (Amazon Linux)
- Access to the vercel-internal repository
- VERCEL_TOKEN and VERCEL_TEAM_ID for integration and E2E tests
Try asking
- Reproduce the flaky test from the latest flaky-tests workflow run in vercel-internal.
- Add hang diagnostics to packages/cli/scripts/test.mjs for the shard 6/7 hang.
- Run CLI Unit shard 6/7 several times with retries off and report the results.
Good to know
- Integration and E2E tests need VERCEL_TOKEN and VERCEL_TEAM_ID, which the sandbox does not have.
- Failures that only happen on Windows or macOS jobs cannot be run in the sandbox.
- The 20-minute watchdog timeout must not be raised.
- A full local run of the shard did not hang, so the hang cannot be reproduced locally.
Security check
C- Downloads a script from the internet and runs itIn
.vc/automations/workflows/flaky-tests/skills/fix-vi-flaky-test/SKILL.md:curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh - Asks for administrator rights (sudo)In
.vc/automations/workflows/flaky-tests/skills/fix-vi-flaky-test/SKILL.md:sudo
Checked automatically: .vc/automations/workflows/flaky-tests/skills/fix-vi-flaky-test/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to fix-vi-flaky-test
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
fix-vi-flaky-test: common questions
What does the fix-vi-flaky-test skill do?
It sets up a sandbox for vercel-internal's tests, then reproduces and fixes one flaky test from the flaky-tests workflow or adds diagnostics for a shard hang.
Can it run integration tests in the sandbox?
No. The source says integration and E2E tests deploy to real Vercel and need VERCEL_TOKEN and VERCEL_TEAM_ID, which the sandbox does not have.
Why does the skill pass --retry=0?
Vitest retries failed tests three times in this repository, so --retry=0 is needed to see the real failure when reproducing a flaky test.
How do I install fix-vi-flaky-test?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is fix-vi-flaky-test free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is fix-vi-flaky-test safe to use?
It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to fix-vi-flaky-test?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
