| name | add-video |
| description | Add a YouTube video URL to a recipe's frontmatter, commit, and push. |
| argument-hint | recipe-folder-name https://youtube.com/watch?v=... |
Add Video to Recipe
Updates a recipe's README.md frontmatter with a YouTube video URL, commits, and pushes.
Workflow
- Parse the arguments: recipe folder name and YouTube URL.
- Read
recipes/{folder}/README.md.
- Replace
video: null with video: {url} in the YAML frontmatter.
- Replace the "Video Walkthrough" section with an embedded link:
**[Watch the video walkthrough]({url})**
- Commit:
feat: add video to {recipe-name}
- Push to main.
- Confirm: "Video added to {recipe}. Site will rebuild automatically."