fix-errors
Skill604 starsChanged 2 months agoMITView on GitHub
Fix compilation errors, linting issues, and test failures in the warp Rust codebase. Covers presubmit checks, WASM-specific errors, and running specific tests. Use when the user hits build errors, clippy or fmt failures, test failures, or needs to run or interpret presubmit before a PR.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- codebyalexx/claude-skillstheir own version, first seen May 25, 2026
- sriinnu/tokmetertheir own version, first seen Apr 27, 2026
- cpkt9762/opencode-vscode-idetheir own version, first seen Mar 31, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- cpkt9762/opencode-vscode-ide★ 17same name
- sriinnu/tokmeter★ 1same name
- codebyalexx/claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository27 other files it gives its agents.
- brandalfSkill
- check-impl-against-specSkill
- complainSkill
- councilSkill
- create-prSkill
- cross-critiqueSkill
- diagnose-ci-failuresSkill
- implement-specsSkill
- migrate-to-factorySkill
- pr-walkthroughSkill
- readoutSkill
- reproduce-bug-reportSkill
- researchSkill
- resolve-merge-conflictsSkill
- respond-to-pr-comments-in-blocklistSkill
- review-prSkill
- sagaSkill
- scan-new-specsSkill
- skill-doctorSkill
- spec-driven-implementationSkill
- suggestion-boxSkill
- update-skillSkill
- validate-changes-match-specsSkill
- write-feature-docsSkill
- write-pr-descriptionSkill
- write-product-specSkill
- write-tech-specSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
21 rules. 0 are common, 12 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Run the full presubmit only when the user, task, or approved spec explicitly requires it:
- Distinctive: line 33
Run checks separately when debugging specific issues:
- Very specific: line 91
Remove unused use statements identified by the compiler.
- Distinctive: line 94
Remove constants that are defined but never used.
- Very specific: line 97
Add the correct use statement for undefined types.
- Distinctive: line 100
Update function calls to pass arguments of the correct type.
- Very specific: line 101
Use .as_str() instead of .clone() when a &str is expected
- Very specific: line 102
Use &value when a reference is needed
- Very specific: line 103
Use .to_string() when String is expected but &str is provided
- Distinctive: line 106
When a struct adds/removes fields, update all places where it's constructed or destructured:
- Distinctive: line 112
When a function adds a new parameter, update all call sites to provide the new argument:
- Very specific: line 117
When adding a new enum variant, update exhaustive match statements:
- Distinctive: line 118
Add a new match arm with appropriate handling
- Distinctive: line 165
Read the full error message to understand the root cause
- Distinctive: line 166
Check if multiple errors are related (fixing one may resolve others)
- Very specific: line 172
Run the smallest applicable cargo check when it helps resolve compiler errors.
- Very specific: line 177
Run the relevant cargo nextest tests and fix the code until they pass
- Distinctive: line 178
Run the applicable Clippy invocation and fix its findings.
- Very specific: line 179
Run ./script/format once after all other code changes are complete
- Distinctive: line 180
Do not rerun tests or Clippy after formatting, and do not add a full presubmit run, unless explicitly required
- Distinctive: line 181
If you only fixed a formatting failure and made no behavioral code change, rerun only the formatter
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
fix-errors
Fix compilation errors, linting issues, and test failures in the warp Rust codebase.
Overview
This skill helps resolve common issues encountered during development, including:
- Compilation errors (unused imports, type mismatches, etc.)
- Linting failures (clippy warnings)
- Formatting violations
- WASM-specific errors
- Test failures
Fix the reported failure with the narrowest useful command. Do not turn a targeted repair into repeated full-workspace validation.
Full Presubmit
Run the full presubmit only when the user, task, or approved spec explicitly requires it:
./script/presubmitThis runs formatting checks, linting, and all tests. It is intentionally broader and more expensive than the default implementation workflow.
Individual Checks
Run checks separately when debugging specific issues:
Rust formatting:
cargo fmt -- --checkClippy (full workspace):
cargo clippy --workspace --all-targets --tests -- -D warningsWASM Clippy:
cargo clippy --target wasm32-unknown-unknown --profile release-wasm-debug_assertions --no-depsObjective-C/C/C++ formatting:
./script/run-clang-format.py -r --extensions 'c,h,cpp,m' ./crates/warpui/src/ ./app/src/All tests:
cargo nextest run --no-fail-fast --workspace --exclude command-signatures-v2
cargo nextest run -p warp_completer --features v2Doc tests:
cargo test --docRunning Specific Tests
Single package:
cargo nextest run -p <package_name>Filter by test name:
cargo nextest run -E 'test(<substring>)'Specific package with filter:
cargo nextest run -p <package_name> -E 'test(<substring>)'With output (no capture):
cargo nextest run -p <package> --nocaptureCommon Error Types
Unused Imports
Remove unused use statements identified by the compiler.
Unused Constants
Remove constants that are defined but never used.
Unknown Imports
Add the correct use statement for undefined types. Search the codebase to find the correct module path.
Type Mismatches
Update function calls to pass arguments of the correct type. Common fixes:
- Use
.as_str()instead of.clone()when a&stris expected - Use
&valuewhen a reference is needed - Use
.to_string()whenStringis expected but&stris provided
Struct Field Changes
When a struct adds/removes fields, update all places where it's constructed or destructured:
- Struct initialization
- Pattern matching (
match,if let) - Destructuring assignments
Function Signature Changes
When a function adds a new parameter, update all call sites to provide the new argument:
- For
boolparams: passtrueorfalsebased on context - For
Option<T>params: passNoneas default orSome(value)if needed
Enum Variant Changes
When adding a new enum variant, update exhaustive match statements:
- Add a new match arm with appropriate handling
- Mirror the implementation pattern of similar variants
Incorrect Trait Implementation
Fix trait implementations that return the wrong type or don't satisfy trait bounds.
WASM-Specific Errors
WASM builds (wasm32-unknown-unknown target) don't support filesystem operations. Code that uses filesystem APIs must be gated behind the local_fs feature flag.
Common WASM errors:
- Dead code warnings for code only used in non-WASM builds
- Unused code that's only relevant when
local_fsis available - Tests that require filesystem access
Fixes:
Gate tests behind local_fs:
#[test]
#[cfg(feature = "local_fs")]
fn test_find_git_repo_with_worktree() {
// Test that uses filesystem operations
}Conditionally allow dead code for types only used when local_fs is enabled:
#[cfg_attr(not(feature = "local_fs"), allow(dead_code))]
#[derive(Clone, EnumDiscriminants, Serialize)]
pub enum ExampleType {
// Variants only used when local_fs is enabled
Variant1,
Variant2,
Variant3,
}WASM errors are discovered by running:
cargo clippy --target wasm32-unknown-unknown --profile release-wasm-debug_assertions --no-depsBest Practices
Before fixing:
- Read the full error message to understand the root cause
- Check if multiple errors are related (fixing one may resolve others)
- For trait/type errors, verify you understand the expected vs actual types
- For WASM errors, check if code needs to be gated behind
local_fs
When fixing:
- Fix one error type at a time when there are multiple issues
- Run the smallest applicable
cargo checkwhen it helps resolve compiler errors; do not repeat broad checks without a relevant code change - For WASM errors, run WASM clippy to verify the fix
- For complex changes, run relevant tests after fixing
After fixing:
- Run the relevant
cargo nextesttests and fix the code until they pass - Run the applicable Clippy invocation and fix its findings; return to affected tests only when a fix materially changes behavior
- Run
./script/formatonce after all other code changes are complete - Do not rerun tests or Clippy after formatting, and do not add a full presubmit run, unless explicitly required
- If you only fixed a formatting failure and made no behavioral code change, rerun only the formatter
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

