/code-quality-refactoring:editorconfigfrom code-quality-refactoring
Generates or updates a .editorconfig file based on repository file types and formatting preferences, with rule-by-rule explanations for consistent editor behavior across contributors.
Ships in code-quality-refactoring. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Analyze project file types and user formatting preferences, then produce a complete .editorconfig plus a rule-by-rule explanation that makes editor behavior consistent across contributors.
Use the repository tree, existing .editorconfig content, and explicit user preferences. Default to spaces with indent_size = 2 when the user gives no contrary preference because the original directive set requested spaces, not tabs, and 2 spaces.
| Rule | Default | Why |
|---|---|---|
root = true | At file top | Stops EditorConfig search from walking into parent directories. |
[*] | Always include | Defines universal defaults for all files. |
indent_style = space | Universal unless project proves tabs are required | Aligns with the stated user preference. |
indent_size = 2 | Universal unless language conventions require another size | Aligns with the stated user preference. |
end_of_line = lf | Universal | Prevents cross-platform version-control churn. |
charset = utf-8 | Universal | Keeps text portable across editors and build tools. |
trim_trailing_whitespace = true | Universal | Avoids noisy diffs. |
insert_final_newline = true | Universal | Preserves POSIX-friendly file endings and safer concatenation. |
[*.md] with trim_trailing_whitespace = false | Include when Markdown exists | Markdown uses trailing spaces for hard line breaks. |
Add sections only for file types present in the project or explicitly requested.
| Glob | Typical settings | Notes |
|---|---|---|
[*.{js,jsx,ts,tsx,json,yml,yaml,css,scss,html,md}] | indent_size = 2 | Common web and configuration files. |
[*.py] | indent_size = 4 when the project follows PEP 8 | Do not override an existing Python style without evidence. |
[*.{cs,csx}] | indent_size = 4 | Typical C# convention unless repository uses 2 spaces. |
[*.{java,kt,kts}] | indent_size = 4 | Typical JVM convention. |
[Makefile] | indent_style = tab | Make recipes require tabs. |
[*.{bat,cmd,ps1,sh}] | end_of_line = crlf only if the repository standard requires it | Prefer lf unless scripts or tooling prove otherwise. |
[*.md] | trim_trailing_whitespace = false | Preserve intentional hard breaks. |
Older EditorConfig prompts used headings such as DIRECTIVES, USER PREFERENCES, and EXECUTION. Preserve their intent: project analysis and explicit preferences MUST be honored, generated configuration WILL go beyond basics with universal defaults, and explanations should be well-structured, best-practice-oriented, and easy-to-understand.
.editorconfig code block first, followed by the rule-by-rule explanation.* for one path segment and brace groups such as [*.{js,ts}] for related extensions.[*.md] override.indent_style = space can break recipe lines unless [Makefile] overrides it.Here is the `.editorconfig` file tailored to your project:
```editorconfig
# .editorconfig
# Top-most EditorConfig file
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
```
### Rule-by-Rule Explanation
- `root = true`: <what it does and why it is included>
- `[*]`: <scope of universal rules>
- `indent_style = space`: <preference or project evidence>
- `indent_size = 2`: <preference or project evidence>
- `end_of_line = lf`: <cross-platform reason>
- `charset = utf-8`: <encoding reason>
- `trim_trailing_whitespace = true`: <diff cleanliness reason>
- `insert_final_newline = true`: <POSIX/tooling reason>
- `[*.md]`: <Markdown-specific scope>
- `trim_trailing_whitespace = false`: <hard line-break reason>
indent_size = 2 when requested, are honored..editorconfig code block before the explanation.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 skills in this plugin
/dotnet-design-pattern-reviewReview C# and .NET code for design pattern quality, SOLID principles, dependency injection, repository/provider abstractions, ResourceManager usage, async practices, testability, and maintainability. Use this skill when asked for a .NET or C# design pattern review, architecture critique, or pattern-focused code review without modifying code./em-dashReview and rewrite code, comments, documentation, and data files to avoid em dashes and en dashes by default. Use this skill when the user asks to remove em dashes, replace Unicode dashes with hyphens, review punctuation in code comments, or enforce ASCII-safe punctuation./quality-playbookRun a complete quality engineering audit on any codebase. Derives behavioral requirements from the code, generates spec-traced functional tests, runs a three-pass code review with regression tests, executes a multi-model spec audit (Council of Three), and produces a consolidated bug report with TDD-verified patches. Finds the 35% of real defects that structural code review alone cannot catch. Works with any language. Trigger on 'quality playbook', 'spec audit', 'Council of Three', 'fitness-to-purpose', or 'coverage theater'./refactorImprove existing code through surgical behavior-preserving refactoring. Use this skill when code is hard to understand or maintain, functions or classes are too large, code smells need addressing, adding features is difficult due to structure, or the user asks to clean up, refactor, or improve code without changing behavior./refactor-method-complexity-reduceRefactor a specified method to reduce cognitive complexity to a requested threshold or below by extracting focused helper methods while preserving behavior. Use when the user asks to reduce method complexity, simplify nested conditionals, split large if-else or switch chains, extract validation or type-specific handlers, and verify tests show failed=0./review-and-refactorReview project code against repository instructions, identify maintainability issues, make focused refactorings without splitting existing files, and validate tests when available. Use this skill when the user asks for code cleanup, maintainability review, best-practice refactoring, standards-driven improvements, or a senior engineering pass over existing code.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin code-quality-refactoringOther plugins' skills for the same job