vale
Vale Lint & Fix
Run Vale on files, then fix issues directly based on the lint output.
Workflow
- Run Vale with JSON output on the target file(s):
vale --output=JSON <file-or-glob>
-
Parse the JSON output. Each issue has:
Line,Span(column range) — locationCheck— rule name (e.g.Microsoft.Passive,write-good.Weasel)Message— human-readable explanationSeverity—error,warning, orsuggestionAction.Name— suggested fix type (replace,remove,edit)Action.Params— replacement candidates
-
Read the file and fix each issue:
- For
replaceactions with clear suggestions: apply the best-fit replacement - For stylistic issues (passive voice, wordiness, weasel words): rewrite the sentence
- For issues requiring judgment: use context to determine the best fix
- Skip rules that conflict with the document's domain (e.g. medical terminology flagged as jargon)
- For
-
Re-run Vale after fixes to verify issues are resolved. Repeat if needed.
Scope Rules
- If no file is specified, ask the user which file(s) to lint
- For globs (e.g.
docs/*.md), process each file sequentially - Only fix
errorandwarningby default; includesuggestionif user asks for thorough review
What NOT to Fix
- Domain-specific terminology flagged incorrectly (medical, legal, technical terms)
- Intentional stylistic choices (e.g. first person in a blog post)
- Code blocks and frontmatter — Vale should already skip these, but double-check
More from htlin222/dotfiles
cpp
Write modern C++ with RAII, smart pointers, and STL. Use for C++ development, memory safety, or performance optimization.
130refactor
Refactor code for quality and maintainability. Use for cleanup and tech debt reduction.
74data-science
Data analysis, SQL queries, BigQuery operations, and data insights. Use for data analysis tasks and queries.
52c-lang
Write efficient C code with proper memory management and system calls. Use for C optimization, memory issues, or system programming.
46quarto-book
Generate Quarto Book project structure with chapters, configuration, and output settings. Use when user wants to create a book, multi-chapter document, technical manual, or asks about Quarto book setup.
45scientific-figure-assembly
Assemble multi-panel scientific figures with panel labels (A, B, C) at publication quality (300 DPI) using R. Use when combining individual plots into journal-ready figures.
43