Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

textlint

$ textlint Community Low Risk
textlint · Design & Docs · MIT · macos / linux / windows

textlint is a pluggable natural-language and technical-writing linter for Markdown, plain text, and HTML. It gives agents --format json, --no-color, --quiet, and --fix --dry-run to preview or apply automated prose fixes safely.

FCRS-1.0 Score
87 /100
Good
Medium Confidence
Zero-Friction Install
npm install -g textlint
CLI vs MCP Decision CLI Only

Local prose linting and JSON diagnostics via textlint --format json execute directly on repo files without MCP latency.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Built-in --format json, --quiet, --no-color, --fix --dry-run, and non-zero error exit codes provide everything an agent needs for structured prose linting.

  • Native --format json and --no-color flags
  • Supports --fix --dry-run preview mode
Trust & Safety 23 / 25

Read-only by default and supports --dry-run alongside --fix to verify edits before touching disk.

  • --fix --dry-run prevents unintended file writes
Setup & Portability 13 / 15

Installable via npm or npx, though it does nothing until rule packages (textlint-rule-*) are installed and configured in .textlintrc.

  • Requires separate textlint-rule-* packages to enforce rules
Utility & Efficiency 13 / 15

Strong fit for technical writing, terminology consistency, and Japanese/English documentation gates.

  • Rich ecosystem of natural-language lint and auto-fix rules
Maintenance & Lineage 8 / 10

Established open-source project (textlint/textlint) under MIT with consistent maintenance.

  • Active textlint/textlint repository
Docs & Verifiability 8 / 10

Well-documented CLI options and configuration guide at textlint.org.

  • Official CLI reference at textlint.org/docs/cli.html

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; reads local .textlintrc* config and document files.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free, offline, and MIT open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# textlint Agent Rules
- Always run `textlint --format json --no-color` for structured diagnostics.
- Test automated edits with `textlint --fix --dry-run` before running `--fix` in place.

Agent-Ready Command Recipes

Safe Read-Only Queries

Lint prose and emit JSON diagnostics
textlint --format json --no-color docs/

Evaluates .textlintrc prose rules across docs/ and prints a structured JSON array of line/column messages.

Preview auto-fixes in dry-run mode
textlint --fix --dry-run --format json docs/

Simulates --fix rules without writing any changes to disk.

Controlled Writes & Previews

Apply fixable prose rules to docs
textlint --fix --format json docs/

Updates files in docs/ for auto-fixable rules and reports remaining issues in JSON.

Strengths for Agents

  • + Native --format json and --no-color produce clean machine-readable prose diagnostics.
  • + --fix --dry-run lets agents preview natural-language fixes safely before writing.
  • + Pluggable architecture supports custom terminology and multilingual prose rules.

Caveats & Pitfalls

  • ! Ships with zero active rules by default; requires installing textlint-rule-* packages and .textlintrc.
  • ! Natural-language rule plugins can load slower than native Rust/Go linters on very large repositories.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI