agentleFS
ElasticKnown publisherelastic/docs-builder/.claude/skills/lint/SKILL.md

lint

Skill25 starsChanged 3 months agoApache-2.0View on GitHub

Auto-fix all formatting issues in the docs-builder repo — runs dotnet format for C# and npm fmt:write for TypeScript/JS. Use when the user asks to fix formatting, lint the code, or when a pre-commit hook fails due to formatting.

29 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use query, ingest and 6 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 10 projects that use this

  • raven-souravSkill

    ingest

    Also in 13 projects that use this

  • seongjaeryuSkill

    save

    Complete and save your current thinking to Bindly

    Also in 4 projects that use this

  • ffsshhttiikkSkill

    graph

    Graph data structures

    Also in 3 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 5 projects that use this

  • DockerSkill

    research

    Research a documentation topic — locate affected files, understand the problem, identify what to change. Use when investigating an issue, a question, or a topic before writing a fix. Triggers on: "research issue 1234", "investigate what needs changing for #500", "what files are affected by #200", "where is X documented", "is our docs page about Y accurate", "look into how we document Z".

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After both commands complete:

    line 30
  2. Distinctive:

    If files were changed: list which files were reformatted

    line 31
  3. Distinctive:

    If nothing changed: confirm "No formatting issues found"

    line 32
  4. Very specific:

    Run this before /commit if you see formatting errors in build output or pre-commit hook failures

    line 37

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

Fixes all formatting issues across C# and TypeScript in the docs-builder repo.

Steps

1. Fix C# formatting

dotnet format

This applies the project's editorconfig and code style rules to all C# files.

2. Fix TypeScript/JS formatting

cd src/Elastic.Documentation.Site && npm run fmt:write

This runs Prettier on all frontend source files.

3. Report results

After both commands complete:

  • If files were changed: list which files were reformatted
  • If nothing changed: confirm "No formatting issues found"

Notes

  • This skill fixes files in place but does not commit
  • Run this before /commit if you see formatting errors in build output or pre-commit hook failures
  • Formatting rules are enforced by Husky.Net pre-commit hooks (prettier + eslint for TS, dotnet-lint on pre-push for C#)
  • dotnet format is also available as ./build.sh lint for the full lint pipeline

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.