Skip to content
Back to skills

416 Cli Reference Ef10a01a

ASecurity

Load this when you need full flag details or pipeline composition patterns beyond what `--help` provides.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
toolspythonbash

Works with

  • cli

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 416-cli-reference_ef10a01a --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 416 Cli Reference Ef10a01a?

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

Security grade badge for 416 Cli Reference Ef10a01a
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-416-cli-reference-ef10a01a/badge)](https://www.skillsdirectory.com/skills/tools-only-416-cli-reference-ef10a01a)

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

SKILL.md
# CLI Reference

Load this when you need full flag details or pipeline composition patterns beyond what
`--help` provides.

## Global Flags

These flags work on any subcommand:

| Flag | Purpose |
|------|---------|
| `-f json/text` | Output format (default: json for search/metadata/channel, text for transcript) |
| `-t <topic>` | Topic subdirectory for saved files (default: general) |
| `-d <path>` | Override base dir (default: ~/youtube-research, env: `YT_RESEARCH_DIR`) |
| `--cookies <browser>` | Browser cookie auth for age-restricted/private content (chrome, firefox, safari, brave, edge) |
| `-q` | Suppress progress messages on stderr |
| `--dry-run` | Show yt-dlp command without executing |
| `-b <file>` / `--batch <file>` | Read URLs from file, one per line. Use `-` for stdin. Not available on `search`. |
| `--no-color` | Disable colored output (also auto-disabled when `NO_COLOR` is set or stdout is not a TTY) |

## Environment Variables

| Variable | Equivalent flag |
|----------|-----------------|
| `YT_RESEARCH_DIR` | `--dir` |
| `YT_RESEARCH_TOPIC` | `--topic` |
| `YT_RESEARCH_COOKIES` | `--cookies` |
| `NO_COLOR` | `--no-color` |

Precedence: flags > env vars > defaults.

## Exit Codes

| Code | Meaning |
|------|---------|
| 0 | Success |
| 1 | Usage error (invalid args, unknown subcommand) |
| 2 | yt-dlp not found or incompatible version |
| 3 | Network/download error (yt-dlp failed, URL unreachable, private video) |
| 4 | No results (search empty, no subtitles available, channel has no videos) |

On batch operations: exit 0 if at least one URL succeeded. Exit 3 only if every URL failed.

## Pipeline Patterns

Chain subcommands with standard Unix tools for multi-step workflows:

```bash
# Search, filter with jq, extract transcripts
python3 ${CLAUDE_PLUGIN_ROOT}/skills/youtube-research/scripts/yt_research.py search "topic" --count 20 \
  | jq -r '.[].url' \
  | python3 ${CLAUDE_PLUGIN_ROOT}/skills/youtube-research/scripts/yt_research.py transcript --batch - --save -t topic

# Filter search results by duration before processing
python3 ${CLAUDE_PLUGIN_ROOT}/skills/youtube-research/scripts/yt_research.py search "topic" --count 20 \
  | jq '[.[] | select(.duration > 300)]' \
  | jq -r '.[].url' \
  | python3 ${CLAUDE_PLUGIN_ROOT}/skills/youtube-research/scripts/yt_research.py transcript --batch - --save -t topic

# Channel audit: get all videos, then deep metadata for each
python3 ${CLAUDE_PLUGIN_ROOT}/skills/youtube-research/scripts/yt_research.py channel "@someone" --limit 100 \
  | jq -r '.[].url' \
  | python3 ${CLAUDE_PLUGIN_ROOT}/skills/youtube-research/scripts/yt_research.py metadata --batch - > channel_metadata.json
```

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…