Lint all

From onur-gokyildiz-bhi/codescope · View interactive version

Lint all is an AI agent skill from the GitHub repository onur-gokyildiz-bhi/codescope. Run full lint + format + test + frontend build. Pre-commit / pre-release check.

How to use this skill

Skill file

/lint-all

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

When to invoke

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

| Result | Meaning |

|---|---|

| All green, git diff --exit-code returns 0 | Ready to commit |

| fmt fixed something | Commit the formatting changes |

| clippy warning | Fix before commit (never allow warnings) |

| test failure | Stop; investigate |

| npm build warning about chunk size | Expected for three.js bundle, ignore |

Common failures

Codescope-first rule

When clippy complains about a function:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.