agentleFS
NoaiRoxNoaiRox/specialist-agent/skills/lint/SKILL.md

lint

Skill2 starsChanged 9 months agoMITView on GitHub

Use when you need to lint the codebase and auto-fix issues - detects linter, runs it, and fixes what it can.

80 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use query, ingest and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • ArtemXTechSkill

    query

    Query data from this vault. USE WHEN user asks about projects, clients, tasks, daily notes. Use grep to extract frontmatter - do NOT read full files.

    Also in 17 projects that use this

  • JaimeGBASkill

    ingest

    Digest an external source (article, paper, transcript, URL, book chapter) and integrate its content into the knowledge base

    Also in 26 projects that use this

  • PydanticSkill

    coverage

    Fetch coverage diff from Codecov for the current branch or a specific PR. Shows uncovered lines, patch coverage, and overall coverage change.

    Also in 4 projects that use this

  • seongjaeryuSkill

    save

    Complete and save your current thinking to Bindly

    Also in 5 projects that use this

  • BugRogerSkill

    project

    Project lifecycle management. Dispatches to Ada.

    Also in 4 projects that use this

  • AnthropicSkill

    digest

    Generate a daily or weekly digest of activity across all connected sources. Use when catching up after time away, starting the day and wanting a summary of mentions and action items, or reviewing a week's decisions and document updates grouped by project.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 6 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 67 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After generating code with AI

    line 17
  2. Distinctive:

    When CI fails on lint

    line 18
  3. Very specific:

    NOT for: type checking (use tsc directly)

    line 20
  4. Distinctive:

    Check for installed linters in order of priority:

    line 26
  5. Very specific:

    Always auto-fix first: - Run with --fix/--write before reporting

    line 122
  6. Distinctive:

    Detect, don't assume: - Check which linter is installed

    line 123
  7. Distinctive:

    Report remaining: - Only show issues that need manual intervention

    line 125
  8. Distinctive:

    Never install linters: - Use what's already in the project

    line 126

“Common” is measured: kept by at least 6 in 10 of the 67 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/lint - Lint & Auto-Fix

Detect the project's linter, run it, auto-fix what's possible, and report remaining issues.

Target: $ARGUMENTS

When to Use

  • Before committing changes
  • After generating code with AI
  • When CI fails on lint
  • During code cleanup
  • NOT for: type checking (use tsc directly)

Workflow

Step 1: Detect Linter

Check for installed linters in order of priority:

CheckLinter
biome.json or biome.jsonc existsBiome
.eslintrc.* or eslint.config.* existsESLint
deno.json with lint configDeno lint
package.json has lint scriptnpm run lint
# Check for config files
ls biome.json biome.jsonc .eslintrc.* eslint.config.* 2>/dev/null
# Check package.json scripts
cat package.json | grep -A5 '"scripts"' | grep lint

Step 2: Detect Formatter

CheckFormatter
.prettierrc* or prettier.config.* existsPrettier
biome.json exists (has built-in formatter)Biome
deno.json with fmt configDeno fmt
package.json has format scriptnpm run format

Step 3: Run Lint

# Based on detected linter:
# Biome
npx biome check $TARGET --write 2>&1

# ESLint
npx eslint $TARGET --fix 2>&1

# npm script
npm run lint -- --fix 2>&1

# Deno
deno lint --fix $TARGET 2>&1

Step 4: Run Formatter (if separate from linter)

# Prettier
npx prettier --write $TARGET 2>&1

# npm script
npm run format 2>&1

Step 5: Report

Count fixed vs remaining issues.

Output

──── /lint ────
Linter: ESLint
Formatter: Prettier
Target: src/

Fixed automatically:
  - 12 formatting issues (Prettier)
  - 5 unused imports (ESLint --fix)
  - 3 missing semicolons (ESLint --fix)

Remaining (manual fix needed):
  - src/auth.ts:42 - no-explicit-any: Unexpected any
  - src/api.ts:18 - no-unused-vars: 'result' is defined but never used

Summary: 20 fixed, 2 remaining

Clean Output (no issues):

──── /lint ────
Linter: Biome
Target: src/

✓ No issues found

Anti-Rationalization

ExcuseReality
"It's just a style warning, not a real issue"Style inconsistency makes code harder to read for every future developer. Fix it.
"I'll fix lint errors when I have time"Lint errors accumulate. 5 today become 50 next week. Fix them now.
"Auto-fix might change behavior"Lint auto-fixes (formatting, imports) are safe. If unsure, review the diff.
"My code works, lint doesn't matter"Lint catches bugs too (unused vars, implicit any, unreachable code). It matters.

Rules

  1. Always auto-fix first - Run with --fix/--write before reporting
  2. Detect, don't assume - Check which linter is installed
  3. Format after lint - Linter first, formatter second (if separate)
  4. Report remaining - Only show issues that need manual intervention
  5. Never install linters - Use what's already in the project

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.