Skill instructions
playlist-digest1.69 KB
View saved version →
---
name: playlist-digest
description: Make one digest from the transcripts of several videos in a playlist. Use when the user gives a playlist link, or a video link with a list= parameter, and asks for a digest, a summary or the main points of the videos in it.
---
# Digest a playlist
1. Find the language of the videos. Use the language that the user named. If the user did not name one, ask the user one short question before you call a tool. The playlist tool needs a language code, such as `en` or `ru`.
2. Find the videos that the user wants. If the user named a number, such as "the first 3", pass `playlistItems` as `1:3`. If the user did not name a number, pass `maxItems` as `5` and tell the user that the digest covers the first 5 videos.
3. Call `get_playlist_transcripts` one time with `url`, `lang` and the item selection from step 2. Pass `type` only if the user asked for official or automatic captions.
4. Write one digest. The answer gives each video as its ID and its text. Give each video a short part, then the points that the videos share.
5. If fewer videos came back than you selected, say so in the digest. Do not fetch the missing videos one by one.
6. If no video came back, the answer names one next step. Give the user that text, and do not call again.
## Rules
- Each video in the playlist is a caption request, and the platforms limit caption requests. Do not select more videos than the user asked for.
- Do not call `get_transcript` for each video before or after `get_playlist_transcripts`.
- If the call fails, do not call again. Give the user the error text, which names the next step.
- If the user asks for something else, such as more videos or a single video, do what the user asks.
quote-video3.47 KB
View saved version →
---
name: quote-video
description: Find what a video says about a topic and quote it with timestamps. Use when the user gives a video link or a YouTube video ID and asks for a quote, the exact words, or the time when something is said.
---
# Quote a video with timestamps
1. Call `get_raw_subtitles` one time with the `url` that the user gave. If the user asked for the subtitles in a specific language, also pass `lang` with that code. A language for your answer, such as "summarize in German", is not a track language: then do not pass `type` or `lang`. The answer is SRT or VTT text: each cue has a start time and an end time.
2. If the answer is a list of tracks and not the subtitles, do the steps in "If the answer is a list of tracks".
3. If the answer has `next_cursor` and you did not find the quote, call `get_raw_subtitles` again with the same arguments and that `next_cursor`.
4. Find the cues that match the request. Quote the words exactly, in the language of the video. Put the start time of the first cue in front of each quote, as `MM:SS` or `HH:MM:SS`.
5. If the video is on YouTube, add a link to the moment: `https://www.youtube.com/watch?v=<video ID>&t=<seconds>s`. Take the video ID from the link or the ID that the user gave.
## Several videos
Users often send several links at once, or one after another.
1. Make one `get_raw_subtitles` call for each video, with the same rules as for one video. You can make the calls at the same time.
2. Do not call `get_video_info` or `get_available_subtitles` for each video first. The subtitles are enough for the quotes.
3. Do not call `get_playlist_transcripts` for a list of video links. That tool is for a playlist link.
4. If a video answers with a list of tracks, do the steps of "If the answer is a list of tracks" for that video only. The other videos do not change.
5. If a video already has its subtitles in this conversation, do not fetch it again. Use the text that you have.
## If the answer is a list of tracks
The server could not tell which track is in the original language. The answer lists the official and the automatic tracks and names one next step. Do only that step.
1. If the step asks for `type` and `lang`, choose one listed track. Use the language that the user asked for. If the user did not ask for one, use the language of the video title or of the user's message. Choose an official track before an automatic track. Then call `get_raw_subtitles` one more time with `url`, `type` (`official` or `auto`) and `lang` exactly as the list shows them.
2. If the list is empty and the step asks for `lang`, use the language that the user asked for, or the language of the video title. Then call `get_raw_subtitles` one more time with `url` and `lang`.
3. If the step says not to repeat the call, or to retry later, do not call again. Give the user the text of the answer.
## Rules
- Each call to `get_raw_subtitles` without `next_cursor` is a caption request, and the platforms limit caption requests. Make one request for each video, also in a batch of videos, plus at most one follow-up after a list of tracks.
- Do not call `get_transcript` for the same video as well. The raw subtitles hold the same words and the times.
- Do not call `get_available_subtitles` or `get_video_info` before `get_raw_subtitles`.
- If a call fails, do not call again, except for the one follow-up after a list of tracks. Give the user the error text, which names the next step.
- If the user asks for something else, such as a specific track or tool, do what the user asks.
summarize-video3.33 KB
View saved version →
---
name: summarize-video
description: Summarize a video or answer questions about what is said in it. Use when the user gives a video link (YouTube, Twitter/X, Instagram, TikTok, Twitch, Vimeo, Facebook, Bilibili, VK, Dailymotion, Reddit) or a YouTube video ID and asks for a summary, the key points, or an answer from the video.
---
# Summarize a video
1. Call `get_transcript` one time with the `url` that the user gave. If the user asked for the transcript in a specific language, also pass `lang` with that code. A language for your answer, such as "summarize in German", is not a track language: then do not pass `type` or `lang`. The server then picks the original language of the video.
2. If the answer is a list of tracks and not the text, do the steps in "If the answer is a list of tracks".
3. If the answer has `next_cursor` and the summary needs the rest of the text, call `get_transcript` again with the same arguments and that `next_cursor`.
4. Write the summary or the answer from the transcript text only. Answer in the language of the user, not of the video.
## Several videos
Users often send several links at once, or one after another.
1. Make one `get_transcript` call for each video, with the same rules as for one video. You can make the calls at the same time.
2. Do not call `get_video_info` or `get_available_subtitles` for each video first. The transcript is enough for a summary or an answer.
3. Do not call `get_playlist_transcripts` for a list of video links. That tool is for a playlist link.
4. If a video answers with a list of tracks, do the steps of "If the answer is a list of tracks" for that video only. The other videos do not change.
5. If a video already has its transcript in this conversation, do not fetch it again. Use the text that you have.
## If the answer is a list of tracks
The server could not tell which track is in the original language. The answer lists the official and the automatic tracks and names one next step. Do only that step.
1. If the step asks for `type` and `lang`, choose one listed track. Use the language that the user asked for. If the user did not ask for one, use the language of the video title or of the user's message. Choose an official track before an automatic track. Then call `get_transcript` one more time with `url`, `type` (`official` or `auto`) and `lang` exactly as the list shows them.
2. If the list is empty and the step asks for `lang`, use the language that the user asked for, or the language of the video title. Then call `get_transcript` one more time with `url` and `lang`.
3. If the step says not to repeat the call, or to retry later, do not call again. Give the user the text of the answer.
## Rules
- Each call to `get_transcript` without `next_cursor` is a caption request, and the platforms limit caption requests. Make one request for each video, also in a batch of videos, plus at most one follow-up after a list of tracks.
- Do not call `get_available_subtitles`, `get_video_info` or `get_raw_subtitles` before `get_transcript`.
- Do not request a second track or a translation. If the user wants another language, translate the text yourself.
- If a call fails, do not call again, except for the one follow-up after a list of tracks. Give the user the error text, which names the next step.
- If the user asks for something else, such as a specific track or tool, do what the user asks.
video-frame1.37 KB
View saved version →
---
name: video-frame
description: Show a still frame of a video at a given time. Use when the user gives a video link or a YouTube video ID and asks to see the picture, the frame, the slide or the screen at a time such as 4:12.
---
# Show the frame at a time
1. Read the time from the request. Pass it as `timecode` in the form `MM:SS` or `HH:MM:SS`, for example `04:12`. If the user gave seconds, pass `seconds`. If the user gave no time, pass nothing. The tool then returns the first frame.
2. Call `get_video_frame` one time with `url` and the time.
3. Show the image. Say the time of the frame.
4. If the user asks for the moment when something is said, and not for a time, find the time first. Do steps 1 to 3 of the quote-video skill with `get_raw_subtitles`, including its steps for a list of tracks. Use the start time of the cue that you find in step 2.
## Rules
- `get_video_frame` makes no caption request. Do not fetch the transcript to show a frame at a time that the user gave.
- If the time is after the end of the video, the call fails. Do not try other times. Give the user the error text.
- If a call fails, do not call again. Give the user the error text, which names the next step.
- For several videos, make one `get_video_frame` call for each video. Do not call `get_video_info` first.
- If the user asks for something else, such as several frames, do what the user asks.