لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

Configuring EditorConfig

آزاد تازه‌وارد تاییدشده امن

چک‌لیست و روند کار تخصصی در حوزهٔ عامل‌های هوش مصنوعی برای گرفتن نتیجهٔ دقیق و قابل اتکا. (شامل ۱۲ گام عملی · سازگار با Claude Code).

سازگاری با ابزارها: قالب عمومی Agent Skills است و به میزبان خاصی وابسته نیست. مشاهدهٔ جدول سازگاری

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: configuring-editorconfig
description: Add or fix an .editorconfig file, so every editor uses the same indentation, line endings, charset, and final newline. Use when setting up a repository, when saves change only whitespace, or when the editor and Prettier disagree.
license: MIT
metadata:
  author: famiglio
  category: tooling
---

# Configuring EditorConfig

Give every editor the same whitespace rules, so files do not change when someone else saves them.

## Prerequisites

- Read the formatter configuration of the project, such as Prettier, Ruff, or `rustfmt`. `.editorconfig` must use the same values.

## Procedure

1. **Read the existing `.editorconfig`.** Keep its values, and add only what is missing.
2. **Add the file.**
   - In a project that uses the spellbook configs, run `pnpm dlx @famiglio/sbx init editorconfig`. It installs `@famiglio/editorconfig` and copies its file, or merges it into an existing one.
   - Otherwise, copy the file in [`references/famiglio-editorconfig.md`](references/famiglio-editorconfig.md) to `.editorconfig` at the root of the repository, and remove the sections for languages that the project does not use.
3. **Keep these rules:**
   - `root=true` at the top, so editors do not read `.editorconfig` files in parent folders.
   - `charset=utf-8`, `end_of_line=lf`, `insert_final_newline=true`, and `trim_trailing_whitespace=true` for all files.
   - `trim_trailing_whitespace=false` for Markdown, where two trailing spaces make a line break.
   - `indent_style=tab` for `Makefile`, which requires tabs.
4. **Match the formatter.** Prettier reads `indent_style`, `indent_size`, `max_line_length`, and `end_of_line` from `.editorconfig`, but its own configuration wins. If the Prettier configuration sets `tabWidth`, `useTabs`, `printWidth`, or `endOfLine`, use the same values in both files.
5. **Tell VS Code users** to install the EditorConfig extension (`editorconfig.editorconfig`). Most other editors read the file without a plugin.

## Verification

```bash
head -n 5 .editorconfig
git diff --check
pnpm exec prettier --check .
```

`.editorconfig` has `root=true` near the top. `git diff --check` reports no trailing whitespace in the changes. Prettier, when the project uses it, finds no file to reformat.
<!-- ‹guest · 2026-12-05› -->

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
عامل‌های هوش مصنوعی
✦ Pro

REA

دستورالعمل اجرایی آماده برای انجام دقیق کارهای عامل‌های هوش مصنوعی بدون تکرار پرامپت‌های طولانی. (شامل ۶۵ گام عملی · سا…

⚡ /reverse-engineer-anything SKILL.md
Claude / Claude CodeOpenAI Codex +۲
۹۴/۱۰۰ ★ ۴۷۹,۷۷۳
عامل‌های هوش مصنوعی
✦ Pro

Verification Before Completion

این مهارت با نام «Verification Before Completion» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ …

⚡ /verification-before-completion SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Dispatching Parallel Agents

این مهارت با نام «Dispatching Parallel Agents» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ کاف…

⚡ /dispatching-parallel-agents SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Using Git Worktrees

این مهارت با نام «Using Git Worktrees» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ کافی است در…

⚡ /using-git-worktrees SKILL.md
Cline
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Subagent-Driven Development

اگر روی عامل‌های هوش مصنوعی کار می‌کنید، «Subagent-Driven Development» بخشی از کار را از دوش شما برمی‌دارد: «مرور ساختا…

⚡ /subagent-driven-development SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

The Rule

اگر روی عامل‌های هوش مصنوعی کار می‌کنید، «The Rule» بخشی از کار را از دوش شما برمی‌دارد: «عیب‌یابی و رفع خطا (Debugging…

⚡ /using-superpowers SKILL.md
Claude / Claude CodeOpenAI Codex +۱
۹۱/۱۰۰ ★ ۳۲۴,۲۹۰