Skip to Content
agentic-yt

Agent skills

Install the agentic-yt skill so your agent already knows the commands, the JSON shapes and the error playbook.

A skill is a folder of instructions an agent loads when a task calls for it. The agentic-yt skill is how an agent goes from "I could probably shell out to something" to knowing exactly which command answers which question.

Install

npx skills add crafter-station/agentic-yt

Run it in the project your agent works in. It works with any agent that reads the skills format — Claude Code, Codex, Cursor and others — and puts the skill where that agent looks for it.

The skill drives the CLI, so the agent's environment also needs:

npm install -g agentic-yt          # the ayt command
export AGENTIC_YT_TOKEN=ayt_pat_…  # or run `ayt login` once

What the skill teaches

  • When to reach for it. Any task that mentions a YouTube URL, a video's content, a channel's uploads, "what does this video say", "get me the audio", "show me the frame at…".
  • Which command answers which question. ayt search to find, ayt video to describe, ayt transcript to read, ayt download / clip / frames to produce files — and that a transcript is almost always cheaper than a download when the goal is understanding.
  • To pass --json. And to read results from stdout only.
  • That any URL is an id. No parsing, no resolve call first.
  • The job model. download, clip and frames block by default; --no-wait and ayt jobs get <id> --wait for long work; a repeat request is a cache hit.
  • The error playbook. For each error.code: retry, change the request, or stop and ask the human. The same table as Errors.
  • The limits. Maximum duration, quality cap, three concurrent jobs, the daily quota — so it clips instead of downloading four hours, and does not fan out twenty downloads at once.
  • What needs a human. Signing in, and connecting a YouTube account. The agent is told to stop and ask rather than work around either.

Without the skill

Everything the skill says is also in these docs, in a form agents can fetch:

  • /llms.txt — an index of every page with a one-line description.
  • /llms-full.txt — every page in one file.
  • /openapi.json — the machine-readable contract, if the agent would rather call the API directly.

Pointing an agent at llms.txt in its system prompt is a reasonable substitute when you cannot install files into its environment.

Writing your own instructions

If you maintain your own prompt instead, the three rules that prevent most wasted turns are:

  1. Always --json; never scrape the human-readable output.
  2. On failure, read error.code and error.hint before doing anything else.
  3. Prefer transcript over download, and clip over a full download, whenever the task allows.

On this page