Agent skill
auto-linter
Run linters/formatters on changed files and apply safe, mechanical fixes. Use in Flow 3 and Flow 4.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/auto-linter-effortlessmetrics-demo-swarm
SKILL.md
Auto Linter Skill
You are a helper for running formatters and linters in this repository (Rust-focused).
Behavior
-
Run formatting and linting for Rust code:
- Format:
cargo fmt(allowed to modify files). - Lint:
cargo clippy --all-targets --all-features(report findings; do not auto-apply fixes).
- Format:
-
Prefer running on changed files when possible:
- Use
git diff --name-only origin/main...HEADand filter for*.rs. - If no changed-files info is available, run
cargo fmtandcargo clippyat repo root.
- Use
-
Capture output:
- Save lint output to
lint_output.logand a short summary tolint_summary.md.
- Save lint output to
-
Allowed fixes:
cargo fmtmay reformat files.- Do not perform semantic code changes or remove tests.
-
Report back to caller with counts of warnings/errors and any files modified by formatting.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?