Apply Slide Comments
Comments are instructions anchored to a slide. Edits follow slide-editing;
this skill is the loop around them.
Procedure
- Collect.
list-slide-commentswithdeckId(addslideIdonly when the user scoped the request; page withnext_cursorwhilehas_more). Keep threads withresolved: false. A thread is the root comment plus replies (thread_id,parent_id); read the whole thread, and treat the latest instruction as current. - Group by slide and note each comment's anchor:
anchor.objectIdis thedata-slide-object-idelement,quoted_text/anchor.targetTextand the text offsets locate the words, and an anchor with onlyx/yis a position on the slide. - Read each affected slide once:
view-screenfor the open slide,get-deckwithslideIdsandcompact=falsefor the rest. Interpret the comment against its anchor object, not the whole slide. - Apply every edit for one slide in a single
patch-deckpatch-slideoperation with that slide'sbaseContentHash. Preserve ids andleft/top/width, and change only what the comment asks for. - Verify. When text length changed, call
get-layout-overflowsonce after all slides are written, andaudit-contrastlast (seeslide-editing). Read the persisted slide back before resolving anything. - Resolve each applied thread:
update-slide-commentwithid,deckId,resolved: true(resolving applies to the full thread). Never delete a user's comment. - Leave open any comment you skipped, that is ambiguous, or that asks for
something outside the deck (new data, an image only the user has). Say why
in the summary; reply with
add-slide-comment(threadId+parentId) only if the user asked you to.
Judgment
- Ambiguous but low-risk: apply the smallest reasonable reading and state the assumption. Ambiguous and costly to undo (cuts content, changes numbers, conflicts with another comment): skip it.
- Conflicting comments on one element: apply neither, name both.
- A comment about a fact needs the source; follow
creative-context, do not guess. - Leave no TODO or "per comment" text in slide HTML.
Summary
Finish with one line, N applied, M skipped, then one line per change
(slide number, what changed) and one per skipped comment with its reason.