Skip to content
Back to skills

Imark Comments

ASecurity

Read and write the `<!-- imark … -->` comment blocks that Imark stores inside markdown files. Use when a markdown file contains blocks starting with `<!-- imark`, when the user mentions Imark notes or comments, asks you to read their annotations on a document, or asks for feedback they left in a file to be acted on.

  • 138 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 5, 2026
documentationswiftbashnode

Works with

  • terminal

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add migsilva89/imark --skill imark-comments --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Imark Comments?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Imark Comments
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/migsilva89-imark-comments/badge)](https://www.skillsdirectory.com/skills/migsilva89-imark-comments)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: imark-comments
description: Read and write the `<!-- imark … -->` comment blocks that Imark stores inside markdown files. Use when a markdown file contains blocks starting with `<!-- imark`, when the user mentions Imark notes or comments, asks you to read their annotations on a document, or asks for feedback they left in a file to be acted on.
---

# Imark comments

Imark is a macOS markdown reader that stores a reader's comments **inside the
document**, as HTML comments. Every renderer ignores them, `grep` finds them,
and they travel with the file. If you are looking at a markdown file with blocks
like this, that is what they are:

```markdown
Rows move in batches of 500, and the deadline is generous but workable.

<!-- imark quote="generous but workable" by="alex" at="2026-08-02T14:31Z"
Workable with which team? This needs a number, not an adjective.
-->
```

## Reading them

Do not hand-roll a parser. First see whether `imark` — the command the user
has in their own terminal — is on the PATH:

```bash
command -v imark
```

If that prints a path, use it, quoting the file if its name has spaces:

```bash
imark notes <file.md>
```

Whatever it returns is the answer, an error included: do not run the script
below after `imark` has run. Only if `command -v imark` printed nothing, run the
script it wraps instead, with the same arguments, and tell the user once that
**Imark ▸ Install the imark Command…** puts `imark` on their PATH:

```bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/imark.mjs" notes <file.md>
```

By default this shows only the notes still asking for something. A note carrying
`resolved=` has been dealt with — it stays in the file as the record of what was
asked, but it is history, not work. The header says how many were left out. Add
`--all` when the history is what you want.

Add `--json` for structured output; it obeys the same rule. Each note comes back
with what it says, the quote it is attached to, who wrote it and when, the
heading it falls under, and the block above it.

## The format

| Attribute | Meaning |
|---|---|
| `quote=` | the exact words the note is attached to. Required |
| `by=` | who wrote it. Omitted when there is no name |
| `at=` | ISO 8601 timestamp |
| `nth=` | which occurrence of the quote, when the same words appear twice. Only written when it is above 1 |
| `color=` | one of five names. Omitted for the default |
| `resolved=` | ISO date stamped by whoever acted on the note. The app fades it; review rounds stop repeating it |

The body is every line between the opening line and a line containing only
`-->`. Inside it, `&amp;` is a literal `&` and `--&gt;` is a literal `-->` —
escaped so the note cannot close its own comment early. In attributes, `&quot;`
is a quote character.

## Acting on them

A note is a request, not a remark. Answer every one, say what you changed for
each, and refer to them by their quote — *“on ‘generoso mas exequível’”* — which
is how the user sees them in the app.

A note reported as **orphan** has lost its anchor: the quoted words were edited
away. It still counts, but the paragraph above it is no longer reliably what it
is about — say so instead of guessing.

Once a note is dealt with, mark it rather than deleting it: add
`resolved="<ISO date>"` to its opening `<!-- imark` line, touching nothing else
on that line. The note stays as the record of what was asked; the mark says it
was done.

## Writing them

Prefer not to. The comments are the user's side of the conversation, and Imark
owns the file surgery — atomic writes, a staleness check, ten levels of undo.
Writing a block by hand from an agent gets none of that. Put your own answers in
your reply, or in a separate document.

If a note must be written into a file anyway, match `format()` in
`Sources/Imark/Comments.swift` exactly: attributes in the order `quote`, `by`,
`at`, `nth`, `color`, a blank line between the note and the block above it, and
the body escaped as described.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.