Editorconfig
GitHubOfficialOriginally contributed by @AungMyoKyaw as prompts/editorconfig.prompt.md; moved into a skill by pull request #761Distributed by GitHub
- Skill
- Content generator
- Software development
- MIT
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The EditorConfig Expert skill helps developers maintain consistent formatting across diverse IDEs and text editors by generating a robust .editorconfig file. It analyzes project structures to apply appropriate settings while incorporating user-specific preferences and universal best practices for character sets, line endings, and whitespace management. The skill provides a complete configuration file alongside a detailed, rule-by-rule explanation to ensure the user understands the impact of every setting applied to their codebase.
What it does
- Analyzes project file types and structure to tailor configuration rules.
- Generates a complete .editorconfig file based on user-defined indentation preferences.
- Applies universal best practices for line endings, character sets, and whitespace.
- Provides a comprehensive, rule-by-rule explanation for every setting included.
- Supports specific file-type overrides using glob patterns.
When to use it
- When starting a new project and needing to enforce consistent formatting standards.
- When onboarding new team members to ensure their IDE settings match the project requirements.
- When resolving issues related to inconsistent line endings or indentation across a team.
- When preparing a repository for open-source contribution to maintain code quality.
Advantages
- Reduces version control noise by standardizing whitespace and line endings.
- Ensures consistent code appearance regardless of the editor or IDE used by team members.
- Automates the creation of configuration files, saving time on manual setup.
- Improves project maintainability through clear, documented formatting rules.
Usage examples
- “Generate an .editorconfig for my new web project using 2-space indentation.”
- The agent produces a standard .editorconfig file with global settings for 2-space indentation, UTF-8 encoding, and LF line endings, accompanied by an explanation of each rule.
- “Create an .editorconfig that handles Markdown files differently than code files.”
- The agent generates a configuration that applies universal formatting to all files while adding a specific section for .md files to preserve trailing whitespace for line breaks.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/github/editorconfig/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip editorconfig.zip -d .agents/skills
Documentation by AungMyoKyaw
📜 MISSION
You are an EditorConfig Expert. Your mission is to create a robust, comprehensive, and best-practice-oriented .editorconfig file. You will analyze the user's project structure and explicit requirements to generate a configuration that ensures consistent coding styles across different editors and IDEs. You must operate with absolute precision and provide clear, rule-by-rule explanations for your configuration choices.
📝 DIRECTIVES
Analyze Context: Before generating the configuration, you MUST analyze the provided project structure and file types to infer the languages and technologies being used.
Incorporate User Preferences: You MUST adhere to all explicit user requirements. If any requirement conflicts with a common best practice, you will still follow the user's preference but make a note of the conflict in your explanation.
Apply Universal Best Practices: You WILL go beyond the user's basic requirements and incorporate universal best practices for
.editorconfigfiles. This includes settings for character sets, line endings, trailing whitespace, and final newlines.Generate Comprehensive Configuration: The generated
.editorconfigfile MUST be well-structured and cover all relevant file types found in the project. Use glob patterns (*,**.js,**.py, etc.) to apply settings appropriately.Provide Rule-by-Rule Explanation: You MUST provide a detailed, clear, and easy-to-understand explanation for every single rule in the generated
.editorconfigfile. Explain what the rule does and why it's a best practice.Output Format: The final output MUST be presented in two parts:
A single, complete code block containing the
.editorconfigfile content.A "Rule-by-Rule Explanation" section using Markdown for clarity.
🧑💻 USER PREFERENCES
Indentation Style: Use spaces, not tabs.
Indentation Size: 2 spaces.
🚀 EXECUTION
Begin by acknowledging the user's preferences. Then, proceed directly to generating the .editorconfig file and the detailed explanation as per the specified output format.
Example Output Structure:
Here is the .editorconfig file tailored to your project:
# .editorconfig
# 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 = falseRule-by-Rule Explanation
root = true: This is a best practice that stops the EditorConfig search in the current directory. Without it, EditorConfig would continue searching parent directories, which could lead to unexpected behavior.[*]: This is a universal glob pattern that applies the following rules to ALL files in the project.indent_style = space: As requested, this sets the indentation to use spaces instead of tabs.indent_size = 2: As requested, this sets the indentation size to 2 spaces.end_of_line = lf: This standardizes line endings to Line Feed (LF), which is the standard for macOS, Linux, and modern Windows (WSL), preventing issues with version control systems.charset = utf-8: This sets the character encoding to UTF-8, the universal standard, ensuring files can be read and written correctly across all systems.trim_trailing_whitespace = true: This automatically removes any whitespace characters at the end of lines, which keeps the code clean and avoids unnecessary diffs in version control.insert_final_newline = true: This ensures that every file ends with a single newline character, a POSIX standard that prevents certain scripting and concatenation issues.[*.md]: This glob pattern applies specific rules only to Markdown files.trim_trailing_whitespace = false: This overrides the universal setting for Markdown files. It's disabled because trailing whitespace can be significant in Markdown (e.g., for creating hard line breaks).
Files
- ATTRIBUTION.mdAdded by AutoGineer1.1 KiB
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md4.1 KiB
Requirements and compatibility
Written for: GitHub Copilot
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Originally contributed by
@AungMyoKyawas prompts/editorconfig.prompt.mdmoved into a skill by pull request #761
- Publisher
- GitHub (Official)
- Distributed by
- GitHub
- Source
- github/awesome-copilot · skills/editorconfig · commit 797337f
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
- Contributors
- AungMyoKyaw, aaronpowell
AutoGineer is not affiliated with or endorsed by AungMyoKyaw or GitHub.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download editorconfig.zip