editorconfig

Generate .editorconfig

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "editorconfig" with this command: npx skills add aspiers/ai-config/aspiers-ai-config-editorconfig

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 .editorconfig already 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 .editorconfig content 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 = 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

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

task-orchestration

No summary provided by upstream source.

Repository SourceNeeds Review
General

slow-command-running

No summary provided by upstream source.

Repository SourceNeeds Review
General

git-staging

No summary provided by upstream source.

Repository SourceNeeds Review
General

git-commit

No summary provided by upstream source.

Repository SourceNeeds Review