install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/editorconfig" ~/.claude/skills/majiayu000-claude-skill-registry-editorconfig && rm -rf "$T"
manifest:
skills/data/editorconfig/SKILL.mdsource content
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
already exists - if so, update it.editorconfig - 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
content with no unnecessary duplication..editorconfig - 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
at the toproot = true - Use
for universal settings[*] - Add specific file type overrides after universal settings
- Keep it minimal - only specify what differs from editor defaults