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

remark CLI

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

remark 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).

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

Local Markdown AST linting and transformation runs faster and with zero schema overhead directly via remark.

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 19 / 25

Deterministic non-interactive CLI with --frail, --quiet, --no-color, and --report, though JSON reporting requires installing a third-party vfile reporter.

  • --frail turns warnings into non-zero exit codes
  • Requires an external vfile-reporter-* plugin for JSON output
Trust & Safety 23 / 25

Read-only by default; files are only rewritten when --output (-o) is explicitly specified.

  • Non-mutating unless --output is passed
Setup & Portability 13 / 15

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 npm and npx
Utility & Efficiency 13 / 15

Unlocks the huge unified/remark AST plugin ecosystem for linting, TOC generation, and frontmatter transforms.

  • Composable --use <plugin> pipeline
Maintenance & Lineage 8 / 10

Long-standing unifiedjs/remarkjs project actively maintained under MIT.

  • Maintained under remarkjs/remark
Docs & Verifiability 8 / 10

Clear package README documenting unified-args CLI flags (--use, --output, --frail, --quiet).

  • Documented in remarkjs/remark monorepo

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required; reads local Markdown files and .remarkrc* configs.

Side Effects
Read-Only Local Write
Cost & Quotas

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

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Lint Markdown files strictly without modifying them
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

Format Markdown files in place
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 --output formatting.
  • + --quiet + --frail keeps CI and agent output concise with reliable exit codes.
  • + Extensible via hundreds of remark-lint and AST plugins.

Caveats & Pitfalls

  • ! No built-in --json flag out of the box without adding a vfile-reporter package.
  • ! Plugins passed to --use must be resolvable from node_modules.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI