slides.add_tutorial_links
Link lecture slides to matching sections of a rendered tutorial notebook
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- model
- sonnet
- description
- Link lecture slides to matching sections of a rendered tutorial notebook
03 SKILL.md 正文
Goal
-
Given a slides file
<SMD_FILE>and a rendered HTML tutorial<TUTORIAL_URL>, add links from each slide to the tutorial section it corresponds to- E.g.,
<SMD_FILE>=msml610/lectures_source/Lesson09.3-Multi_Armed_Bandits.txtand<TUTORIAL_URL>=https://raw.githack.com/gpsaggese/gpsaggese.github.io/gp_scratch/msml610/tutorials/L09_multi_armed_bandits/L09_03_02_multi_armed_bandits.html
- E.g.,
Workflow
Find the Relationship
- Read
<SMD_FILE>and<TUTORIAL_URL> - If a companion tutorial markdown file exists next to the notebook (e.g.,
<TUTORIAL_DIR>/<TUTORIAL_NAME>.md), use it to help match slide content to tutorial cells - Match each slide to the tutorial cell(s) that cover the same concept
Add Links
- For each match, add a link in the slide to the tutorial anchor for that
cell
- The anchor is the rendered HTML's cell heading, e.g.
<TUTORIAL_URL>#Cell-1:-Introduction---Casino-Slot-Machines
- The anchor is the rendered HTML's cell heading, e.g.
- Do not add a link when no tutorial cell clearly corresponds to the slide
Leave Structure and Content Unchanged
- Do not change the structure of the text (titles, bullet hierarchy, div fenced blocks) or the substantive content: add only the link
Conventions
- Follow the role specified in
.claude/skills/role.ai_researcher.md - Follow the conventions in
.claude/skills/slides.rules.md
Verification
- [ ] Check that each added anchor points to an actual heading in
<TUTORIAL_URL>, not a guessed slug - [ ] Make sure that the updated slides render correctly, e.g.,
> gen_slides.py -i <FILE> --notes_to_pdf_args="--skip_action open_pdf"
04 同仓库更多 Skills
tutorial_in_60_mins.propagate_docker_changes
Sync tutorial and class-project Docker files to match project_template
tutorial_in_60_mins.merge_markdown
Merge the content of a markdown file into a Jupyter notebook
tutorial_in_60_mins.format
Format a directory to follow the "Learn X in 60 Minutes" tutorial conventions
tutorial_in_60_mins.create
Create a tutorial directory for the Learn X in 60 Minutes conventions
todo.reorg_in_progress
Reorganize ai_task_queue.md so in-progress tasks, not-started tasks, and mislabeled topic headers sit under the right H1 stage
todo.reorg_headers
Reorganize ai_task_queue.md .md so every H2 topic matches ALL TOPICS and every H3 task sits under the right topic, keeping its H1 stage