aspiers/ai-config / .agents/skills/editorconfig
editorconfig
VerifiedGenerates a minimal .editorconfig with sensible defaults for a repository. Use when starting work in a new repository, when a project has no .editorconfig, or when the user asks to add or standardise editor and formatting settings.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.5 KB |
SKILL.md
View on GitHub---
name: editorconfig
description: >-
Generates a minimal .editorconfig with sensible defaults for a repository.
Use when starting work in a new repository, when a project has no
.editorconfig, or when the user asks to add or standardise editor and
formatting settings.
---
# 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
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |