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.
In this repository36 other files it gives its agents.
- AGENTS.mdAGENTS.md
- apply-architectureSkill
- assess-threatsSkill
- bootstrapSkill
- chart-routeSkill
- clarify-intentSkill
- code-reviewSkill
- domain-glossarySkill
- improve-agentsSkill
- investigate-bugSkill
- learnSkill
- make-diagramSkill
- migrate-dataSkill
- model-domainSkill
- plan-workSkill
- profile-performanceSkill
- recover-workSkill
- releaseSkill
- review-blast-radiusSkill
- review-specSkill
- review-standardsSkill
- setup-dkstackSkill
- setup-labelsSkill
- setup-quality-gatesSkill
- setup-repo-protectionSkill
- setup-supply-chainSkill
- setup-versioningSkill
- start-issueSkill
- tdd-loopSkill
- triageSkill
- ui-designSkill
- ui-reviewSkill
- verify-claimSkill
- write-adrSkill
- write-prSkill
- writing-checkSkill
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
- Very specific: line 13
Add or update .editorconfig with strict settings:
- Distinctive: line 34
Do not start subagents for this skill.
≈ “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.
Files
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
- Add or update
.editorconfigwith strict settings:root = truecharset = utf-8end_of_line = lfindent_style = spacetrim_trailing_whitespace = trueinsert_final_newline = true- Language-specific indent sizes as needed
trim_trailing_whitespace = falsefor Markdown- Follow brace style.
For C# tools that read Roslyn settings, add
[*.cs]withcsharp_new_line_before_open_brace = all. For C and C++ with clang-format, mergeBreakBeforeBraces: Allmaninto.clang-format. Check the result with the selected formatter and enforce it in CI. Keep Go ongofmtand 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
.gitattributeswith* text=auto eol=lf, so that each checkout has LF line endings.end_of_linein.editorconfigdoes 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.
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.

