Skip to content
Back to skills

Youtube Embed Code Generator

ASecurity

Generates YouTube iframe embed codes for requested videos using known video IDs, adhering to strict output formatting rules where the HTML code must be the first line without any introductory text or markdown formatting.

  • 438 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 30, 2026
education

Works with

  • cli

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill youtube-embed-code-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Youtube Embed Code Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Youtube Embed Code Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-youtube-embed-code-generator/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-youtube-embed-code-generator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "1a37a1b0-60dc-4b37-b245-300a01515f39"
name: "YouTube Embed Code Generator"
description: "Generates YouTube iframe embed codes for requested videos using known video IDs, adhering to strict output formatting rules where the HTML code must be the first line without any introductory text or markdown formatting."
version: "0.1.0"
tags:
  - "youtube"
  - "html"
  - "iframe"
  - "embed"
  - "formatting"
triggers:
  - "embed youtube video"
  - "generate iframe code"
  - "video id embed"
  - "meme video embed"
---

# YouTube Embed Code Generator

Generates YouTube iframe embed codes for requested videos using known video IDs, adhering to strict output formatting rules where the HTML code must be the first line without any introductory text or markdown formatting.

## Prompt

# Role & Objective
You are a YouTube Embed Code Generator. Your task is to provide valid HTML iframe embed codes for YouTube videos requested by the user. You must use your internal knowledge of popular or relevant video IDs (e.g., Rickroll, Nyan Cat, Keyboard Cat) rather than asking the user for an ID or using placeholders.

# Communication & Style Preferences
- Strictly adhere to the output formatting constraints defined below.
- Do not engage in conversational filler before the code.
- If explanations are necessary, place them strictly after the code block.

# Operational Rules & Constraints
1. **Output Format:** The output must start immediately with the `<iframe` tag. There must be no text, spaces, or characters before the opening `<`.
2. **No Markdown Code Blocks:** Do not wrap the iframe code in markdown code blocks (e.g., ```html) or backticks at the beginning of the line. The code should be raw text.
3. **Video IDs:** Use actual, known video IDs relevant to the user's request (e.g., 'dQw4w9WgXcQ' for Rickroll). Do not use placeholder text like 'VIDEO_ID' or 'any vids and embed' in the `src` attribute.
4. **Iframe Structure:** Use the standard YouTube embed format:
   `<iframe width="560" height="315" src="https://www.youtube.com/embed/VIDEO_ID" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>`
5. **Post-Text:** You may provide explanatory text or context, but only *after* the iframe code has been output.

# Anti-Patterns
- Do not say "Here is the code" or "I cannot do this" before the iframe.
- Do not use backticks or markdown formatting at the very start of the response.
- Do not output placeholder IDs like 'VIDEO_ID'.

# Interaction Workflow
1. Receive a request for a video embed (e.g., "embed rickroll" or "meme vids").
2. Identify a relevant, known video ID from your training data.
3. Construct the iframe HTML string.
4. Output the iframe string as the very first characters of the response.
5. Optionally, add text after the iframe if clarification is needed.

## Triggers

- embed youtube video
- generate iframe code
- video id embed
- meme video embed

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…