lint-manager
Skill70 starsChanged 8 months agoMITView on GitHub
Comprehensive lint configuration and error management for multi-language projects. Automatically detects programming languages, generates appropriate lint configurations (ESLint, Ruff, SwiftLint, golangci-lint), installs required tools, runs lint checks, and auto-fixes errors with AI. Use for setting up linting for a new project, configuring pre-commit hooks, running lint on staged or specific files, auto-fixing lint errors, detecting project programming languages, and generating lint configuration files. Supports JavaScript/TypeScript, Python, Swift, and Go.
In this repository5 other files it gives its agents.
- core-logicSkill
- design-directorSkill
- design-extractorSkill
- markdown-to-imageSkill
- nvcSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 9 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Use scripts/detect_language.py to identify programming languages in the project:
- Very specific: line 37
Use scripts/install_linter.py to install required lint tools:
- Distinctive: line 69
Configuration strategy: Ask user to choose between minimal (recommended for new projects) or strict (for production codebases).
- Very specific: line 73
Use scripts/run_lint.py to run lint checks:
- Distinctive: line 92
If lint errors are found:
- Distinctive: line 103
Ask user: "Use minimal or strict configuration?"
- Very specific: line 105
Run initial lint: python3 scripts/run_lint.py
- Distinctive: line 110
If errors remain, fix them with Edit tool
- Distinctive: line 117
Ask: "Keep existing config or generate new?"
- Distinctive: line 118
If new, copy template (ask: minimal or strict?)
- Distinctive: line 119
Run lint and fix any errors
- Distinctive: line 166
Ask user: minimal or strict?
- Very specific: line 169
Run with --fix first
- Distinctive: line 175
Ensure tool is in PATH
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Lint Manager
Overview
Automated lint management for multi-language projects. Detects languages, generates configurations, installs tools, runs checks, and auto-fixes errors.
Workflow
1. Detect Languages
Use scripts/detect_language.py to identify programming languages in the project:
python3 scripts/detect_language.py /path/to/projectReturns language list with confidence scores. Primary language is the first result.
Example output:
{
"detected": [
{"language": "python", "confidence": 0.85, "score": 42},
{"language": "javascript", "confidence": 0.15, "score": 8}
],
"primary": "python"
}2. Install Lint Tools
Use scripts/install_linter.py to install required lint tools:
# Install for specific language
python3 scripts/install_linter.py --language python --preset minimal
# Auto-detect and install all
python3 scripts/install_linter.py --preset minimalPresets:
minimal: Essential rules only (fast, for new projects)full: All recommended rules (strict, for production)
Supported tools:
- JavaScript/TypeScript: ESLint
- Python: Ruff
- Swift: SwiftLint
- Go: golangci-lint
3. Generate Configuration
Copy appropriate template from assets/ to project root:
| Language | Config File | Template |
| JavaScript | .eslintrc.json | assets/eslintrc.json |
| TypeScript | .eslintrc.json | assets/eslintrc.typescript.json |
| Python | pyproject.toml | assets/ruff.toml |
| Swift | .swiftlint.yml | assets/swiftlint.yml |
| Go | .golangci.yml | assets/golangci.yml |
Configuration strategy: Ask user to choose between minimal (recommended for new projects) or strict (for production codebases).
4. Run Lint
Use scripts/run_lint.py to run lint checks:
# Lint all files
python3 scripts/run_lint.py
# Lint staged files only (for pre-commit)
python3 scripts/run_lint.py --staged
# Lint specific files
python3 scripts/run_lint.py --language python --files src/main.py
# Auto-fix issues
python3 scripts/run_lint.py --fix
python3 scripts/run_lint.py --fix --staged5. Fix Errors
If lint errors are found:
- Try auto-fix first with
--fixflag - For remaining errors, use Edit tool to fix each issue
- Re-run lint to verify fixes
Common Workflows
New Project Setup
- Detect languages:
python3 scripts/detect_language.py - Install tools:
python3 scripts/install_linter.py --preset minimal - Ask user: "Use minimal or strict configuration?"
- Copy config template to project root
- Run initial lint:
python3 scripts/run_lint.py
Pre-commit Hook
- Run:
python3 scripts/run_lint.py --staged --fix - If errors remain, fix them with Edit tool
- Re-run until clean
Adding Lint to Existing Project
- Detect languages
- Install tools
- Ask: "Keep existing config or generate new?"
- If new, copy template (ask: minimal or strict?)
- Run lint and fix any errors
Resources
scripts/
detect_language.py
- Scans project files and directories
- Returns detected languages with confidence scores
- Usage: Auto-detection step
install_linter.py
- Installs lint tools for detected languages
- Checks if already installed
- Supports minimal/full presets
- Usage: Tool installation
run_lint.py
- Runs lint tools on project files
- Supports staged-only mode for pre-commit
- Supports auto-fix mode
- Usage: Lint execution
references/
Language-specific lint documentation:
javascript.md- ESLint rules, TypeScript setuppython.md- Ruff configuration, commandsswift.md- SwiftLint rules, Xcode integrationgo.md- golangci-lint setup, CI integration
Load when:
- User asks about specific lint tool
- Need to troubleshoot linter issues
- User wants customization options
assets/
Configuration file templates for each language. Copy to project root when generating configs.
Error Handling
Tool not installed:
- Run
python3 scripts/install_linter.py --language <lang>
Config file missing:
- Copy template from
assets/ - Ask user: minimal or strict?
Lint errors found:
- Run with
--fixfirst - For remaining errors, parse and fix manually
- Re-run to verify
Permission denied:
- Check file permissions
- Ensure tool is in PATH
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

