Agent skill
editorconfig
Generate a .editorconfig file for a repository
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/editorconfig
SKILL.md
Generate .editorconfig
When to use this skill
When starting work on a new repository or adding an .editorconfig to an
existing project that lacks one.
How it works
Creates a minimal .editorconfig file with sensible defaults. The generated
config follows the repository's existing style when possible.
Process
- Check if
.editorconfigalready exists - if so, update it - Examine existing files in the repo to detect coding style:
- Look at indentation (spaces vs tabs), indent size
- Check line ending conventions
- Identify file types that may need special handling
- Generate appropriate, minimal
.editorconfigcontent with no unnecessary duplication. - Write the file to the repository root
Generated Config Structure
root = true
[*]
indent_style = space
indent_size = <detected or 4>
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
max_line_length = 78
[*.json]
indent_size = 2
Best Practices
- Always set
root = trueat the top - Use
[*]for universal settings - Add specific file type overrides after universal settings
- Keep it minimal - only specify what differs from editor defaults
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?