/everything-copilot-cli:fix-build-errorsfrom everything-copilot-cli
Diagnoses and fixes build, compilation, and type-check failures. Categorizes errors by type (import, type, syntax, lint, config, dependency) and guides root-cause analysis with minimal fixes.
Ships in everything-copilot-cli. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
# Run the build and capture output — use task agent to keep context clean
npm run build 2>&1 | Out-String
Or use the task agent for long builds:
task agent_type: "task"
prompt: "Run 'npm run build' and report all errors"
Read errors from top to bottom — later errors are often caused by earlier ones.
| Error Type | Example | Typical Fix |
|---|---|---|
| Import/Module | Cannot find module 'x' | Install dependency, fix path |
| Type | Type 'string' not assignable to 'number' | Fix type annotation or cast |
| Syntax | Unexpected token | Fix syntax error, check for missing brackets |
| Lint | no-unused-vars | Remove unused variable or disable rule |
| Config | Invalid tsconfig option | Fix config file |
| Dependency | Peer dependency not met | Install or update package |
# Find the first error — it's usually the root cause
npm run build 2>&1 | Select-String "error" | Select-Object -First 5
# Navigate to the file and line
# Use view tool to see context around the error
For import errors:
# Check if the module exists
# (Copilot glob tool) pattern="**/*moduleName*"
# Check if it's installed
npm ls module-name 2>&1
For type errors:
# See the full type definition
grep -rn "interface|type" --include="*.ts" -A 5 src/ | Select-String "TypeName"
Use edit for surgical changes to specific lines:
edit path: "src/broken-file.ts"
old_str: "const x: string = 42;"
new_str: "const x: number = 42;"
# Rebuild — should succeed now
npm run build 2>&1 | Select-Object -Last 10
# Run tests to ensure the fix didn't break behavior
npm test 2>&1 | Select-Object -Last 10
If fixing one error reveals more:
# Error: Cannot find module 'lodash'
npm install lodash
npm install --save-dev @types/lodash # for TypeScript
npm run build
# Find all strictNullChecks errors
npx tsc --noEmit 2>&1 | Select-String "possibly 'null'" | Measure-Object -Line
# Fix them one file at a time, starting with leaf modules (no imports from your code)
npx tsc --noEmit 2>&1 | Select-String "possibly 'null'" | Select-Object -First 3
# Check Node/npm version differences
node --version
npm --version
# Check for OS-specific path issues
grep -rn "\\\\" src/ --include="*.ts" # Windows backslashes in code
# Check for missing environment variables
grep -rn "process.env" src/ --include="*.ts" | Select-String -NotMatch "NODE_ENV"
Fix the first error first — many later errors are caused by earlier ones
Use task agent to run builds — it returns brief output on success, full output on failure
After fixing, always run the full test suite, not just the build
If a dependency update caused the break, check its changelog for breaking changes
For persistent issues, compare against the last known-good commit:
git --no-pager log --oneline -10
git --no-pager diff <last-good-commit> -- src/
Keep tsconfig.json / build configs in source control so you can diff changes
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub drvoss/everything-copilot-cli --plugin everything-copilot-cli115 skills in this plugin
/actions-debuggingUse when a GitHub Actions workflow fails — diagnose the run log, identify the root cause, and apply a targeted fix/add-to-changelogUse when you've shipped a feature, fix, or breaking change and need to update CHANGELOG.md — follows Keep a Changelog format and syncs version numbers across package manifests./agent-governanceUse when designing or reviewing an AI agent system that needs policy-based access controls, intent classification, tool-level rate limiting, trust scoring for multi-agent workflows, or append-only audit trails.
Other plugins' skills for the same job