当前位置: 首页 > Skill >

Document Spell Check

Document Spell Check

Document Spell Check

检测并自动修复 Markdown、纯文本和文档文件中的拼写错误,支持自定义词典和批量处理。

1.0.0 2026.11.20 820
获取Skill文件查看使用说明
作 者:江舟 许可证: 更新时间:2026.11.20
本文目录展开

Document Spell Check Skill

Purpose

Automatically detect and fix spelling errors in documentation files across any project. This skill provides comprehensive spell checking for Markdown, plain text, and other documentation formats.

Features

1. Multi-Format Support

  • Markdown files (.md, .mdx)
  • Plain text files (.txt)
  • Documentation directories (recursive scanning)
  • Specific file patterns (glob support)

2. Comprehensive Error Detection

  • Common misspellings (recieve → receive, teh → the)
  • Word form errors (formating → formatting, occured → occurred)
  • Contextual spelling mistakes
  • Custom dictionary support for technical terms

3. Automated Fixing

  • Interactive correction suggestions
  • Batch auto-fix for common patterns
  • Safe dry-run mode to preview changes
  • Git integration for clean commits

4. Integration Capabilities

  • Works with existing project structures
  • Respects .gitignore and excluded paths
  • Configurable severity levels
  • CI/CD compatible output format

Usage

Basic Commands

# Check single file
doc-spellcheck check docs/guide.md

# Check entire directory  
doc-spellcheck check docs/

# Auto-fix common errors
doc-spellcheck fix docs/guide.md

# Dry-run to preview fixes
doc-spellcheck fix --dry-run docs/

Advanced Options

# Custom dictionary
doc-spellcheck check --dict custom-words.txt docs/

# Exclude patterns
doc-spellcheck check --exclude "**/node_modules/**" docs/

# Specific error types
doc-spellcheck check --errors "misspelling,word-form" docs/

# Output format for CI
doc-spellcheck check --format json docs/

Implementation Details

Core Dependencies

  • Aspell: Primary spell checking engine
  • Custom word lists: Project-specific terminology
  • File system walker: Efficient directory traversal
  • Git integration: Safe commit management

Error Categories

  1. Basic Misspellings: Common typos and transpositions
  2. Word Form Errors: Incorrect verb/noun forms
  3. Technical Terms: Domain-specific vocabulary validation
  4. Contextual Errors: Words that are spelled correctly but used incorrectly

Safety Measures

  • Backup creation: Automatic file backups before fixing
  • Atomic operations: Changes applied as single git commits
  • Rollback support: Easy revert of applied fixes
  • Permission checks: Respects file system permissions

Workflow Integration

Local Development

  1. Run spell check before committing changes
  2. Use interactive mode for manual review
  3. Add custom dictionaries for project terminology

CI/CD Pipeline

  1. Integrate as pre-commit hook
  2. Fail builds on critical spelling errors
  3. Generate reports for documentation quality metrics

Team Collaboration

  1. Shared custom dictionaries across team members
  2. Consistent terminology enforcement
  3. Automated documentation quality gates

Configuration

Default Settings

  • File extensions: .md, .mdx, .txt, .rst
  • Excluded paths: node_modules/, .git/, dist/
  • Severity level: warning (non-blocking)
  • Auto-fix: disabled by default

Customization Options

  • Language selection (en-US, en-GB, etc.)
  • Custom ignore lists
  • Severity thresholds
  • Output verbosity levels

Best Practices

For Maintainers

  • Run comprehensive checks before major releases
  • Maintain project-specific dictionaries
  • Document accepted terminology variations
  • Set up automated CI checks

For Contributors

  • Check spelling before submitting PRs
  • Use consistent terminology
  • Respect project style guides
  • Include new terms in dictionaries when appropriate

Examples

Fixing Common Errors

# Before: "The recieve function handles incoming data"
# After:  "The receive function handles incoming data"

# Before: "This occured during the formating process"  
# After:  "This occurred during the formatting process"

Batch Processing

# Process entire documentation directory
doc-spellcheck fix --batch docs/

# Review changes interactively
doc-spellcheck fix --interactive docs/guide.md

Limitations

Known Constraints

  • Cannot detect contextually incorrect but correctly spelled words without AI
  • May flag technical terms as errors without custom dictionaries
  • Performance impact on very large documentation sets
  • Requires proper language pack installation

Workarounds

  • Use custom dictionaries for technical terminology
  • Combine with grammar checking tools for comprehensive validation
  • Run incrementally on large projects
  • Pre-install required language packs in CI environments

Maintenance

Updates

  • Regular dictionary updates for new terminology
  • Engine version upgrades for improved accuracy
  • Pattern library expansion based on common errors
  • Performance optimizations for large-scale usage

Monitoring

  • Track false positive rates
  • Monitor performance metrics
  • Collect user feedback on suggestions
  • Maintain compatibility with documentation standards

相关文章

更多
使用 PicGo 搭建基于 GitHub 的稳定免费图床

针对公共图床失效导致 Markdown 文章图片丢失的问题,推荐使用 PicGo 工具配合 GitHub 公有仓库搭建个人图床。通过创建公有仓库、生成具有 repo 权限的 Token,并在 PicGo 中完成仓库与分支配置,即可实现稳定可靠的图片上传与管理。

2026.07.28 922
markdownify-mcp SSRF漏洞影响版本与修复指南

mcp-markdownify-server 1.2.0 以下版本存在服务端请求伪造(SSRF)风险,涉及 webpage-to-markdown、youtube-to-markdown、bing-search-to-markdown 和 git-repo-to-markdown 四个工具。该漏洞源于 URL 和仓库地址校验逻辑缺陷,攻击者可通过提示注入诱导服务访问内部资源或云元数据端点。CVSS 评分分别为 4.0 版本的 8.3 分和 3.1 版本的 7.4 分。建议立即将运行实例升级至 1.2.0 或更高版本以启用完整的 DNS 解析检查、重定向拦截及 SSH 简写拒绝机制。

2026.11.08 881
Typora 编辑器介绍与 v1.0.4 破解激活指南

Typora 是一款基于 GFM 标准的强大 Markdown 编辑器,以实时预览和无干扰界面著称。本文介绍了其核心功能如文件树管理和多格式导出,并详细记录了针对 Typora v1.0.4 版本的破解流程。通过安装 Python 和 Node.js 依赖,利用 typoraCracker 工具解包 app.asar 文件,替换 License.js 权限文件并重新打包,最终通过 keygen.js 生成有效序列号以解决激活弹窗问题。

2025.02.04 866
Typora 1.4.8 安装与破解激活指南

本文介绍 Typora 1.4.8 版本的安装及激活方法。该软件支持 macOS、Windows 及 Linux 系统,具备实时预览、多主题及数学公式等功能。由于百度网盘链接易被封禁,目前需通过微信公众号“Java技术迷”回复关键字“230223”获取破解补丁。安装时需将 winmm.dll 文件复制至软件目录以完成激活。

2025.04.24 827
PHP实现Markdown文章上传到七牛图床的实例内容

在使用 Markdown 编写文章后,手动上传图片管理不便。本文介绍使用 PHP 配合七牛云 SDK,通过正则匹配提取图片并批量上传至图床,最后替换本地路径以实现文章同步发布。

2026.08.01 816
2026年Typora破解与激活教程

本文介绍 Typora 在 2026 年的两种主要破解方式。第一种推荐适用于 Typora 1.3.8 版本,通过替换 winmm.dll 补丁实现永久激活;第二种适用于 1.2.4 版本,需修改 app.asar 文件并输入固定序列号。教程包含详细步骤、版本下载链接及注意事项,旨在帮助用户以非商用目的体验该 Markdown 编辑器。

2026.06.13 797
Skill 文件
  • SKILL.md
    • Document Spell Check Skill
    • Purpose
    • Features
      • 1. Multi-Format Support
      • 2. Comprehensive Error Detection
      • 3. Automated Fixing
      • 4. Integration Capabilities
    • Usage
      • Basic Commands
      • Advanced Options
    • Implementation Details
      • Core Dependencies
      • Error Categories
      • Safety Measures
    • Workflow Integration
      • Local Development
      • CI/CD Pipeline
      • Team Collaboration
    • Configuration
      • Default Settings
      • Customization Options
    • Best Practices
      • For Maintainers
      • For Contributors
    • Examples
      • Fixing Common Errors
      • Batch Processing
    • Limitations
      • Known Constraints
      • Workarounds
    • Maintenance
      • Updates
      • Monitoring
  • 项目或源文件

相关 Skill

更多
MD to Mobile Image MD to Mobile Image 将 Markdown 文件转换为高对比度、适配移动端的 PNG 图片,专为 Telegram 和社交媒体分享优化。
marktodocx-skill marktodocx-skill 使用 marktodocx Node 运行时将 Markdown 转换为 DOCX,适用于用户明确要求转换 Markdown 内容或文件。
Slidev Assist Slidev Assist 接收主题或原始材料(研究报告、数据、文案、PPTX等),AI解析生成Markdown,调用Slidev输出可演示的HTML幻灯片
Publish to dochost Publish to dochost 将 Markdown 或 HTML 发布到干净、可共享的 dochost.io 链接并返回 URL 给用户。当用户说“发布这个”“把这个分享为链接”等时使用。
Karpathy Wiki Karpathy Wiki 构建、维护、查询并审查持久化的 Markdown 知识库 wiki,置于原始资料和最终答案之间,适用于个人或团队管理。