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-ytRun 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` onceWhat 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 searchto find,ayt videoto describe,ayt transcriptto read,ayt download/clip/framesto 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
resolvecall first. - The job model.
download,clipandframesblock by default;--no-waitandayt jobs get <id> --waitfor 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:
- Always
--json; never scrape the human-readable output. - On failure, read
error.codeanderror.hintbefore doing anything else. - Prefer
transcriptoverdownload, andclipover a full download, whenever the task allows.