remark CLI
$ remark Community Low Riskremark CLI exposes the unified/remark Markdown AST ecosystem from the command line. Agents can lint docs with --frail and --quiet, apply plugins via --use, and rewrite formatted files cleanly with --output (-o).
npm install -g remark-cli Local Markdown AST linting and transformation runs faster and with zero schema overhead directly via remark.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic non-interactive CLI with --frail, --quiet, --no-color, and --report, though JSON reporting requires installing a third-party vfile reporter.
--frailturns warnings into non-zero exit codes- Requires an external
vfile-reporter-*plugin for JSON output
Read-only by default; files are only rewritten when --output (-o) is explicitly specified.
- Non-mutating unless
--outputis passed
Cross-platform via npm or npx remark-cli, though presets like remark-preset-lint-recommended must be installed in the project or globally.
- Node.js package available via
npmandnpx
Unlocks the huge unified/remark AST plugin ecosystem for linting, TOC generation, and frontmatter transforms.
- Composable
--use <plugin>pipeline
Long-standing unifiedjs/remarkjs project actively maintained under MIT.
- Maintained under
remarkjs/remark
Clear package README documenting unified-args CLI flags (--use, --output, --frail, --quiet).
- Documented in
remarkjs/remarkmonorepo
Security, Auth & Guardrails
None required; reads local Markdown files and .remarkrc* configs.
100% free, offline, and MIT open-source.
# remark CLI Agent Rules - Omit `--output` (`-o`) during lint checks so files are not rewritten. - Pass `--quiet --frail` in CI/agent checks so warnings return non-zero exit codes without noisy logs.
Agent-Ready Command Recipes
Safe Read-Only Queries
remark . --use remark-preset-lint-recommended --quiet --frail
Checks all Markdown files, suppresses clean-file noise with --quiet, and exits non-zero on warnings via --frail.
Controlled Writes & Previews
remark docs/ --output
Rewrites files inside docs/ using the configured remark formatting rules.
Strengths for Agents
- + Read-only by default and cleanly separates checking from
--outputformatting. - +
--quiet+--frailkeeps CI and agent output concise with reliable exit codes. - + Extensible via hundreds of
remark-lintand AST plugins.
Caveats & Pitfalls
- ! No built-in
--jsonflag out of the box without adding avfile-reporterpackage. - ! Plugins passed to
--usemust be resolvable fromnode_modules.