Lint

From ahtavarasmus/lightfriend · View interactive version

Lint is an AI agent skill from the GitHub repository ahtavarasmus/lightfriend. Run formatting and linting checks on the codebase

How to use this skill

Skill file

Quick Lint Check

Run all code quality checks without committing.

Process

Step 1: Check Formatting

cd backend && cargo fmt --check

Report pass/fail status.

Step 2: Run Clippy

cd backend && cargo clippy --workspace --all-targets --all-features -- -D warnings

Report any warnings or errors.

Step 3: Summary

Report overall status:

Auto-Fix Option

If formatting fails, offer to auto-fix:

cd backend && cargo fmt

For clippy issues, some can be auto-fixed:

cd backend && cargo clippy --fix --allow-dirty --allow-staged

Note: Not all clippy issues are auto-fixable. Manual fixes may be required.

Quick Reference

# Check only
cd backend && cargo fmt --check && cargo clippy --workspace --all-targets --all-features -- -D warnings

# Auto-fix formatting
cd backend && cargo fmt

# Auto-fix clippy (where possible)
cd backend && cargo clippy --fix --allow-dirty --allow-staged
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.