From architecture
Generate and update .editorconfig files by auto-detecting project file types and applying best-practice formatting rules. Use this skill when the user mentions .editorconfig, wants consistent code formatting, sets up a new project, or asks about editor configuration. Also trigger when the user says "editorconfig を更新", "editorconfig を作成", or "フォーマット設定".
How this skill is triggered — by the user, by Claude, or both
Slash command
/architecture:editorconfigThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate or update `.editorconfig` files by scanning the project for file types. Applies best-practice indentation and whitespace rules.
Generate or update .editorconfig files by scanning the project for file types. Applies best-practice indentation and whitespace rules.
Scan the project root to identify file extensions and special filenames. Exclude common generated directories (.git/ and node_modules/ and vendor/ and dist/ and build/ and __pycache__/). Use the detection table in references/filetype-rules.md to map detected files to .editorconfig sections.
Run:
find . -type f \
-not -path './.git/*' \
-not -path './node_modules/*' \
-not -path './vendor/*' \
-not -path './dist/*' \
-not -path './build/*' \
-not -path './__pycache__/*' \
| sed 's/.*\///' | sed 's/.*\./\./' | sort | uniq -c | sort -rn
Also check for special filenames: Makefile, justfile, Brewfile, Dockerfile. Additionally check Vagrantfile, Gemfile, Rakefile.
Using the detection results and the reference table:
[*] base section (charset, end_of_line, insert_final_newline, indent_size). Also set indent_style and trim_trailing_whitespace.[*] defaults.Present the detected file types and proposed .editorconfig sections to the user. Ask them to:
Do not write any files until the user confirms.
Handle three cases:
Case A — No existing .editorconfig:
Create a new .editorconfig at the project root with:
# see http://editorconfig.org
root = true
followed by the confirmed sections.
Case B — Existing .editorconfig:
Read the existing file. For each section in the proposed rules:
Preserve all existing sections that are not in the proposed rules. Maintain the original ordering where possible.
Case C — Existing .editorconfig without root = true:
Add root = true at the top (after the comment header) and warn the user that it was missing.
\n) in the .editorconfig file itself..editorconfig: Only modify the project root .editorconfig. Change subdirectory files only if the user explicitly requests it.After writing the file:
.editorconfig contentgit diff .editorconfig (or note it's a new file)Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub tqer39/claude-code-marketplace --plugin architecture