editorconfig

Generate a best-practice .editorconfig with universal defaults and Markdown exception.

3|1|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill editorconfig-cogni-ai-ou
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: editorconfig
Source: https://github.com/Cogni-AI-OU/cogni-ai-agent-skills/tree/main/editorconfig
Command: npx skills add https://github.com/Cogni-AI-OU/cogni-ai-agent-skills --skill editorconfig-cogni-ai-ou

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents inconsistent whitespace, indentation, and encoding settings across different editors and IDEs by generating a single, repo-wide .editorconfig aligned to your project needs.

Core Features & Use Cases

  • Project-aware configuration generation: Scans the project structure to infer relevant file types and technologies, then creates matching glob patterns for each.
  • Preference-respecting output: Incorporates explicit user preferences (such as indentation style/size) and highlights any conflicts with best practices.
  • Rule-by-rule transparency: Produces the .editorconfig plus a clear “Rule-by-Rule Explanation” so teams understand why each setting exists.
  • Markdown-safe whitespace handling: Disables trim_trailing_whitespace for [*.md] to preserve Markdown semantics that rely on trailing spaces.

Quick Start

Use the editorconfig skill to generate a comprehensive .editorconfig for the repository and include a rule-by-rule explanation for each formatting decision.

Frequently Asked Questions about editorconfig

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I standardize code formatting and indentation across different editors in my repository?▼

To standardize code formatting across different editors, you can generate a best-practice .editorconfig file that enforces universal defaults like lf line endings, utf-8 encoding, and trim trailing whitespace for consistent repository formatting.

What is the best way to enforce whitespace rules and line endings for multiple file types?▼

The best way to enforce whitespace rules across multiple file types is by generating an .editorconfig that uses inferred glob patterns to apply specific indentation and encoding settings tailored to each technology stack in your project.

Does generating an .editorconfig preserve trailing whitespace for Markdown files?▼

Yes, generating an .editorconfig preserves trailing whitespace for Markdown files by including a specific [*.md] exception that disables trimming, ensuring Markdown semantics relying on trailing spaces remain intact.

Can I apply custom indentation preferences while generating a workspace standardization configuration?▼

You can apply custom indentation preferences during workspace standardization by providing user constraints, which the generator incorporates into the .editorconfig while highlighting any conflicts with established best practices.

Why does my .editorconfig include root=true and a rule-by-rule explanation?▼

Your .editorconfig includes root=true to stop directory traversal and a rule-by-rule explanation to provide transparency, ensuring teams understand the rationale behind each formatting decision and universal default.