editorconfig
Skill4 starsChanged 6 months agoMITView on GitHub
Generates a comprehensive and best-practice-oriented .editorconfig file based on project analysis and user preferences.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- github/awesome-copilotedited, first seen Oct 25, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- github/awesome-copilot★ 41k13% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository124 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- .github/workflows/AGENTS.mdAGENTS.md
- .vscode/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- agent-log-analysisSkill
- agent-mdSkill
- agent-md-writerSkill
- agent-skill-md-writerSkill
- agentskillsSkill
- agents-md-writerSkill
- ai-prompt-writerSkill
- ansibleSkill
- apache-airflow-apiSkill
- apache-airflow-dagsSkill
- astro-cliSkill
- astronomer-docsSkill
- awesome-copilotSkill
- brainstorm-agent-runsSkill
- brainstorm-github-prSkill
- brainstormSkill
- catSkill
- chrome-devtoolsSkill
- claude-docsSkill
- codeqlSkill
- code-reviewSkill
- code-tourSkill
- coding-standard-writerSkill
- context-aware-opsSkill
- copilot-cliSkill
- copilot-docsSkill
- critical-thinkingSkill
- datadog-agentSkill
- datadog-apiSkill
- datadog-mcpSkill
- datadog-monitorsSkill
- datadog-pulumiSkill
- devcontainerSkill
- dictationSkill
- direnvSkill
- dockerfileSkill
- dockerSkill
- docs-reviewSkill
- docs-writerSkill
- dot-claudeSkill
- dotfilesSkill
- dot-githubSkill
- fact-writerSkill
- gdpr-compliantSkill
- gh-agent-taskSkill
- gh-apiSkill
- gh-aw-compileSkill
- gh-aw-firewall-debugSkill
- gh-aw-firewallSkill
- gh-aw-newSkill
- gh-awSkill
- gh-aw-troubleshootingSkill
- gh-codespaceSkill
- gh-issueSkill
- gh-modelsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 24
Universal Standards: Use lf for line endings, utf-8 charset, trim trailing whitespace, and insert final newlines globally unless context …
- Very specific: line 29
When requested to generate, update, or configure an .editorconfig file.
- Distinctive: line 30
When standardizing coding styles or formatting hooks for a workspace.
- Very specific: line 34
When the project already has an established .editorconfig that simply needs minor adjustments (edit the existing file rather than …
- Distinctive: line 36
If the repository strictly uses an automated formatter like Prettier or Black that overrides editor configurations.
- Very specific: line 64
If settings are overridden by parent directories, verify that root = true is placed at the top of the file.
- Very specific: line 65
If whitespace handling causes issues in Markdown or Makefiles, explicitly add overrides for [*.md] or [Makefile].
- Very specific: line 69
Start with root = true to stop the EditorConfig search in the current directory.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
editorconfig
<!-- markdownlint-disable MD013 MD023 MD031 MD032 -->Generate a robust, comprehensive, and best-practice-oriented .editorconfig file to ensure consistent coding styles across different editors and IDEs.
Core Process
- Analyze Context: Scan the project structure and file types to infer the languages and technologies being used.
- Incorporate Preferences: Adhere to explicit user constraints (e.g., indentation style/size). Note any conflicts with best practices in the final explanation.
- Apply Universal Best Practices: Enforce baseline standards (character sets, LF line endings, trailing whitespace, and final newlines).
- Generate File: Output a structured
.editorconfigfile covering all relevant file types found in the project via glob patterns (*,**.js,**.py, etc.). - Provide Explanations: Detail the rationale for every single rule generated in a clear Markdown "Rule-by-Rule Explanation" section below the code block.
Core Principles
- Precision Targeting: Apply rules via universal and specific glob patterns without polluting unrelated scopes.
- Universal Standards: Use
lffor line endings,utf-8charset, trim trailing whitespace, and insert final newlines globally unless context demands otherwise. - Exceptions Mapping: Explicitly disable
trim_trailing_whitespacefor[*.md]files since trailing whitespace holds semantic meaning (hard line breaks).
When to Use
- When requested to generate, update, or configure an
.editorconfigfile. - When standardizing coding styles or formatting hooks for a workspace.
When Not to Use
- When the project already has an established
.editorconfigthat simply needs minor adjustments (edit the existing file rather than generating a new one from scratch). - For enforcing complex logic constraints or code quality metrics (use Linters like ESLint or Pylint instead).
- If the repository strictly uses an automated formatter like Prettier or Black that overrides editor configurations.
Common Pitfalls
- Overriding Markdown Semantics: Setting
trim_trailing_whitespace = trueglobally without adding an exception for[*.md], breaking Markdown's hard-line breaks (which require two trailing spaces). - Ignoring Project Context: Generating a generic
.editorconfigthat defaults to 4 spaces, even when every file in the current repository clearly uses 2 spaces. - Missing
root = true: Forgetting to addroot = trueat the top of the file, causing editors to continue searching parent directories for conflicting rules.
Quick Start
# Top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = falseDiagnostics and Troubleshooting
- If settings are overridden by parent directories, verify that
root = trueis placed at the top of the file. - If whitespace handling causes issues in Markdown or Makefiles, explicitly add overrides for
[*.md]or[Makefile].
Best Practices
- Start with
root = trueto stop the EditorConfig search in the current directory. - Combine the output into two parts: A single code block with the
.editorconfigand a "Rule-by-Rule Explanation" section in Markdown.
What to Avoid
- Outputting an
.editorconfigwithout rule-by-rule explanations. - Overwriting existing
.editorconfigfiles blindly without reading and merging current project conventions.
References
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.

