Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Cleanser-Labsv1.0.0MIT
Checklist-driven linting for LLM-generated code. Runs heuristics to find violations, reviews with LLM, and applies fixes.
You run one by typing its /name in Claude Code.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Checklist-driven linting for LLM-generated code. Define rules, detect violations, fix them.
┌─────────────┐ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐
│ DEFINE │───▶│ CHECK │───▶│ REVIEW │───▶│ FIX │
│ .flint/rules│ │ flint check │ │ flint agent │ │ flint agent │
└─────────────┘ └─────────────┘ └─────────────┘ └─────────────┘
Rules start simple - just a string:
- Remove obvious comments that restate code
Add check to detect violations automatically, fix to guide remediation:
- description: Remove obvious comments that restate code
check: "# [Ii]nitialize|# [Ss]et |# [Rr]eturn"
fix: "Delete comment - code should be self-explanatory"
Add on to scope when rules apply, plus optional severity, tags, name:
- name: no-obvious-comments
description: Remove obvious comments that restate code
severity: warn # error, warn, info
tags: [slop, comments]
check: "# [Ii]nitialize|# [Ss]et |# [Rr]eturn"
fix: "Delete comment - code should be self-explanatory"
on:
file:
extension: [".py", ".js"]
uv tool install -e .
# Initialize with built-in packs
flint init -p modern-python -p clean-code
# Check for violations
flint check src/
# Review + fix in one pass
flint agent src/
Output:
- [ ] Use 'is None' not '== None'
- [ ] utils.py:33 `if x == None:` [!]
- [ ] utils.py:35 `if x != None:` [!]
- [ ] Use pathlib instead of os.path
- [ ] files.py:12 `os.path.join(a, b)` [!]
Found 3 potential violations in 2 rules.
Rules can be brief or detailed:
# Brief: just strings (manual checklist items)
- Prefer pathlib over os.path
- Functions should do one thing
- Keep files under 500 lines
# Pattern matching
- description: Avoid bare except
check: "except\\s*:"
fix: "Catch specific exceptions"
# Composable checks
- description: No mutable defaults
check:
any:
- matches: "def \\w+\\([^)]*=\\s*\\[\\]"
- matches: "def \\w+\\([^)]*=\\s*\\{\\}"
# Path filtering
- description: React hooks
paths: "**/*.tsx"
excludes: ["**/test/**"]
check: "useState\\("
For packs with shared conditions, use on: and rules::
# .flint/rules/python.yaml
on:
file:
extension: [".py"]
rules:
- description: Use pathlib
check: "os\\.path\\."
fix: "Replace with pathlib.Path"
- description: No eval
severity: error
check: "\\beval\\s*\\("
Apply rules only when conditions are met:
- description: Django models need Meta
on:
file:
extension: [".py"]
contains: ["from django.db import models"]
project:
has: ["manage.py"]
check:
contains: "class Meta:"
| Function | Description |
|---|---|
matches | Regex pattern match |
contains | Literal string match |
not_contains | String must NOT be present |
has_import | Python import check |
any | OR - at least one must match |
all | AND - all must match |
none | NOR - none should match |
For complex logic, use Python:
from flint.decorators import rule, fix, violation
@rule(severity="error", paths="**/*.py")
def no_eval(ctx):
"""Never use eval() with untrusted input."""
if "eval(" in ctx.line:
return violation(ctx, hint="Use ast.literal_eval()")
return None
@fix(no_eval)
def fix_eval(ctx):
return ctx.line.replace("eval(", "ast.literal_eval(")
flint init -p modern-python # Python 3.10+ best practices
flint init -p clean-code # General code quality
flint init -p unslop # Remove AI-generated slop
flint init -p security # Security checks
flint init -p naming # Naming conventions
flint init -p rust # Rust best practices
flint init -p api-design # REST API conventions
flint init -p brand-voice # Marketing copy rules
flint init -p accessibility # WCAG compliance
flint init -p compliance # GDPR, HIPAA, PCI-DSS
See packs/ for all available packs.
The flint agent command runs a full check → review → fix pipeline:
flint agent src/ # Full workflow
flint agent --dry-run src/ # Preview without fixing
Phases:
fix hints or auto-fix functions# Check
flint check src/ # Find violations
flint check -f json src/ # JSON output
flint check --pack unslop src/ # Specific pack only
flint check --tag security src/ # Filter by tag
flint check --strict src/ # Exit 1 if violations
Generated from the plugin's indexed repository (cleanser-labs/flint) — no native marketplace selected
npx claudepluginhub p/cleanser-labs-flintBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground