Skip to content
Back to skills

Scroll To Study

ASecurity

Turns study material into short vertical videos with voice, to review one topic a day, with every fact checked against the material. Works to understand your own project (repo, report, assignment brief) or to study a course for an exam (notes, slides, exercises). Use it when the person wants to study or review with videos, or asks for a scroll to study inventory, topics or scripts.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 15, 2026
ai-agentsjavascriptpythongojavagitdatabase

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned November 15, 2026

npx -y skills add AgustinMartinezf/scroll-to-study --skill scroll-to-study --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Scroll To Study?

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

Security grade badge for Scroll To Study
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agustinmartinezf-scroll-to-study/badge)](https://www.skillsdirectory.com/skills/agustinmartinezf-scroll-to-study)

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: scroll-to-study
description: Turns study material into short vertical videos with voice, to review one topic a day, with every fact checked against the material. Works to understand your own project (repo, report, assignment brief) or to study a course for an exam (notes, slides, exercises). Use it when the person wants to study or review with videos, or asks for a scroll to study inventory, topics or scripts.
---

# Scroll to study: from material to study videos

Together with the person, you will produce 8 to 20 videos of 30–60 s, to review one topic a day.
Each video is a single `.html` file that plays by itself in the browser, with voice.

There are two modes, and the first step is to know which one applies:
- **proyecto** (project): something the person made (an assignment, a work project). They know the
  material and can confirm doubtful facts.
- **materia** (course): they study for an exam with notes, slides or a book. They cannot tell whether
  a fact is true, so whatever cannot be checked against the material does not go into any video.

And two languages for the videos: **es** (Spanish, the default) and **en** (English). Ask which one
they want if it is not obvious from how they talk to you. The material can be in either language.

The central rule: **nothing in a video can state something that is not in the material.** Every fact
goes through code that checks it: you write the JSON files and `s2s.py` checks them. Never accept a
stage without running its check, and never hand-edit what the script computes.

Abbreviations: `S2S` = `python3 ${CLAUDE_SKILL_DIR}/scripts/s2s.py` (on Windows it may be `python`
instead of `python3`). `T` = the working folder: `scroll-to-study/` inside the current folder, unless
the person asks for another one. The prompts are in `${CLAUDE_SKILL_DIR}/prompts/`. Where a prompt
says "write ONLY the JSON", write that JSON to the file given.

Talk to the person in their language. The commands and JSON keys are in Spanish; that is expected.

## 0. Set up (once per computer)

    python3 -m pip install -r ${CLAUDE_SKILL_DIR}/requirements.txt
    S2S instalar --idioma es        # or --idioma en

`instalar` downloads the voice for that language (Piper, about 65 MB), gsap and KaTeX to a data
folder and checks that the voice works. Run it again with the other language if they want videos in
both. If it fails, run `S2S diagnostico`: it prints one line per requirement (Python version, each
package, the voice of each language, gsap, KaTeX), either "ok" or the command that fixes it. Show the
lines that are not "ok" to the person and run the fixes they agree to; do not go on to the video stage
until the required ones are ok (the script stages work without the voice). Playwright and ffmpeg show
up as optional: they are only needed for step 7.

## 1. Material

Ask what they are going to study and where the material is. In project mode: the code (folder or
.zip), the report and the assignment brief or rubric if there is one. In course mode: notes, slides,
worked exercises and, if they exist, the course syllabus or past exams. Then:

    S2S corpus -t T --modo proyecto --idioma en --repo PATH_TO_REPO --doc report.pdf --doc brief.pdf
    S2S corpus -t T --modo materia --idioma es --doc theory.pdf --doc exercises.pdf

Optional: `--estilo cuaderno` (notebook paper, the default) or `--estilo pizarra` (dark board) sets
how every video looks.

What can go in `--doc`: PDFs with text, slides (`.pptx`), Word documents (`.docx`), and text or
code files. Slides are read slide by slide (titles, text boxes, tables and speaker notes) and quoted as
`slides.pptx:d4`; Word documents are numbered by paragraph, like a text file. Images inside them have
no text to quote, so they do not count. Old formats (`.ppt`, `.doc`) and Google Slides or Docs links
are not read: ask the person to export them as `.pptx`, `.docx` or PDF.

If it warns that the material is too large, ask which folders or chapters matter.

If it warns that a PDF has pages without text, it is probably scanned: its content cannot be quoted.
Tell the person how many pages were empty and ask for a PDF with text (the digital version, or the
scan run through OCR first, for example with `ocrmypdf`). Do not guess what those pages say.

## 2. Inventory of statements

Follow `prompts/<modo>/inventario.md` reading all of `T/corpus.txt` (in parts if it is long). Write
`T/inventario.json` as `{"afirmaciones": [{"id","texto","fuente","cita","tipo"}, …]}` and run

    S2S verificar -t T

For each statement in "comprobar", look at the reason: if it says where the quote appears, fix the
source; if the quote is not in the material, find the real verbatim quote or remove the statement.
One round of fixes, then verify again. In project mode, show what is still in "comprobar" to the
person in a short list: if they confirm it is correct, set `"aprobado": true`; if not, remove it.
Never set `aprobado` unless the person says so. In course mode nothing is approved by hand: whatever
cannot be verified is removed (and tell the person how many statements were left out).

If in course mode the material is an exercise sheet without theory, do not solve specific exercises
(the person solves and checks them on their own). Record each type of exercise as a statement from
the material and add the general methods and traps to approach it, as `prompts/materia/inventario.md`
explains. Tell the person those methods do not come from their material and that the videos label
them as "general method".

If the material contradicts itself (for example, a slide's text says the opposite of its figure), do
not pick a version: leave that statement out and tell the person what you saw and where, so they can
check it with their teacher.

## 3. Does the quote back the statement?

The check in step 2 is mechanical: it confirms the quote is in the source and that the names and
numbers of the statement appear in it, but not that the statement actually follows from the quote. A
real quote can back a false statement ("WPA2 usa AES" does not prove "WPA2 usa 3 rondas de AES"). So:

    S2S respaldo -t T

With no `T/respaldo.json` yet, it writes `T/respaldo_pedido.txt` with the statements still in "ok" and
their quotes. Read ONLY that file — do not look at the material again — and for each one decide whether
the quote supports exactly what the statement claims. Write `T/respaldo.json` as
`{"<id>": {"respalda": true|false, "motivo": "<short reason>"}}`, one entry per id and no others. Set
`respalda` to false when the statement adds, contradicts or does not follow from the quote, and give
the `motivo` in those cases. Then run `S2S respaldo -t T` again to apply it: the statements with
`respalda` false move to "comprobar" with that reason.

The verdict is stored in each statement (key `respaldo`, do not edit it) and `respaldo.json` is renamed
to `respaldo_aplicado.json`. Running `verificar` again keeps the verdicts; if you add statements or
change a statement's text or quote, `verificar` says how many are pending and `S2S respaldo -t T` asks
only for those.

Then handle them like the rest of "comprobar". In project mode, show them to the person and only keep
the ones they confirm (`"aprobado": true` leaves a statement in "ok" and is respected here too). In
course mode nothing is approved by hand, so a statement whose quote does not back it does not reach any
video.

## 4. Topics (the person decides)

Follow `prompts/<modo>/temas.md` with the verified inventory, write `T/temas.json`
(`{"temas": [{"id","titulo","pregunta","afirmaciones"}]}`) and run `S2S temas -t T`.
Show them the list (title and question) and ask what to remove, add or reorder, and whether something
they will surely be asked is missing. If it is missing, there may be no statements that back it: say
so instead of making it up. Apply their changes and run `S2S temas` again.

Each video gets a format picked from its statements (pregunta: question and answer with a countdown;
mito: myth vs fact; avsb: A versus B; pasos: step by step; historia: problem → decision). If the
person wants a specific format for a topic, add `"formato": "<name>"` to that topic.

## 5. Scripts, one per topic

For each topic, in order:

1. `S2S pedido -t T --tema t01`. **That output is the only thing you may use as content**: even if
   you read the whole material, do not add names, numbers, reasons or examples that are not there.
   It also says the video language, the format, the closing line and the EXAMPLE script for that
   format: it is about another subject, so copy its shape, not its elements. From the second topic
   on, it also lists "Earlier videos in this playlist": the format and element types of each earlier
   topic with a validated script. Read it before choosing elements: do not open with the same element
   as the previous video, and do not repeat the exact combination of any earlier one. Pick the
   elements by the shape of this topic's content, not by what worked before.
2. Write the script following `prompts/guion.md` to `T/t01/guion.json`, in the video language. If a
   word will be mispronounced (snake_case, acronyms, words without accents in code), add it to
   `"lexico"`.
3. `S2S guion -t T --tema t01`. Fix everything marked `ARREGLAR` and run it again. Also treat as
   errors the `AVISO` lines about identifiers or numbers that are not in the sources, and the ones
   that say an icon has nothing to do with the topic ("el ícono database no tiene que ver con este
   tema"): remove that icon or pick one that names what the element is about. The `AVISO` lines that
   start with "variedad" are not errors, but fix them if a different element shows the content as well.
   You do not fix `PREGUNTAR`: note it for the person.
   If the script says not to continue, move on to the next topic and tell them at the end.
4. Once the script is valid, the practice questions for that topic: `S2S preguntas -t T --tema t01`.
   Without `T/t01/preguntas.json` it prints their request: the topic and only its verified statements.
   **That output is the only thing you may use as content**, as with the script. Write
   `T/t01/preguntas.json` following `prompts/preguntas.md`, in the video language, and run
   `S2S preguntas -t T --tema t01` again to validate it. Same fixing loop as the script: fix everything
   marked `ARREGLAR`, also treat as errors the `AVISO` lines about identifiers or numbers that are not in
   the sources, note `PREGUNTAR` for the person, and if it says not to continue, move on.
   Once validated, the questions are shown right after the video, in the playlist and in the phone app
   (not inside the video `.html`): one by one, with the explanation after each answer. The result decides
   when the topic comes back for review (step 6). Only questions validated without errors and not edited
   since are shown: if you change `preguntas.json`, validate it again. `S2S estado -t T` says which topics
   have them validated.

If there are many topics, do 3 or 4 at a time and ask whether to continue. When done, gather all
`PREGUNTAR` and `[COMPROBAR]` notes and resolve them with the person: they know whether the fact is
true. With their answer, fix the script or the questions (or the sources) and validate again.

## 6. Videos

    S2S videos -t T --titulo "<name of the project or course>"

It generates the voice and the animation of every finished script (a few seconds per video) and a
playlist at `T/videos/index.html`. It warns about the topics that go without questions (no
`preguntas.json`, not validated, edited after validating, or with errors): those topics still get their
video. If a warning says a file was not validated or has errors, run `S2S preguntas` for that topic, fix
it, and run `S2S videos` again (it does not redo the videos, only the playlist). Each video is a single `.html` of about 1 MB that works offline:
it can be opened on the computer or copied to a phone. To redo one after changing its script:
`S2S video -t T --tema t01`. `S2S estado -t T` shows what is missing.
The engine animates each video differently on its own (how elements enter, how the camera moves between
scenes and how the scenes are laid out, by format); the script does not choose it. The same topic always
gives the same video. `S2S variedad -t T` lists, per video, the format, entrances, transition and layout.
If `video` warns that something appears right before the camera changes scene, move that `{show}`
earlier in the script or add a short sentence after it, validate again and redo that video.

When done, say in two or three lines how many videos were made, which were not and why, and where to
open the playlist. Explain how the playlist works: it opens what is up today; after a video with
questions it asks them, and a topic with a wrong answer comes back tomorrow, while one answered all
right comes back in 3 days, then in 7. They can skip the questions (the topic counts as watched) and
watch any video at any time. Offer `S2S paquete` (step 7) if they want the videos on their phone.

## 7. On the phone (optional)

The `.html` videos do not play from the Files app on an iPhone (its preview does not run JavaScript).
If the person wants the videos on their phone, offer the phone app first:

    S2S paquete -t T [--titulo "<name>"]   # every video in T/videos/ -> T/<title>.s2s.json

The title defaults to the playlist's. It prints the file's size, the topics that have no video
yet (they are not in the package) and the ones that go without questions, with the same warnings as
`videos`. The questions travel in the package and work in the app exactly as in the playlist. Then tell them, in their language:
1. Open https://agustinmartinezf.github.io/scroll-to-study/ on the phone, in Safari (iPhone) or Chrome
   (Android), and add it to the home screen (iPhone: Share → Add to Home Screen). Open it from the
   home screen from then on: on iPhone the installed app keeps its own storage, separate from Safari.
2. Send themselves the `.s2s.json` (WhatsApp, AirDrop, Drive) and tap "Import videos" in the app.
The app is only an empty player: the videos are stored on their phone and are never uploaded, and it
works offline. After redoing videos, run `paquete` again and import it again: same title, so it
replaces the videos and keeps their progress.

If they prefer plain video files (Photos, WhatsApp), export them to MP4 instead:

    S2S mp4 -t T                    # every video in T/videos/ -> T/mp4/t01.mp4, …
    S2S mp4 -t T --tema t01         # just one; --alto 1280 (the default) sets the height

It skips the MP4s that are newer than their video, so after redoing a video run it again. It needs
Playwright with its Chromium and ffmpeg; if they are missing it prints how to install them and stops
without touching anything: show those commands to the person and run them only if they agree. The
MP4s go to the phone like any file (cable, AirDrop, or sending them to themselves on WhatsApp) and
play offline in Photos or WhatsApp. Each video takes a little longer than it lasts (a one-minute
video, about a minute and a quarter), so with many videos run it in the background.

## What you do not do
- Do not write spec.json, script.json, gaps.json or timing.json by hand: the scripts generate them.
- Do not change sizes, pauses or pronunciation in the script outside `"lexico"`: the compiler computes them.
- Do not use icons outside the list in `prompts/guion.md` (the validator rejects them). Icons are
  optional; never use database or table unless the topic is about databases.
- Do not upload the material or the videos anywhere: everything stays on the person's computer.

Files in this skill

  • SKILL.md15.3 KB
  • prompts/ejemplos/avsb.en.json2.1 KB
  • prompts/ejemplos/avsb.es.json2.1 KB
  • prompts/ejemplos/historia.en.json3.3 KB
  • prompts/ejemplos/historia.es.json3.4 KB
  • prompts/ejemplos/mito.en.json2.4 KB
  • prompts/ejemplos/mito.es.json2.4 KB
  • prompts/ejemplos/pasos.en.json2.2 KB
  • prompts/ejemplos/pasos.es.json2.4 KB
  • prompts/ejemplos/pregunta.en.json2.5 KB
  • prompts/ejemplos/pregunta.es.json2.5 KB
  • prompts/guion.md14 KB
  • prompts/materia/inventario.md3.4 KB
  • prompts/materia/temas.md1.4 KB
  • prompts/preguntas.md4.5 KB
  • prompts/proyecto/inventario.md2 KB
  • prompts/proyecto/temas.md1012 B
  • requirements.txt99 B
  • scripts/animacion.py5.5 KB
  • scripts/compile.py53.4 KB

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 ai-agents →

Comments

Loading comments…

Newsletter

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