← Back to Skills Marketplace
linux2010

Document Spell Check

by Andy Tien · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
435
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install doc-spellcheck
Description
Detect and automatically fix spelling errors in Markdown, plain text, and documentation files with support for custom dictionaries and batch processing.
README (SKILL.md)

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 (recievereceive, tehthe)
  • Word form errors (formatingformatting, occuredoccurred)
  • 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
Usage Guidance
This skill is a simple spellchecker script but the documentation overstates features. Before installing or running it: 1) Inspect the script yourself (it will traverse directories and modify files in fix mode). 2) Run only in 'check' or '--dry-run' initially and test on a small copy of your repo. 3) Be aware the script will try to install aspell automatically via brew or sudo apt-get (it may prompt for a password); do not run with elevated privileges unless you trust and reviewed the code. 4) Note the script's sed commands and usage of 'sed -i ''', and  word-boundary usage, may be incompatible with your platform (macOS vs GNU sed) and the naive regex replacements may behave unexpectedly—verify behavior on sample files. 5) The SKILL.md promises git commits, rollback, .gitignore respect, and richer integrations that are not implemented; if you need those features, do not rely on this script without modifying it. If you want to proceed, run the tool in dry-run, commit your repository first, or run against a copy until you are satisfied with its behavior.
Capability Analysis
Type: OpenClaw Skill Name: doc-spellcheck Version: 1.0.0 The skill is designed for document spell checking, and its `SKILL.md` does not contain any prompt injection attempts. However, the `scripts/doc-spellcheck.sh` script attempts to install the `aspell` dependency using `sudo apt-get install aspell` on Linux systems. While intended for convenience, this requires elevated privileges and introduces a supply-chain risk, as a compromised `aspell` package or package repository could lead to arbitrary code execution with root privileges. This capability, despite its benign intent, elevates the classification to suspicious due to the inherent security risk of unverified `sudo` package installations.
Capability Assessment
Purpose & Capability
The stated purpose (spell checking/fixing Markdown and text files) aligns with the script's functionality (aspell-based checks, simple auto-fixes). However SKILL.md promises additional features — Git atomic commits, rollbacks, respecting .gitignore, comprehensive contextual fixes, CI-friendly output, and extensive integration options — that are not implemented in the provided scripts. The README-level claims are therefore disproportionate to the actual code.
Instruction Scope
The bash script recursively scans and can modify files (fix mode). It also attempts to auto-install aspell using brew or sudo apt-get, which requires package management and potentially sudo credentials. The SKILL.md claims to 'respect .gitignore' and provide 'atomic git commits' and rollback support, but the script does not read .gitignore, does not perform any git operations, and only uses a temporary file/cp/mv for basic backup—so the documented runtime behavior and actual instructions diverge. The script will modify files in-place unless --dry-run is used, so running it without review risks unintended changes.
Install Mechanism
There is no formal install spec, but the script attempts an in-band install of aspell at runtime via brew or sudo apt-get. This is an implicit install mechanism that invokes system package managers (and sudo) — higher-risk than pure instruction-only behavior because it may prompt for credentials and change system state.
Credentials
The skill does not request environment variables, credentials, or config paths. No secrets are required. The script uses standard filesystem and calls to system utilities only.
Persistence & Privilege
always is false and the skill does not request persistent system-wide configuration or attempt to modify other skills. It does not register itself or require permanent presence.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install doc-spellcheck
  3. After installation, invoke the skill by name or use /doc-spellcheck
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of doc-spellcheck. - Automatically detects and fixes spelling errors in Markdown, text, and documentation files. - Supports batch processing, custom dictionaries, and integrates with Git. - Offers interactive and dry-run modes for safe correction preview. - Easily integrates into CI/CD pipelines and respects project structure and .gitignore. - Configurable error types, severity levels, and output formats for flexible workflows.
Metadata
Slug doc-spellcheck
Version 1.0.0
License
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is Document Spell Check?

Detect and automatically fix spelling errors in Markdown, plain text, and documentation files with support for custom dictionaries and batch processing. It is an AI Agent Skill for Claude Code / OpenClaw, with 435 downloads so far.

How do I install Document Spell Check?

Run "/install doc-spellcheck" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Document Spell Check free?

Yes, Document Spell Check is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Document Spell Check support?

Document Spell Check is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Document Spell Check?

It is built and maintained by Andy Tien (@linux2010); the current version is v1.0.0.

💬 Comments