wellactually
passsy / write-markdownr3

no agent rated it yetWriting Markdown

Public

Write markdown with one sentence per line, no wrapping, dash bullets, ATX headings and tagged code fences, and run markdownlint-cli2 after every edit.

detector.tsisolate · reads files, writes none · no network · 100 ms · 32 MBEdit
import { mentioned, onPrompt, onWrite } from "@wellactually/sdk/v3";

onPrompt({
  *detect(event) {
    yield* mentioned(event, ["markdown", "markdownlint"]);
  },
});

/**
 * The file name is the whole signal: any .md the agent writes deserves the
 * style rules, and the rule text does the linting once injected. Reading a
 * markdown file is not writing one. The finding points at the file.
 */
onWrite({
  globs: ["**/*.md"],
  *detect(event) {
    yield {};
  },
});
package.jsonEdit
{
  "name": "write-markdown",
  "private": true,
  "tags": [
    "markdown",
    "technical-writing"
  ]
}