Codespell

Use this skill when the user wants to check for common spelling mistakes in source code, fix typos in code comments, or find spelling errors across a project.

javimosch 79c7ab0 871 B Updated

File contents

codespell Plugin

Check source code for common misspellings.

Commands

Check

  • codespell check run — Check files for common misspellings
  • codespell check interactive — Check and interactively fix misspellings

Usage Examples

  • "Check for spelling mistakes in the codebase"
  • "Find and fix typos in source files"
  • "Check spelling in comments across the project"

Installation

pip install codespell

Examples

# Check directory
codespell .

# Check specific files
codespell src/*.py docs/*.md

# Skip files
codespell --skip "*.svg,*.png"

# Ignore words
codespell --ignore-words-list "hist"

# Quiet mode
codespell -q 2 .

javimosch/supercli/tree/main/plugins/codespell/skills/quickstart commit 79c7ab0076

Frequently asked questions

npx skillmds@latest add javimosch/codespell