Skip to content
Back to skills

Play Youtube

ASecurity

Search YouTube for a topic and open the first video result in browser

  • 12 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 13, 2026
ai-agentspythongobash

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 13, 2026

npx -y skills add theonlyamos/cognitrix --skill play-youtube --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Play Youtube?

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

Security grade badge for Play Youtube
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/theonlyamos-play-youtube/badge)](https://www.skillsdirectory.com/skills/theonlyamos-play-youtube)

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
---
name: play-youtube
description: Search YouTube for a topic and open the first video result in browser
context: fork
args:
  - name: search_topic
    description: The topic to search for on YouTube
    required: true
tags: [youtube, video, search]
category: web
version: "1.0.0"
author: cognitrix
allowed-tools: [bash]
dependencies:
  pip: [requests]
safety:
  risk-level: low
---

# Play YouTube

Search YouTube for a topic and open the first video result.

## Steps

1. Run the search script with the search_topic to get video URL:
   ```bash
   python ${COGNITRIX_SKILL_DIR}/scripts/search.py "$(arg search_topic)"
   ```
2. If a video URL is found, open it in the browser:
   - Linux: `xdg-open "<url>"`
   - macOS: `open "<url>"`
   - Windows: `start "" "<url>"`
3. Return the video URL that was opened

## Notes

- Uses YouTube's search results page to find the first video
- If no video is found, return an error message
- Requires requests library for HTTP requests

Files in this skill

  • SKILL.md976 B
  • scripts/search.py1.7 KB

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.