Communitygithub.com

one1taptech-web/youtube-video-studio

End-to-end YouTube long video - research trending searches in the niche, pick an idea, write the script and shot list, create the video folders on the user's computer, collect the footage they shoot, edit a 16:9 video in the One Tap Tech style, make the thumbnail and metadata, and publish with the YouTube Data API. Use for \"make a full YouTube video\", \"from idea to upload\".

What is youtube-video-studio?

youtube-video-studio is a Claude Code agent skill that end-to-end YouTube long video - research trending searches in the niche, pick an idea, write the script and shot list, create the video folders on the user's computer, collect the footage they shoot, edit a 16:9 video in the One Tap Tech style, make the thumbnail and metadata, and publish with the YouTube Data API. Use for \"make a full YouTube video\", \"from idea to upload\".

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/one1taptech-web/youtube-video-studio/tree/HEAD/youtube-video-studio

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

YouTube Video Studio

One flow from idea to a published long video. It works with two companion skills:

  • youtube-idea-research - the search research + scripting engine (Phase A-B)
  • raw-to-reel - the free local editing engine (Phase E), used here in 16:9 mode Load each with the Skill tool when its phase starts. If one isn't installed, tell the user to add it (it's part of this set) and stop at that phase; don't improvise a weaker version.

Rules

  • Ask questions at each gate below (AskUserQuestion, max 4 per call, recommended option first). If the user is away, take the recommended defaults, say so, and stop at gates that publish or that can't be undone.
  • Facts in scripts must be true and checked (search when unsure). No fake stats, no copyrighted music/logos/characters.
  • Editing rules from raw-to-reel apply: never filter the speaker, never move them on screen, nothing over the face, calm pacing, sound effects always quieter than the voice, style frames approved before rendering, render in parts with QA on every part, then merge + final QA + the independent QA agent before sending.
  • No branding by default: no "One Tap Tech" or any other brand/creator name or logo in the video or thumbnail, and no "Edited by" badge. Use a name, logo or series name only when the user gives their own.
  • Publishing is public and permanent: always get an explicit "yes, publish/schedule" with the final title, privacy and time shown.
  • Keep the user's Google secrets (client_secret.json, tokens) only in ~/.ytkit/ on their computer. Never paste them into chat, memory, docs or skills.

Phase A - Research (skill: youtube-idea-research, Steps 1-3)

Gate A: user picks one idea (show the ranked table + your pick with reasons).

Phase B - Script + shot list (youtube-idea-research Step 4, long-video format)

Add for production:

  • Shot list: A-roll talking takes (landscape 16:9, eye level, light facing the face, plain background, mic close; one file per chapter is easiest), screen recordings needed (phone: Control Centre → Screen Recording; Mac: Cmd+Shift+5; Windows: Win+Alt+R), photos/screenshots, any B-roll.
  • Room photo: one photo of the empty room/background from exactly where the camera stands (used as the real background behind the cutout).
  • File naming: A01_hook.mov, A02_intro.mov, A03_step1.mov… and S01_<what>.mp4 for screen recordings, so the edit can match them to chapters. Gate B: user approves the script (or edits). Re-send the full updated script after changes.

Phase C - Folders on the user's computer

Video folder layout (created only if missing; never move/rename/delete their files):

<Root>/00_Add_Raw_Videos/
<Root>/01_Videos/<VNN_Short_Name>/01_Raw_Talking_Reel  02_Raw_Talking_YouTube  03_Screen_Recordings_Demo  04_Voice_Clips
                                   05_Photos_Screenshots  06_Script  07_Thumbnails  08_Final_Reel  09_Final_Short  10_Final_YouTube  11_Publishing
<Root>/02_Brand_Assets  03_Music_SFX  04_Reference_Packs  06_Posted_Archive

How: ask once where <Root> should be (default Documents/CreatorStudio, or their existing work folder).

  • Desktop app linked: device_request_folder_access for the parent folder, then create the folders with device_bash mkdir -p when present, otherwise with device_commit_files writing a small README.txt into each folder (that creates the folder). Put the approved script into 06_Script/script.md.
  • Claude Code on their computer: mkdir -p directly.
  • Neither: tell them the exact folder names to create, or offer a zip to download. Then tell the user plainly, offering both ways: "Shoot the takes in the shot list. Then either put them in 02_Raw_Talking_YouTube (talking) and 03_Screen_Recordings_Demo (screens), or upload them here in the chat - whichever is easier. Files too big for the chat go in the folders. Tell me when they're in." Save a short status note in 11_Publishing/status.md.

Phase D - Collect footage

When the user says it's ready, take the footage from wherever they put it - both ways are fine, also mixed:

  • Uploaded in the chat: use the attached files directly.
  • In the folders: device_list_dir the folders, then device_stage_files (≤400 MB per file; ask them to export at 1080p if bigger). Check every shot in the shot list is there (match names; ask about missing ones, again offering chat upload or the folder).

Phase E - Edit (skill: raw-to-reel, in 16:9)

Use raw-to-reel Steps 0-7 with these long-video settings:

  • Footage: whatever Phase D collected, from the video folders or uploaded in the chat (the user's choice).
  • Questions (raw-to-reel Step 2): the platform is already known (YouTube long video), so don't ask it. Still ask Round 1's reference video, goal + hook and layout, and only the Round 2 questions that matter (language, background + white outline, music, captions). The room photo from the shot list answers the background question unless they want another one.
  • The long video is always landscape 16:9, 1920×1080 (YouTube's standard 1080p): "canvas": "16:9", "platform": "youtube_long", "fps": 30, "fit": "cover" (landscape takes) or "contain" (vertical takes). Any Short cut from it is portrait 9:16, 1080×1920 ("canvas": "9:16", "platform": "youtube_short"). Never deliver a long video in portrait or a Short in landscape.
  • Tutorial layout (unless a reference video says otherwise): "stage": {"bg_image": "<photo of their empty room>", "x": 0.5} for a real background, or "bg": "auto" for a dark colour that contrasts with their clothes; white rim only if they said yes to the outline → speaker centred, cut out; screen recordings as card at pos: "left"; explanations as steps/title at pos: "right"; a tag top-left with a series name only if the user has one; image top-right only for their own logo. Never leave the left side empty for long: every chapter shows a demo, screen or animation there.
  • Hook (0-15 s): the result first (demo card), then the promise in title/kinetic.
  • Chapter titles: a title at pos: "top" for 2 s at each chapter start. Record the chapter start times for the description.
  • End screen (last 5-20 s, YouTube's end-screen window): the endcard (platform youtube_long makes it "LINK IN THE / PINNED COMMENT" at the top over the blurred video), so the lower area stays clear for YouTube's end-screen elements (subscribe, next video) added in Studio. A subscribe button before it is optional. The end card stays to the last frame.
  • Captions: usually off in the video for long-form (upload the .srt instead), unless the user wants burned-in captions.
  • Optional Short: cut the best 30-60 s as a 9:16 version with raw-to-reel ("platform": "youtube_short"), ending on the "LINK IN THE / PINNED COMMENT" end card over the blurred speaker. Gate E: style frames approved → parts → render-part + qa-part for every part (fix and re-render only failed parts) → merge → qa PASS → independent QA agent APPROVED → send the video for review (save it to 10_Final_YouTube, and the Short to 09_Final_Short; large files go in the folder, not the chat). For changes: re-render only the affected parts, then merge, QA and the QA agent again.

Phase F - Thumbnail + metadata

  • Thumbnail: first describe 2-3 concepts in words (big text 2-4 words, which frame/emotion, colours) and let the user choose. Then build it 1280×720 JPG under 2 MB: pick a sharp, expressive frame from the A-roll (both arms in frame, no cut-off limbs), cut out with the same matte, big bold text (Montserrat Black/Inter ExtraBold), max 2 colours + white, text never over the face, no borders. Check it at 160×90 (phone size) for readability before sending.
  • Title: exact top search phrase first, then the hook (≤ 70 characters shown).
  • Description: line 1-2 use the search words in natural sentences and say what the viewer gets; then links (e.g. downloads), steps, chapters (0:00 Intro + the recorded chapter times; first must be 0:00, at least 3, each ≥ 10 s), 3-5 hashtags.
  • Tags: 10-15 from the research phrases (search phrase first). Category 28 (Science & Technology) or the right one; audience "not made for kids" unless it is.
  • AI disclosure: set contains_synthetic_media true only if realistic AI-generated people/places/events appear. Save everything in 11_Publishing/ (description.txt, job.json). Gate F: user approves title, thumbnail, description, privacy and the publish time.

Phase G - Publish with the YouTube Data API

Write ytupload.py from the Appendix to the user's computer (e.g. <Root>/scripts/), because it needs their Google sign-in and internet to googleapis.com. Run it with device_bash or Claude Code (Python 3, standard library only). First time: the one-time setup in Help → "YouTube API key". A One Tap Tech Creator Kit sign-in in ~/.creator-kit/ is reused automatically. Two ways, choose with the user:

  1. Recommended - "update" mode: the user uploads the video file as Private in YouTube Studio or the YouTube app (title can be just "V08"), gives you the link/ID; then job.json with "mode": "update" sets title, description, tags, thumbnail, playlist, language and the schedule (publish_at UTC, e.g. 2026-12-01T13:30:00Z = 7:00 PM IST). The video goes public at that time. This avoids the API upload lock.
  2. "upload" mode: uploads the file through the API. Videos uploaded through an unverified Google project are locked to Private by YouTube and can't be made public until the project passes YouTube's API audit. Use it only for projects that passed the audit, or for private review copies. Run python3 ytupload.py job <Root>/01_Videos/<V>/11_Publishing/job.json, then read the CHECK line (link, privacy, publishAt, title) and verify it matches what the user approved. Add the pinned comment and end-screen elements in YouTube Studio (no API for end screens; do it in the browser with the user's OK). Report the link and schedule.

job.json example:

{"mode": "update", "video_id": "AbC123xyz", "title": "iPhone Battery Drain Fix - 1 Setting Saves 20% | Automation 8/100",
 "description_file": "description.txt", "tags": ["iphone battery drain fix", "iphone battery saving tips"], "category_id": "28",
 "language": "en", "audio_language": "hi", "privacy": "private", "publish_at": "2026-12-01T13:30:00Z",
 "thumbnail": "../07_Thumbnails/thumbnail.jpg", "playlist_id": "", "made_for_kids": false, "contains_synthetic_media": false}

Help - step by step when stuck

YouTube API key (one time, free) - do it with the user, in their browser when a browser tool is available

  1. Open https://console.cloud.google.com and sign in with the Google account that owns the YouTube channel. Accept the terms if asked (no billing needed).
  2. Top bar → project picker → New project → name it "YouTube Uploader" → Create, then make sure it's selected.
  3. Menu → APIs & Services → Library → search YouTube Data API v3 → Enable.
  4. Menu → Google Auth Platform (older screens: "OAuth consent screen") → Get started → App name "YouTube Uploader", support email = your email → Audience External → contact email → agree → Create.
  5. Audience → under Test users → Add users → your own Gmail → Save. (Optional, to stop the weekly sign-out: Audience → Publish app → In production. Google will then show an "unverified app" warning at sign-in, which is fine for your own channel.)
  6. Clients (or Credentials → Create credentials → OAuth client ID) → Create client → Application type Desktop app → name "uploader" → Create → Download JSON.
  7. Rename the file to client_secret.json and put it in ~/.ytkit/ (Mac/Linux: your home folder → .ytkit; Windows: C:\Users\<you>\.ytkit\). Hidden folder on Mac: Cmd+Shift+. shows it.
  8. Run python3 ytupload.py connect → the browser opens → pick the channel's account → "Google hasn't verified this app" → Continue (it's your own app) → tick all YouTube permissions → Continue → "Done" page. Then python3 ytupload.py check shows your channel name.

Common problems

  • "Access blocked: app has not completed verification" / error 403 access_denied: your Gmail isn't in Test users (step 5) or you picked a different Google account.
  • "Google sign-in expired" after a week: apps in Testing get a 7-day sign-in. Run connect again, or Publish the app (step 5).
  • "redirect_uri_mismatch": the client isn't a Desktop app. Create a Desktop app client (step 6).
  • "No refresh token": remove the app at https://myaccount.google.com/permissions and run connect again.
  • Upload stays Private: expected for unverified projects (see Phase G). Use update mode, or apply for the audit with YouTube's "API Services - Audit and Quota Extension" form.
  • quotaExceeded: daily limits reset at midnight Pacific time (1:30 PM IST in winter, 12:30 PM IST in summer). Google's current docs give uploads their own 100/day limit and 10,000 units/day for other calls; check APIs & Services → Quotas for your project.
  • Thumbnail fails (403): custom thumbnails need a verified channel: verify with your phone at https://www.youtube.com/verify. Keep it JPG under 2 MB, 1280×720.
  • Python not found: Mac: xcode-select --install or install from python.org; Windows: install from python.org and tick "Add python.exe to PATH", then use py ytupload.py ….
  • Desktop app can't reach the computer: wake it, check it's online, open the Claude desktop app, then try again.

Appendix - ytupload.py (write verbatim)

ytupload.py

#!/usr/bin/env python3
"""ytupload - YouTube Data API v3 with Python's standard library only (Mac / Windows / Linux).
  python3 ytupload.py connect                 one-time Google sign-in (opens the browser), saves a refresh token
  python3 ytupload.py check                   shows the connected channel
  python3 ytupload.py job <job.json>          upload or update a video (title, description, tags, thumbnail, schedule, playlist)
Secrets live in ~/.ytkit/ (client_secret.json + token.json). An existing One Tap Tech Creator Kit sign-in in ~/.creator-kit/ is reused.
job.json: {"mode": "upload"|"update", "video_id": "", "file": "", "title": "", "description_file": "", "tags": [],
           "category_id": "28", "language": "en", "audio_language": "hi", "privacy": "private|unlisted|public",
           "publish_at": "2026-12-01T13:30:00Z", "thumbnail": "", "playlist_id": "", "made_for_kids": false,
           "contains_synthetic_media": false, "notify_subscribers": true}
"""
import json, os, sys, time, urllib.request, urllib.parse, urllib.error, http.server, webbrowser, secrets, threading

HOME = os.path.expanduser("~"); CONF = os.path.join(HOME, ".ytkit"); OLD = os.path.join(HOME, ".creator-kit")
SCOPES = "https://www.googleapis.com/auth/youtube.upload https://www.googleapis.com/auth/youtube"
API = "https://www.googleapis.com/youtube/v3"
def die(m): print("ERROR:", m); sys.exit(1)

def paths():
    for d, tok in ((CONF, "token.json"), (OLD, "youtube.token.json")):
        if os.path.exists(os.path.join(d, "client_secret.json")): return os.path.join(d, "client_secret.json"), os.path.join(d, tok)
    return os.path.join(CONF, "client_secret.json"), os.path.join(CONF, "token.json")

def client():
    cs, _ = paths()
    if not os.path.exists(cs): die("No client_secret.json. Put the file you downloaded from Google Cloud in %s (see the skill's Help: 'YouTube API key')." % CONF)
    c = json.load(open(cs)); c = c.get("installed") or c.get("web")
    if not c: die("client_secret.json is not a 'Desktop app' OAuth client. Create one of type Desktop app.")
    return c

def connect():
    c = client(); os.makedirs(CONF, exist_ok=True); state = secrets.token_urlsafe(16); got = {}
    class H(http.server.BaseHTTPRequestHandler):
        def do_GET(self):
            q = urllib.parse.parse_qs(urllib.parse.urlparse(self.path).query); got.update({k: v[0] for k, v in q.items()})
            self.send_response(200); self.send_header("Content-Type", "text/html"); self.end_headers()
            self.wfile.write(b"<h2>Done. You can close this tab and go back.</h2>")
        def log_message(self, *a): pass
    srv = http.server.HTTPServer(("127.0.0.1", 0), H); port = srv.server_address[1]; redirect = "http://127.0.0.1:%d" % port
    url = c.get("auth_uri", "https://accounts.google.com/o/oauth2/auth") + "?" + urllib.parse.urlencode({"client_id": c["client_id"], "redirect_uri": redirect,
          "response_type": "code", "scope": SCOPES, "access_type": "offline", "prompt": "consent", "state": state})
    print("Opening the browser for Google sign-in. If it doesn't open, paste this link into a browser on THIS computer:\n" + url)
    webbrowser.open(url); t = threading.Thread(target=srv.handle_request); t.start(); t.join(300); srv.server_close()
    if got.get("state") != state or "code" not in got: die("Sign-in was cancelled or timed out (%s)." % got.get("error", "no answer in 5 min"))
    d = urllib.parse.urlencode({"code": got["code"], "client_id": c["client_id"], "client_secret": c["client_secret"], "redirect_uri": redirect, "grant_type": "authorization_code"}).encode()
    tok = json.load(urllib.request.urlopen(urllib.request.Request(c.get("token_uri", "https://oauth2.googleapis.com/token"), data=d)))
    if "refresh_token" not in tok: die("Google returned no refresh token. Remove the app at myaccount.google.com/permissions and connect again.")
    cs, tp = paths()
    if os.path.dirname(cs) != CONF:  # keep everything in ~/.ytkit
        import shutil; shutil.copy(cs, os.path.join(CONF, "client_secret.json")); tp = os.path.join(CONF, "token.json")
    json.dump(tok, open(tp, "w")); os.chmod(tp, 0o600); print("CONNECTED."); check()

def token():
    c = client(); _, tp = paths()
    if not os.path.exists(tp): die("Not connected yet: run  python3 ytupload.py connect")
    tk = json.load(open(tp))
    d = urllib.parse.urlencode({"client_id": c["client_id"], "client_secret": c["client_secret"], "refresh_token": tk["refresh_token"], "grant_type": "refresh_token"}).encode()
    try: return json.load(urllib.request.urlopen(urllib.request.Request(c.get("token_uri", "https://oauth2.googleapis.com/token"), data=d)))["access_token"]
    except urllib.error.HTTPError as e: die("Google sign-in expired or was revoked (%s). Run: python3 ytupload.py connect  (Testing-mode apps expire every 7 days)." % e.code)

_A = {}
def call(url, method="GET", body=None, headers=None, raw=None):
    if not _A: _A["Authorization"] = "Bearer " + token()
    h = dict(_A); h.update(headers or {}); data = raw if raw is not None else (json.dumps(body).encode() if body is not None else None)
    if body is not None: h["Content-Type"] = "application/json; charset=UTF-8"
    try: return urllib.request.urlopen(urllib.request.Request(url, method=method, data=data, headers=h))
    except urllib.error.HTTPError as e:
        msg = e.read().decode(errors="replace")
        if "quotaExceeded" in msg or "uploadLimitExceeded" in msg: die("YouTube daily quota/upload limit reached. Try again after midnight Pacific time.")
        die("%s %s -> %s %s" % (method, url.split("?")[0], e.code, msg[:600]))

def check():
    it = json.load(call(API + "/channels?part=snippet,statistics&mine=true")).get("items", [])
    if not it: die("This Google account has no YouTube channel.")
    c = it[0]; print("CHANNEL:", c["snippet"]["title"], "| id", c["id"], "| subscribers", c["statistics"].get("subscriberCount"))

def job(path):
    j = json.load(open(path, encoding="utf-8")); base = os.path.dirname(os.path.abspath(path)); P = lambda p: p if os.path.isabs(p) else os.path.join(base, p)
    def fields(snip, st):
        if j.get("title"): snip["title"] = j["title"][:100]
        if j.get("description_file"): snip["description"] = open(P(j["description_file"]), encoding="utf-8").read().strip()[:5000]
        if "tags" in j: snip["tags"] = j["tags"]
        snip["categoryId"] = str(j.get("category_id", snip.get("categoryId", "28")))
        for k, f in (("defaultLanguage", "language"), ("defaultAudioLanguage", "audio_language")):
            if j.get(f): snip[k] = j[f]
        if j.get("privacy"): st["privacyStatus"] = j["privacy"]
        if j.get("publish_at"): st["privacyStatus"] = "private"; st["publishAt"] = j["publish_at"]
        st["selfDeclaredMadeForKids"] = bool(j.get("made_for_kids", False)); st["containsSyntheticMedia"] = bool(j.get("contains_synthetic_media", False))
    if j.get("mode", "update") == "update":
        vid = j.get("video_id") or die("video_id is required for mode update")
        it = json.load(call(API + "/videos?part=snippet,status&id=" + vid))["items"] or die("video %s not found on this channel" % vid)
        snip = {k: it[0]["snippet"][k] for k in ("title", "description", "tags", "categoryId", "defaultLanguage", "defaultAudioLanguage") if k in it[0]["snippet"]}
        st = {k: it[0]["status"][k] for k in ("privacyStatus", "publishAt", "embeddable", "license", "publicStatsViewable", "selfDeclaredMadeForKids", "containsSyntheticMedia") if k in it[0]["status"]}
        fields(snip, st); call(API + "/videos?part=snippet,status", "PUT", {"id": vid, "snippet": snip, "status": st}); print("UPDATED", vid)
    else:
        fp = P(j.get("file") or die("file is required for mode upload"))
        if not os.path.isfile(fp): die("file not found: " + fp)
        snip, st = {}, {"privacyStatus": "private", "embeddable": True, "license": "youtube", "publicStatsViewable": True}; fields(snip, st)
        size = os.path.getsize(fp)
        r = call("https://www.googleapis.com/upload/youtube/v3/videos?uploadType=resumable&part=snippet,status&notifySubscribers=%s" % ("true" if j.get("notify_subscribers", True) else "false"),
                 "POST", {"snippet": snip, "status": st}, {"X-Upload-Content-Type": "video/*", "X-Upload-Content-Length": str(size)})
        loc = r.headers["Location"]; print("Uploading %.1f MB ..." % (size / 1e6), flush=True)
        with open(fp, "rb") as f: vid = json.load(call(loc, "PUT", raw=f, headers={"Content-Type": "video/*", "Content-Length": str(size)}))["id"]
        print("UPLOADED", vid)
    if j.get("thumbnail"):
        tp = P(j["thumbnail"]); ct = "image/png" if tp.lower().endswith(".png") else "image/jpeg"
        if os.path.getsize(tp) > 2 * 1024 * 1024: print("NOTE: thumbnail is over 2 MB; YouTube may refuse it (save as JPG).")
        call("https://www.googleapis.com/upload/youtube/v3/thumbnails/set?videoId=" + vid, "POST", raw=open(tp, "rb").read(), headers={"Content-Type": ct}); print("THUMBNAIL set")
    if j.get("playlist_id"):
        call(API + "/playlistItems?part=snippet", "POST", {"snippet": {"playlistId": j["playlist_id"], "resourceId": {"kind": "youtube#video", "videoId": vid}}}); print("PLAYLIST added")
    c = json.load(call(API + "/videos?part=snippet,status&id=" + vid))["items"][0]
    print("CHECK https://youtu.be/%s | %s | publishAt: %s | %s" % (vid, c["status"]["privacyStatus"], c["status"].get("publishAt"), c["snippet"]["title"]))
    if j.get("mode") == "upload" and j.get("privacy") == "public" and c["status"]["privacyStatus"] != "public":
        print("NOTE: YouTube kept it Private: API uploads from unverified (unaudited) Google projects are locked to Private. See Help: 'Upload stays Private'.")

if __name__ == "__main__":
    c = sys.argv[1] if len(sys.argv) > 1 else ""
    if c == "connect": connect()
    elif c == "check": check()
    elif c == "job" and len(sys.argv) > 2: job(sys.argv[2])
    else: print(__doc__)

Related Skills