一键导入
dev-slides
Generate a Google Slides presentation from a paper PDF URL using gws CLI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate a Google Slides presentation from a paper PDF URL using gws CLI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Rebase open PRs onto the default branch, resolve conflicts, and force push.
Review Airflow UI code for consistency, best practices, and conventions.
Develop Airflow UI features from an issue link or text description.
Generate a concise PR changelog summary from the current branch diff.
Set up git aliases.
Address PR review comments, fix valid ones and draft replies for invalid ones.
| name | dev-slides |
| description | Generate a Google Slides presentation from a paper PDF URL using gws CLI. |
/dev-slides <arxiv PDF URL or paper URL>
gws CLI authenticated with Slides and Drive APIspymupdf, Pillow, numpyFetch paper content:
WebFetch on the arxiv abstract page to get title, authors, abstractWebFetch on the PDF URL for detailed methodology, results, contributionsCreate presentation:
gws slides presentations create --json '{"title": "<paper title>"}'
Save the presentationId from the response.
Get layout IDs from the create response:
Build slides via batchUpdate:
createSlide, mapping placeholders by typeinsertTextcreateParagraphBullets (preset: BULLET_DISC_CIRCLE_SQUARE)START not LEFT, use CENTER not CENTERbatchUpdate callExtract figures from PDF:
curl -sL "<url>" -o /tmp/paper.pdfpymupdf to analyze exact figure boundaries: call page.get_text("dict") for text blocks and page.get_drawings() for drawing boundsfitz.Rect clip regions based on analyzed coordinates, not rough guessesUpload images to a public host:
curl -s -X POST "https://freeimage.host/api/1/upload" \
-F "key=6d207e02198a847aa98d0a2a901485a5" \
-F "source=@/tmp/paper_figs/fig.png" \
-F "format=json"
Extract URL from response: .image.url
Insert images into slides via batchUpdate:
createImage with the hosted URLVerify layout after building all slides:
Output the presentation URL:
https://docs.google.com/presentation/d/<presentationId>/edit