agentleFS
daniel-kindldaniel-kindl/dkstack/skills/setup-editorconfig/SKILL.md

setup-editorconfig

Skill1 starsChanged 19 days agoMITView on GitHub

Use when a repository has no .editorconfig or .gitattributes, or has loose settings. One building block of bootstrap. Sets strict editor settings, the brace style and LF line endings.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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. Very specific:

    Add or update .editorconfig with strict settings:

    line 13
  2. Distinctive:

    Do not start subagents for this skill.

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

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

Set up editor settings

A building block of bootstrap. Use it alone, or as a step of bootstrap. Do not weaken an existing quality gate. See coding/quality-gates.md.

Steps

  1. Add or update .editorconfig with strict settings:
    • root = true
    • charset = utf-8
    • end_of_line = lf
    • indent_style = space
    • trim_trailing_whitespace = true
    • insert_final_newline = true
    • Language-specific indent sizes as needed
    • trim_trailing_whitespace = false for Markdown
    • Follow brace style. For C# tools that read Roslyn settings, add [*.cs] with csharp_new_line_before_open_brace = all. For C and C++ with clang-format, merge BreakBeforeBraces: Allman into .clang-format. Check the result with the selected formatter and enforce it in CI. Keep Go on gofmt and use the documented exceptions. EditorConfig has no standard brace-placement property. If the tool has no supported setting, record the preference as documentation only. Keep existing quality gates.
    • Also add .gitattributes with * text=auto eol=lf, so that each checkout has LF line endings. end_of_line in .editorconfig does not change the files that Git checks out.

Subagents

Do not start subagents for this skill. Reason: this is one small job. bootstrap can check it in a subagent. See the subagent guide.

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.