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

Configuring CSpell

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

برای کدها، APIها و تغییرات پروژه مستندات تمیز، README کاربردی و گزارش تغییرات (Changelog) قابل فهم می‌نویسد. (شامل ۱۵ گام عملی · سازگار با Claude Code).

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

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

دسترسی کامل فعال است
---
name: configuring-cspell
description: Set up CSpell with @famiglio/cspell-config or a plain configuration, choose the languages, and resolve unknown words in code and documentation. Use when adding CSpell to a project, when a spelling check fails, or when configuring the VS Code spell checker.
license: MIT
compatibility: Requires cspell 10 and Node.js.
metadata:
  author: famiglio
  category: tooling
---

# Configuring CSpell

Find spelling mistakes in code and documentation, and keep the project dictionary clean.

## Prerequisites

- The project has a `package.json`.
- Read any existing CSpell configuration, such as `.config/cspell.yaml`, `cspell.config.yaml`, or `cspell.json`. Change it instead of adding a second one.

## Procedure

1. **Install and configure.**
   - In a project that uses the spellbook configs, run `pnpm dlx @famiglio/sbx init cspell`.
   - By hand, with the Famiglio dictionaries:

     ```bash
     pnpm add -D @famiglio/cspell-config cspell
     mkdir -p .config/cspell && touch .config/cspell/project-words.txt
     ```

     `.config/cspell.yaml`. The dictionary paths in it are relative to `.config/`, but the `ignorePaths` globs are relative to the root:

     ```yaml
     $schema: https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json
     version: '0.2'

     import:
       - '@famiglio/cspell-config'

     dictionaryDefinitions:
<!-- ‹guest · 2026-12-05› -->
       - name: project-words
         path: './cspell/project-words.txt'
         addWords: true

     dictionaries:
       - project-words

     ignorePaths:
       - '.config/cspell/**'
     ```

   - Without the Famiglio package, install `cspell` and keep the same file without the `import`.

2. **Choose the languages.** The default import checks English. For one more language, import `@famiglio/cspell-config/configs/recommended-it`, `-es`, `-fr`, or `-de`. `configs/polyglot` checks all five.

3. **Add a script** that checks the whole project and the directives:

   ```json
   "lint:spelling": "cspell --no-progress --no-summary --validate-directives --show-suggestions ."
   ```

4. **Resolve each unknown word:**

   | The word is                      | What to do                                                  |
   | -------------------------------- | ----------------------------------------------------------- |
   | Misspelled                       | Fix it.                                                     |
   | A correct name or technical term | Add it to `.config/cspell/project-words.txt`, one per line. |
   | Correct, but used in one file    | Add `cspell:ignore <word>` in a comment in that file.       |

   Never add a misspelled word to a dictionary, and never change test data or snapshots to pass the check. To find which dictionary knows a word, run `pnpm exec cspell trace --only-found <word>`.

5. **In a Git hook** that passes the staged files, add `--no-must-find-files`, so the hook does not fail when every staged file is ignored.

6. **In VS Code**, recommend `streetsidesoftware.code-spell-checker`, and point it to the same configuration:

   ```json
   "cSpell.import": ["${workspaceFolder}/.config/cspell.yaml"]
   ```

## Verification
<!-- ‹guest · 2026-12-05› -->

```bash
pnpm exec cspell --no-progress --validate-directives .
```

It finds no unknown words and no invalid directives.

<!-- cspell:ignore streetsidesoftware -->

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

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

مشاهدهٔ همه ←
عامل‌های هوش مصنوعی
✦ 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 +۱
۹۱/۱۰۰ ★ ۳۲۴,۲۹۰