agentsclimarketplace

Lint all

Skill onur-gokyildiz-bhi/codescope/.claude/skills/lint-all

Run full lint + format + test + frontend build. Pre-commit / pre-release check.From its SKILL.md

Install
npx -y skills add onur-gokyildiz-bhi/codescope --skill lint-all

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 21 stars21 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.7 KB, as published. Nobody here has run it

/lint-all

Run the complete quality gate locally. Everything CI checks plus a few extras.

When to invoke

  • Before any commit (especially before push)
  • Before /ship (release workflow depends on it being clean)
  • When CI fails and you want to reproduce locally

Steps

# 1. Format (auto-fix in place)
cargo fmt --all

# 2. Clippy with strict warnings
cargo clippy --workspace -- -D warnings

# 3. Run all tests
cargo test --workspace

# 4. Build release binaries (catches release-only errors)
cargo build --release

# 5. Frontend build
cd crates/web/frontend && npm run build && cd ../../..

# 6. Check there are no unstaged changes (means fmt fixed something)
git diff --exit-code

Interpretation

ResultMeaning
All green, git diff --exit-code returns 0Ready to commit
fmt fixed somethingCommit the formatting changes
clippy warningFix before commit (never allow warnings)
test failureStop; investigate
npm build warning about chunk sizeExpected for three.js bundle, ignore

Common failures

  • unnecessary_min_or_max — clippy suggests removing .max(0) on unsigned types
  • ptr_arg — clippy prefers &Path over &PathBuf in function args
  • needless_borrow — remove unnecessary & in refs
  • fmt on Windows — CRLF warnings are normal; the line ending change is handled by .gitattributes

Codescope-first rule

When clippy complains about a function:

  • search(mode="exact", query=<function_name>) to see it in the graph
  • Don't Read the whole file just to see the complaint location

Keep looking

Skills are one crate of 613,297. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.