Slides.update from source

From gpsaggese/helpers · View interactive version

Slides.update from source is an AI agent skill from the GitHub repository gpsaggese/helpers. Update slides to match changes in the source slides they cite

How to use this skill

Skill file

Goal

with // From: <SOURCE>:<LINE> '<source line>' comments, find what changed in

each <SOURCE> and incorporate it into the citing slide of <TARGET>

<TARGET>). Then process only the slides in that scope

Workflow

## Source Attribution (// From: ...)

List the Citations

```bash

> grep -n "^// From:" <TARGET>

```

identified source. Do not guess a source and do not drop the line

Resolve Each Source Slide

citation

(* , #, ## , ### ). <LINE> drifts whenever <SOURCE> is edited

above it

```bash

> grep -nF -- '<source line>' <SOURCE>

```

// From: line

// From: line unchanged, and go to the next citation

header line

same or higher level. Only the part matching the citing slide's topic is

relevant

related_books.md: the entry itself. Compare only its text (authors,

title, year, link) with the reference used in the slide

Find What Changed

last synced with

```bash

> git log -1 --format=%H -- <TARGET>

```

```bash

> git diff <BASE> -- <SOURCE>

```

because a slide may have been synced from an older version than <BASE>

Incorporate Changes

adapted

slide may combine several sources or add its own material. Remove content only

when the diff shows the fact or example was changed or retracted, not moved

dashes as punctuation

slide into three), do not guess. Leave the slide unchanged and report the

question

Update the `// From:` Lines

source line

```text

// From: <SOURCE>:<NEW_LINE> '<NEW_SOURCE_LINE>'

```

since an edit above the source slide shifts its line number

the original order

Report

Conventions

synchronization for a book chapter (.typ, .tex, .md) instead of .smd

slides

Constraints

<SOURCE>

Verification

points at a line that exists in <SOURCE>, and that line matches the quoted text

```bash

> sed -n '<LINE>p' <SOURCE>

```

citing slide, or listed as needs decision in the report

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.