Skip to content

Apply a proof's marks

When you tick the Done box on a proof’s last page and sync, your AI can apply what you wrote: clear edits go into the source, and comments and questions wait for your yes. This is the job of the freehand-apply skill.

  • Your AI agent has Freehand’s skills. From a clone of Freehand, npm run skills:link links them into Claude Code (~/.claude/skills). For another agent, run node tools/link-skills.ts --to <its skills folder>.
  • You have uv, or Python 3.10 or later with pip install -r skills/apply/requirements.txt, so freehand marks can read the Supernote’s ink.
  • You have a proof on your device that you’ve marked, with the Done box ticked, and synced.

Ask your AI:

I finished marking my proof. Apply it.

Or just “apply my proof”. If freehand watch has a marks: folder in its config, it can start your AI itself when new marks arrive: set on.marks.then in the watch config.

Here’s what the skill does:

  1. Finds the open rounds: the records in freehand/sent/ for proofs with no .applied.json beside them, and checks that the proofs folder has a .mark file for each.
  2. Reads the marks with freehand marks, which draws each marked page with your ink over the PDF’s own page.
  3. Applies a proof only when it’s done. The Done page must be among the marked pages and its picture must show the box ticked. Otherwise it leaves the proof alone and says nothing.
  4. Matches each mark to the words you saw, using the proof’s snapshot (the words exactly as printed), never the source as it is now.
  5. Applies the clear edits (delete, insert, replace, move) and holds the rest. A comment, a question or a mark it can’t read waits for you.
  6. Writes the result where the words live:
    • a Google Doc is edited in place;
    • a file in a git repo gets a branch, a commit and a pull request listing each edit and each waiting line. The merge is yours;
    • a plain file is edited in place.
  7. Closes the round with <record name>.applied.json beside the record, then tells you in a line: “Proof applied: 12 edits, 2 waiting. Send the next round?”

There’s no set of marks to learn. A line through words usually means delete, a caret with words means insert, circled words with an arrow means replace, and a margin note is a comment in your words. A note addressed to the AI (#agent …, or “AI: …”) is an instruction. The AI reads what you meant from the picture and asks when it can’t tell. The usual meanings are in marks.md.

Marks on a reading copy are always notes, never edits. Ask your AI “read my marks on <copy>”: it gives you the passages you underlined or highlighted and your margin notes, in your words, and puts them where you keep notes.

freehand marks on its own draws the pages and prints what it found. Your first proof walks through it.