agentleFS
emaraschioemaraschio/cursor-commands/.cursor/skill-contracts/lint-fix/SKILL.md

lint-fix

Skill9 starsChanged 3 months agoMITView on GitHub

Fix lint issues in the current file

17 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use docstring, changelog and 1 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.
  • NVIDIASkill

    docstring

    Write or review docstrings for public modules, classes, and functions in sdm/. Use when adding or reviewing docstrings to follow repo best practices (Args sections, paper citations, tensor shape notation).

    Also in 3 projects that use this

  • HashiCorpSkill

    changelog

    Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.

    Also in 5 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Remove unused imports and variables

    line 20
  2. Distinctive:

    Add missing semicolons or correct indentation

    line 21
  3. Distinctive:

    Use the project linter config rather than personal or ad hoc rules.

    line 43
  4. Distinctive:

    Do not commit, push, merge, or run production scripts without consent.

    line 45

“Common” is measured: kept by at least 6 in 10 of the 16 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

Overview

Analyze the current file for linting issues and automatically fix them according to the project's coding standards, then apply the fixes directly to the code and explain what changes were made.

Steps

  1. Identify linting issues
    • Code formatting and style consistency
    • Unused imports and variables
    • Missing semicolons or proper indentation
    • Best practice violations
    • Type safety issues
  2. Apply fixes
    • Fix formatting and style issues
    • Remove unused imports and variables
    • Add missing semicolons or correct indentation
    • Apply best practice corrections
    • Fix type safety issues
    • Explain what changes were made

Lint and Fix Code Checklist

  • Identified all code formatting and style issues
  • Identified unused imports and variables
  • Identified missing semicolons or indentation issues
  • Identified best practice violations
  • Identified type safety issues
  • Applied all formatting and style fixes
  • Removed unused imports and variables
  • Fixed indentation and added missing semicolons
  • Applied best practice corrections
  • Fixed type safety issues
  • Explained what changes were made

Guardrails

  • Limit edits to formatting and style; do not change behavior while fixing lint.
  • Use the project linter config rather than personal or ad hoc rules.
  • Scope is the current file; if asked to fix lint across the whole repo, point to the repo-wide lint workflow (/lint-suite) instead of silently linting one file.
  • Do not commit, push, merge, or run production scripts without consent.

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.