connect-youtube-developer-platform
Give the user's agents their YouTube channel (videos, stats, comments, uploads) through a small CLI that talks to the YouTube APIs with the user's own Google Cloud project, so every call uses their own free daily quota (10,000 units) and no third-party service. Do every step yourself in Chrome AI with the dev-browser skill; the user only signs in, picks their channel and clicks "Allow" in Google's pages. Talk to the user in their language, short messages, no jargon (never say "OAuth", "client secret", "scope" or "token" to them; say "YouTube access" and "the key").
If you got this skill from a link instead of a local folder, install nothing else from the repo: download scripts/youtube.py and scripts/youtube-oauth.sh with curl -fsSL https://raw.githubusercontent.com/Melvynx/ai-maxxing-skills/main/skills/connect-youtube-developer-platform/scripts/<file> -o <scratch>/<file>, and read another skill it names only when you reach it, from https://raw.githubusercontent.com/Melvynx/ai-maxxing-skills/main/skills/<skill-name>/SKILL.md.
Never print, log or repeat the key's secret, a sign-in code or what youtube.py keeps in ~/.config/youtube-cli/config.json. Browser scripts that read the secret write it straight to a file with writeFile and log only { saved: true }. Ask the user before you accept Google Cloud's terms or publish the app (steps 3 and 6), once for both.
-
Check the tools.
chrome-ai startanddev-browser --helpmust answer (otherwise runsetup-dev-browser), andpython3 --versionmust be 3.9 or newer. If~/.agents/skills/youtube-cli/already exists, runpython3 ~/.agents/skills/youtube-cli/scripts/youtube.py channel: if it answers, tell the user YouTube is already connected and skip to step 10. -
Pick the account: the argument, or the Google account signed in to Chrome AI (open
https://myaccount.google.comin a page namedconnect-youtubeand read the email). If Chrome AI is not signed in to Google, ask the user to sign in there with the account that owns their YouTube channel and say "done". Then openhttps://www.youtube.com/accountand read the channel name, so you can confirm it with the user in one line. -
Find or create the Google Cloud project, in the page
connect-youtube. A project of its own keeps YouTube's quota apart from anything else. Openhttps://console.cloud.google.com/cloud-resource-managerand look for a project namedYouTube CLI: reuse its ID. If there is none, openhttps://console.cloud.google.com/projectcreate, name itYouTube CLI, create it, wait for the notification, and read its ID (theproject=part of the address once it opens). On a first visit, Google Cloud asks for a country and its terms: ask the user before you accept. Read each page withsnapshotForAI()before clicking: the console speaks the user's language and moves its buttons. -
Turn on YouTube: open
https://console.cloud.google.com/flows/enableapi?apiid=youtube.googleapis.com,youtubeanalytics.googleapis.com&project=<id>and confirm. Wait until the page says they are on. -
Set up the sign-in screen: open
https://console.cloud.google.com/auth/overview?project=<id>. If it offers to get started, fill: app nameYouTube CLI, support email = the account, audience External, contact email = the account, tick the Google API Services User Data Policy box, then create. If it is already set up, keep it as it is. -
Keep the access for good: open
https://console.cloud.google.com/auth/audience?project=<id>. If the status is "Testing", click "Publish app" and confirm. A Testing app loses YouTube access every 7 days; published, it keeps it (Google does not review a personal app, it only shows a warning when signing in). -
Create the key: open
https://console.cloud.google.com/auth/clients/create?project=<id>, type Desktop app, nameYouTube CLI, create. In the same browser script, read the client ID and the secret from the dialog that opens and save them without logging them:await writeFile("youtube-client.json", JSON.stringify({ installed: { client_id, client_secret } })); console.log(JSON.stringify({ saved: true, client_id_end: client_id.slice(-30) }));