一键导入
ci-debugging
Use when debugging failing CI workflows, build errors, test failures, or VSIX packaging issues in GitHub Actions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when debugging failing CI workflows, build errors, test failures, or VSIX packaging issues in GitHub Actions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | ci-debugging |
| description | Use when debugging failing CI workflows, build errors, test failures, or VSIX packaging issues in GitHub Actions. |
Invoke this skill when a CI workflow run is failing and you need to:
Open the failing workflow run in the GitHub Actions tab. Identify:
Look for the red ✗ next to the failed step. Expand it to see the full output. The error is almost always in the last few lines before the failure marker.
Run the same sequence of commands locally before making any changes:
npm ci # Matches CI — clean install from lock file
npm run lint # Lint
npm run compile # TypeScript compile
npm test # Tests
npm run package # VSIX packaging
If it fails locally with the same error, you can debug interactively. If it passes locally but fails in CI, look for environment differences (Node version, missing env vars, file path case sensitivity, OS differences).
Symptoms: The "compile" step fails with error TS... messages.
Common causes:
strict mode violation (null check, implicit any, etc.)Fix approach:
npm run compile 2>&1 | head -50 # See first errors
Address each error. Never suppress with // @ts-ignore without a documented reason.
Symptoms: The "lint" step fails with ESLint rule violations.
Common causes:
console.log used in source code (no-console rule)any type used where a stricter type is expectedFix approach:
npm run lint # See all violations
npm run lint -- --fix # Auto-fix where possible (formatting only)
The no-console rule is the most common CI lint failure. Replace all console.* calls
with Logger class calls.
Symptoms: The "test" step fails with Vitest assertion errors or runtime errors.
Common causes:
Fix approach:
npm test # Full suite
npm test -- --reporter=verbose # More detail on failures
npm test -- path/to/failing.test.ts # Isolate the failing test
Read the assertion error carefully. It tells you what was expected vs. what was received. Do not skip or remove failing tests — fix the root cause.
Symptoms: The "package" step fails with a vsce error.
Common causes:
package.json fields (displayName, publisher, description)README.md references images that don't exist or aren't relative pathsvsce version mismatch between local and CIFix approach:
npx @vscode/vsce package --out test.vsix 2>&1
Check the error message. vsce errors are usually explicit about which field is missing or which file cannot be found.
Symptoms: The "install" step fails with network errors or version conflicts.
Common causes:
package-lock.json is out of sync with package.jsonFix approach:
npm ci # Uses lock file exactly — reproduces CI
npm audit # Check for vulnerabilities that may block install
If package-lock.json is out of sync: run npm install locally to regenerate it,
then commit the updated lock file.
After applying a fix:
npm run lint && npm run compile && npm test && npm run package
All four steps must pass before pushing the fix. The CI workflow runs them in sequence — a failure in any step blocks the rest.
Push the fix and monitor the new workflow run in GitHub Actions. If the same step fails again, return to Step 1 with the new logs.
If the failure is in CI infrastructure itself (GitHub Actions runner issue, npm registry outage, network timeout) rather than in the code:
Use when adding support for a new AI coding assistant. Covers adapter implementation, registry updates, testing, and verification in the Extension Development Host.
Use when packaging, releasing, or publishing the VS Code extension. Covers vsce packaging, VSIX validation, GitHub Releases, and Marketplace / Open VSX publishing.
Use when running an agentic QA pass on the AIdome Endpoint Switchboard extension — test planning, bug hunting, edge-case analysis, or pre-release verification. Wraps the gem-team-inspired QA agent pipeline (research → plan → generate → run → fix) plus adversarial review.
Use when setting up or maintaining CodeQL code scanning for the AIdome Endpoint Switchboard extension. Covers GitHub Actions workflow configuration, JavaScript/TypeScript analysis, alert triage, and custom query packs.
Use when configuring secret scanning and push protection for the AIdome Endpoint Switchboard repository. Covers alert triage, custom patterns for AIdome API keys, and integration with the extension's SecretStorage model.
Use when adding or updating VS Code command contributions in the AIdome Endpoint Switchboard extension. Covers naming conventions, package.json contributions, command handler registration, and the thin-wrapper pattern.