Skip to content
Back to skills

Code Quality 13

ASecurity

Maintain high code quality through formatting, linting, and static analysis using rustfmt, clippy, and cargo audit. Use to ensure consistent code style and catch common mistakes.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
code-qualityrustgobashsecuritydocumentation

Works with

  • cli

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill code-quality-13 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Quality 13?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Quality 13
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-code-quality-13/badge)](https://www.skillsdirectory.com/skills/david-li0406-code-quality-13)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-quality
description: Maintain high code quality through formatting, linting, and static analysis using rustfmt, clippy, and cargo audit. Use to ensure consistent code style and catch common mistakes.
---

# Code Quality

Maintain high code quality through formatting, linting, and static analysis.

## Core Tools

### 1. Rustfmt (Formatting)

```bash
# Format all code
cargo fmt

# Check without changing
cargo fmt -- --check
```

### 2. Clippy (Linting)

```bash
# Run all lints
cargo clippy

# Treat warnings as errors (CI)
cargo clippy --all -- -D warnings

# Fix automatically
cargo clippy --fix
```

### 3. Cargo Audit (Security)

```bash
cargo audit
cargo deny check
```

## Quality Checklist

### Before Commit
- [ ] `cargo fmt` - Format code
- [ ] `cargo clippy -- -D warnings` - No lint warnings
- [ ] `cargo test --all` - All tests pass

### Before PR
- [ ] `cargo build --release` - Release build works
- [ ] `cargo doc --no-deps` - Documentation builds
- [ ] `cargo audit` - No security issues

## Common Issues

| Issue | Warning | Fix |
|-------|---------|-----|
| Unused imports | `unused import: HashMap` | Remove import |
| Unnecessary clone | `clone on Copy type` | Remove clone |
| Missing await | `unwrap on Result` | Use `?` |
| Large stack | `size difference variants` | Box large variants |

## Code Organization

- Files ≤ 500 LOC
- Functions < 50 LOC
- Single responsibility per module

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…