Loading...
Loading...
Upload PDF slides to CDN and configure chapter README with slides metadata. This skill should be used when adding teaching presentation slides to a chapter. Handles: PDF upload, part/chapter resolution, README frontmatter update, Teaching Aid heading.
npx skill4agent add panaversity/agentfactory upload-chapter-slides/upload-chapter-slides <pdf-path> <chapter-number> [--title "Custom Title"] [--name custom-filename]# Basic usage - chapter number only
/upload-chapter-slides /path/to/slides.pdf 4
# With custom title
/upload-chapter-slides /path/to/slides.pdf 3 --title "Agentic AI - The Digital FTE"
# With custom filename (for CDN URL)
/upload-chapter-slides /path/to/slides.pdf 4 --name context-engineering-blueprintpdf_pathchapter_numtitlename# Find chapter folder by number
ls -d apps/learn-app/docs/*/[0-9][0-9]-*/ | grep "/${CHAPTER_NUM}-\|/${CHAPTER_NUM}[0-9]-"0101-General-Agents-Foundationsapps/learn-app/docs/{NN}-{PartName}/{NN}-{ChapterName}/cd apps/panaversity-fs-py && uv run python scripts/upload_asset.py \
--file "{pdf_path}" \
--type slides \
--part {part_num} \
--chapter {chapter_num} \
--name {name_or_default}https://pub-*.r2.dev/books/ai-native-dev/static/slides/part-{N}/chapter-{NN}/{filename}.pdf{chapter_path}/README.mdslides:slides:title:slides:
source: "{cdn_url}"
title: "{title_or_chapter_title}"
height: 700## 📚 Teaching Aid## What You'll Learn#### 📚 Teaching Aid
## What You'll Learn✅ Chapter {N} slides uploaded
CDN URL: {cdn_url}
README: {chapter_path}/README.md
Title: {slides_title}| Error | Resolution |
|---|---|
| PDF file not found | Verify path exists |
| Chapter not found | Run |
| Upload failed | Check |
| README missing | Chapter may not be initialized |
PROJECT_ROOT: /Users/mjs/Documents/code/panaversity-official/tutorsgpt/agentfactory
DOCS_PATH: apps/learn-app/docs
UPLOAD_SCRIPT: apps/panaversity-fs-py/scripts/upload_asset.py---
sidebar_position: N
title: "Chapter N: Title"
slides:
source: "https://pub-*.r2.dev/books/ai-native-dev/static/slides/part-N/chapter-NN/filename.pdf"
title: "Slide Title"
height: 700
---
# Chapter N: Title
[intro paragraphs]
## 📚 Teaching Aid
## What You'll Learn
[content]