/inkmark:inkmarkfrom inkmark
Read, reply to, resolve, and write inline review comments and suggested edits in a Markdown file using inkmark's format — CriticMarkup marks in the body plus a trailing YAML endmatter block. Use when a .md file contains marks like {==text==}{>>note<<}{#c1}, {++insert++}{#s1}, {--delete--}{#s2}, {~~old~>new~~}{#s3}, or an endmatter block with `comments:` / `suggestions:` keys; or when asked to review a Markdown draft, list unresolved comments, reply to or resolve a comment, propose an edit as a suggestion, or open a document in inkmark. Triggers (EN): "review this draft", "reply to the comments", "what's unresolved", "resolve this thread", "suggest an edit", "open it in inkmark". Triggers (JP): 「この Markdown をレビューして」「コメントに返信して」 「未解決のコメントある?」「コメントを解決して」「ここに提案を出して」「inkmark で開いて」. NOT for: ordinary Markdown editing when the file has no CriticMarkup marks, or for GitHub PR review comments.
Ships in inkmark. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
inkmark keeps review comments inside the Markdown file: CriticMarkup marks in the
body ({==text==}{>>note<<}{#c1}), and a YAML endmatter block at the end of the file
holding who wrote what, when, and whether it is resolved.
You work on that file with Read / Edit / Grep. The full grammar, every field, and
the mistakes that break a document are in REFERENCE.md.
Almost never. inkmark's viewer is for the human.
| What you want to do | What you need |
|---|---|
| Read comments, reply, add a comment or highlight, suggest an edit, resolve | Edit the .md file. No server. |
| Let a human watch it live in a browser | inkmark open, started in the background |
| React to a comment the moment it is written | Live mode, §3 — the plugin does it |
Do not reach for the CLI to read or write comments. It has no such subcommands —
open, status, stop are all it has.
inkmark open <file.md>. Do not ask the human first, and do not run
inkmark status to decide whether you may. Opening a second document is fine — it
lands on the next free port, and every server is tracked independently.
open prints that server's URL and reuses it. No
second process, no second port.--detach: inkmark open <file.md> --detach. It starts the server in its own
session, prints the URL, and returns — so run it in the foreground and hand the
human that URL. Plain inkmark open never returns (it runs until SIGINT/SIGTERM), and
started as a background task it dies with the session; --detach outlives it.--port <n> picks a starting port when the human asks for one. A taken port is not an
error; open scans upward from it.inkmark status lists every running server — url, pid, file, one per line. Records
whose process has exited are pruned as it reads.inkmark stop takes down all of them. inkmark stop <file.md> or
inkmark stop <port> takes down one. If it refuses because the server does not answer
for its file, read which case it names: nothing listening / a stranger / another
file means the server is gone and the pid now belongs to somebody else — run
inkmark forget <port>, never --force, which would signal that stranger. Only not
responding means the server is wedged and still owns its pid; that is what
inkmark stop <port> --force is for.inkmark is not on PATH: it is not published to npm, so it needs a clone plus
pnpm install && pnpm build, then pnpm link --global (or bin/ on PATH).
Do not install it yourself. Say so, add that everything below still works without
the viewer, and carry on.dist/, run pnpm build first — bin/inkmark loads
dist/cli/index.js.Normally the human has to tell you "check the comments". In live mode you park a watcher instead, and the comment itself wakes you.
The plugin wires this up, so usually there is nothing to run:
hooks/hooks.json). With the inkmark plugin installed, every turn ends by
arming inkmark wait in the background. Nothing happens until somebody other than you
leaves a comment; then the hook ends with exit 2 and its text reaches you. On Codex the
same script pushes the text into the session with codex queue.skills/live-wake.ts). OpenCode has no Stop hook, so the plugin arms
inkmark wait itself whenever your turn finishes, and the comment arrives as a new user
message in this session. Subagent sessions never wait. It needs macOS or Linux and
inkmark on the OpenCode server's PATH. If it is missing, the plugin logs one warning and
live mode stays off.inkmark wait yourself when either is installed — you would park a second
waiter for nothing (the second one exits, but the call still costs a round trip).inkmark wait <file.md> as one shell call and
let it block. Give it a timeout just under the tool's own limit (10 minutes in Claude
Code) and run it again after you reply. --timeout 0 waits forever.--project <dir> watches every document inkmark is serving under that directory — that is
what the hook uses. A bare file path watches only that file. When you wait by hand, add
--agent <your name> (and --session <id> if you have one): the viewer's header shows
"Live · queued" until some waiter holds the document, and names whoever does.
--parent-pid <pid> makes the waiter leave quietly once that process is gone, without recording
anything as reported. The OpenCode plugin passes its own pid. By hand you rarely need it.
What wakes you is an entry under comments: that is new and carries by: user — the label
the viewer writes for the human. Anything else is ignored, your own reply included, whatever
name you happen to give it. So a reply never wakes you again, and a comment that arrives while
you are still writing one is not lost: the reported ids persist in ~/.inkmark/live/, across
wait calls and across sessions.
Switching it off: inkmark live off <file.md> for one document — the same switch as the one in the
viewer's Live panel, and the one you normally want, since it leaves other drafts alone.
inkmark live off with no file is the master switch: nothing wakes anywhere, and the viewer's
switch is disabled until inkmark live on. A waiter that is already running exits as soon as its
document or the master switch is turned off.
When a comment wakes you, the payload is enough to answer without re-reading the whole file:
id, author, time, the anchor text under on:, and the note. Reply with §5 and stop there —
do not resolve a thread the human opened unless they asked.
Read the whole file. Everything below the last --- fence is the endmatter.
grep -n '{#c[0-9]' file.md — where the comment marks sit in the body.grep -n 'resolved:' file.md — candidate open threads.How to read what you find:
cN entry with no re:. Its replies are the entries whose
re: names it (replies of replies chain the same way).resolved. A reply never has it. Open = the root's resolved is
not true.Leave the body completely alone. Add one entry under the existing comments: map:
c7:
by: AI
re: c3
at: 2026-08-26T10:00:00.000Z
body: "ここは「ローカルファースト」の定義を先に置くほうが読みやすいです"
body: must be double-quoted. See §9 — this one is not cosmetic. inkmark drops
the quotes again on its next save when the text did not need them; that is
normalisation, not damage.by: AI. The sidebar prints that name verbatim.Edit on a short, unique old_string (the last entry's closing line).
Never rewrite the whole endmatter block.Wrap the text in the body and add a root entry to the endmatter. Both halves, always.
これは {==ローカルファースト==}{>>この語の定義がまだ出てきていません<<}{#c8} なツールです。
c8:
by: AI
at: 2026-08-26T10:00:00.000Z
resolved: false
A highlight with no note is the same shape without the {>> <<} part:
{==some text==}{#c8}.
{++added text++}{#s1}
{--removed text--}{#s2}
{~~old wording~>new wording~~}{#s3}
…plus an entry under suggestions: carrying just by and at:
s1:
by: AI
at: 2026-08-26T10:00:00.000Z
Suggestion ids use the s series, numbered independently of c. A suggestion has no
resolved — accepting or rejecting it rewrites the body and removes the entry outright.
The human can also reject one with a reason. The viewer then restores the old text and
leaves a by: user comment on it, saying what was turned down and why. That comment wakes
a live waiter like any other:
Say {==old wording==}{>>Rejected "old wording → new wording": keep the term the spec uses<<}{#c9} here.
Treat it as feedback on your suggestion: reply (§5) and, if it calls for one, propose a
different edit — do not re-suggest the change that was just rejected. A rejected insertion
has no text to restore, so its comment is a bare {>>Rejected "+ …": …<<}{#cN} where the
insertion stood. Replies you had left on the suggestion move to this comment.
Set the root's resolved: true. Nothing else — the mark stays in the body, and the
replies are untouched.
Double-quote every body: value. An unquoted half-width colon —
body: 結論: これは危ない — makes the YAML fail to parse, and inkmark then decides
the block was never endmatter at all: the entire block falls back into the document
body. Every comment disappears from the sidebar and the raw YAML renders as prose.
No exception is thrown and the file still round-trips, so no amount of grepping will
catch it.
Mint ids from both places. The next id is one more than the highest cN (or sN)
found across both the body's {#…} marks and the endmatter keys. Comments and
replies share one c series.
Never put <<}, ==}, ++}, --}, or ~~} inside text you insert — mark text,
notes, replies, suggestions. Any of them terminates the mark early.
No line breaks inside a {>> <<} note. It lives inside a paragraph; a newline
splits it. The rule is the note's alone — the marked span may span several blocks, and
then it carries blank lines and the block markers it crossed.
Never overlap or nest marks. A range that touches an existing mark is not markable.
A fenced code block is all or nothing. Wrap it whole, with {== and ==} each on
their own line, or let a larger mark swallow it whole. A mark that opens outside a fence
and closes inside it (or the reverse) breaks the fence and turns the rest of the document
into code:
{==
```ts
const x = 1;
```
==}{>>this API is out of date<<}{#c9}
Never put a mark inside a fence. The parser skips plain, unindented, triple-backtick
fences only — inside a ~~~ fence, an indented one, or a four-backtick one it reads
your {== as a real mark and mangles the code.
Exactly one endmatter block, at the end of the file, opened and closed by ---.
Do not append a second one. The parser can merge them, but the next save from the UI
folds them into one and the diff becomes noise. (The parser also accepts an unclosed
block, so a file missing its final --- is not broken — but always write the closing
fence yourself, because that is what a save produces.)
Do not delete top-level keys other than comments: / suggestions:. A title:
or any other key is the author's, and inkmark preserves it across saves.
A reply gets no body mark. An entry with re: lives only in the endmatter.
Re-read what you changed, then:
{==/==}, {++/++}, {--/--}, {~~/~~}.{#cN} / {#sN} in the body has exactly one endmatter key. Going the other way,
only roots need a mark: an entry with re: is a reply and correctly has none.^---$ lines in the file are the endmatter's own fence, with the YAML
between them and nothing after. (Do not just count them — a document may use --- as a
horizontal rule in its prose.)Know the limit: those are text checks, not a YAML parse. A file can pass every one of them and still have lost its endmatter to rule 1. Inside a clone of inkmark, the real check is to run the parser:
npx tsx -e "import('./src/rfm/index.ts').then(async (m) => {
const { readFile } = await import('node:fs/promises');
console.dir(m.parse(await readFile('<file>', 'utf8')).endmatter, { depth: null });
});"
(tsx -e compiles to CJS, so the import has to be a .then() — top-level await
fails to transform.)
If comments comes back empty on a file that visibly has comments, the endmatter fell
into the body — fix the YAML.
Before:
inkmark is a {==local-first==}{>>What does this mean here?<<}{#c1} viewer.
---
comments:
c1:
by: user
at: 2026-08-26T09:00:00.000Z
resolved: false
---
Reply to c1, then resolve it. The body does not change; the endmatter becomes:
comments:
c1:
by: user
at: 2026-08-26T09:00:00.000Z
resolved: true
c2:
by: AI
re: c1
at: 2026-08-26T10:00:00.000Z
body: "The document lives on your machine; you and the agent edit the same file."
c2 because c1 was the highest id in use. No mark was added for the reply, and only
the root's resolved moved.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub yoshi47/inkmark --plugin inkmark