Skip to content
Back to skills

Editorconfig

ASecurity

Generate a .editorconfig file for a repository

  • 666 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added February 8, 2026
development

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill editorconfig --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Editorconfig?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Editorconfig
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-editorconfig/badge)](https://www.skillsdirectory.com/skills/majiayu000-editorconfig)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: editorconfig
description: Generate a .editorconfig file for a repository
---

# 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

1. Check if `.editorconfig` already exists - if so, update it
2. 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
3. Generate appropriate, minimal `.editorconfig` content
   with **no unnecessary duplication**.
4. Write the file to the repository root

## Generated Config Structure

```ini
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 = true` at the top
- Use `[*]` for universal settings
- Add specific file type overrides after universal settings
- Keep it minimal - only specify what differs from editor defaults

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.