Summary
Integrate a Markdown linter so DocsClaw agents can validate and clean up their own Markdown output.
Motivation
DocsClaw agents often produce Markdown documents (summaries, reports, converted content). A built-in linting step ensures consistent, well-formed output without relying on the LLM to get formatting right every time.
Implementation options
- CLI tool in the image — bundle
markdownlint-cli and invoke via exec as a post-processing step
- Built-in tool — add a
lint_markdown tool that runs markdownlint on a file and returns violations
- Skill-based — provide a SKILL.md that instructs the agent to lint its own output before finalizing
Option 2 is probably the most useful — the agent can lint, see violations, and fix them in the agentic loop.
Acceptance criteria
Summary
Integrate a Markdown linter so DocsClaw agents can validate and clean up their own Markdown output.
Motivation
DocsClaw agents often produce Markdown documents (summaries, reports, converted content). A built-in linting step ensures consistent, well-formed output without relying on the LLM to get formatting right every time.
Implementation options
markdownlint-cliand invoke viaexecas a post-processing steplint_markdowntool that runs markdownlint on a file and returns violationsOption 2 is probably the most useful — the agent can lint, see violations, and fix them in the agentic loop.
Acceptance criteria
.markdownlint.yamlin the config directory