youtube-skills
AGENTS.md82 starsChanged 4 months agoMITView on GitHub
This file is for any Codex agent working on this repository. Read it before making changes. Conventions here are mandatory unless the user asks otherwise. - Single source of truth: .codex-plugin/plugin.json, .agents/plugins/marketplace.json, .claude-plugin/plugin.json, and .claude-plugin/marketplace.json. Plugin manifests must always match on package name and version; marketplace entries must point to the same package; author, license, homepage, and the public skill-bundle description must stay aligned. - Keep AGENTS.md and CLAUDE.md aligned when changing shared project rules. Codex-specific workflow details belong here;…
- Reads credentials
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,774 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- youtube-marketingSkill
- yt-audience-insightsSkill
- yt-channel-optimizerSkill
- yt-community-post-writerSkill
- yt-content-plannerSkill
- yt-description-writerSkill
- yt-hook-scripterSkill
- yt-repurposerSkill
- yt-thumbnail-briefSkill
- yt-title-optimizerSkill
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Keep AGENTS.md and CLAUDE.md aligned when changing shared project rules.
- Distinctive: line 23
Only bump MINOR or MAJOR when the user explicitly asks for a higher rank ("this is minor", "make it 2.0", "bump major").
- Distinctive: line 26
After bumping, two steps are required:
- Very specific: line 38
Verify locally before push: build never breaks, no broken refs in SKILL.md, library smoke import passes.
- Distinctive: line 47
Always include a "Not for X (use Y)" disambiguation sentinel when a skill overlaps with a sibling.
- Very specific: line 94
YouTube is video-only: Every published post REQUIRES a single video the user supplies.
- Distinctive: line 110
Don't name competing third-party schedulers in committed files.
- Distinctive: line 120
After editing any copied file, run the sync script before testing or committing.
- Distinctive: line 130
Run from repo root:
- Distinctive: line 148
If any of these fail, do not push.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project conventions - youtube-skills
This file is for any Codex agent working on this repository. Read it before making changes. Conventions here are mandatory unless the user asks otherwise.
Versioning
- Single source of truth:
.codex-plugin/plugin.json,.agents/plugins/marketplace.json,.claude-plugin/plugin.json, and.claude-plugin/marketplace.json. Plugin manifests must always match on package name and version; marketplace entries must point to the same package; author, license, homepage, and the public skill-bundle description must stay aligned. - Keep
AGENTS.mdandCLAUDE.mdaligned when changing shared project rules. Codex-specific workflow details belong here; Claude-specific details belong inCLAUDE.md. - Codex marketplace install uses
.codex-marketplace/youtube-skills/. Do not edit that generated package by hand. Update the root files first, then runpython3 scripts/sync_codex_marketplace.py. - Default: bump the PATCH segment (3rd level,
0.0.X). This is the automatic behavior for every shippable commit, regardless of how large the diff feels. Skill renames, lib API breaks, new features: still PATCH by default. - Only bump MINOR or MAJOR when the user explicitly asks for a higher rank ("this is minor", "make it 2.0", "bump major"). Do not promote on your own initiative even if semver textbook says so.
- After bumping, two steps are required:
- Tag the commit:
git tag -a v<X.Y.Z> -m "..."+git push origin v<X.Y.Z> - Publish a GitHub Release for the tag:
gh release create v<X.Y.Z> --title "v<X.Y.Z>" --notes "<changelog>" --latestA tag alone does NOT update the README release badge. The shields.io badge reads from the Releases API, not from raw tags. Skipping step 2 leaves it stale.
- Tag the commit:
Commits
- Primary author must be Sergey: every
git commitneeds--author="Sergey Bulaev <s@bulaev.org>". Verify withgit log -1 --format='%an <%ae>'before pushing. - Co-author trailers are fine when appropriate.
- Verify locally before push: build never breaks, no broken refs in
SKILL.md, library smoke import passes.
Skill bundle invariants
- Exactly 9 skills. Adding requires merging or splitting elsewhere to stay at 8. The number is announced in plugin manifests and the README.
- Frontmatter
description:target <= 400 chars (some bundle-heavy skills land slightly higher when their scope is genuinely broad; keep under 510). Always include a "Not for X (use Y)" disambiguation sentinel when a skill overlaps with a sibling. - No em dashes anywhere in
description:fields. Em dashes in body prose are allowed for table separators and list dividers only. No em dashes inside the literal fill-in lines of any title or hook skeleton. - Skill names are public surface. Renaming a skill is a major version bump and
requires updating: plugin manifests, marketplace entries, root
SKILL.mdbundle list, README skill table, and everyyt-<name>cross-reference in sibling SKILL.md files.
Voice rules + reference layout
- Canonical voice rules live at root
references/voice-rules.md. Skill-local "Hard rules" sections must only contain skill-specific overrides and start with:Global voice rules: see root SKILL.md Voice rules. - Other root-level references:
references/hook-formulas.md(10 YouTube title and hook formulas),references/algorithm-heuristics.md, andreferences/thumbnail-principles.md. references/untrusted-content.mdis the canonical data-is-not-instructions rule for every skill that reads text a stranger wrote. Each such skill carries a short## Untrusted contentsection that cites it; the full rule lives in one place.scripts/check_untrusted_rule.pyenforces both, driven by aREQUIREDset of skill names, so renaming or adding a reading skill means updating that set.references/voice-profile.mdship blank and the user fills them. A filled one is personal data, not a credential:check_no_secrets.pyfails on any tracked copy markedfilled: yes, andsync_codex_marketplace.pytakes both from HEAD rather than the working tree and refuses to copy a filled one.- A project
.envmay set credentials only.lib/_env.pykeeps an allowlist (_DOTENV_VARIABLES); the custom-poster variable the DIY tier executes must come from the launch environment, never from a file that can arrive with a clone. No module may callload_dotenv()itself, and every authenticated request passesallow_redirects=Falsebecause the Publora key rides a custom header and the Apify token a query parameter, neither of whichrequestsstrips across hosts.scripts/check_security_boundaries.pyenforces all three. - Skill-local references live in
skills/<skill>/references/. Cite from the skill with barereferences/X.md. Cite root from skills with../../references/X.md.
Layer separation
- Write layer (Publora):
lib/publora_client.py.create_post,get_upload_url+upload_to_s3,update_post,publish_video(the full draft -> upload -> schedule flow),set_thumbnail, andlist_connections/youtube_connections. Skills calllib.publish(kind, draft_text, target_url, ...). Real endpoints:POST /create-post,POST /get-upload-url,PUT /update-post/:postGroupId, withplatforms: ["youtube-<id>"](array of STRING ids), headerx-publora-key. - YouTube is video-only. Every published post REQUIRES a single video the
user supplies.
kind="video"/kind="short"auto-upload only when avideo_pathis passed; otherwise they fall back to a manual upload brief. - Community posts have no Publora endpoint, so
kind="community"always routes to a manual copy-paste block. - The thumbnail needs a postGroupId, so it is attached via
update-post, never oncreate-post. The image must be a Publora-tracked asset from Publora's dedicated YouTube thumbnail endpoint (verified channel). That image upload is out of band for this bundle (Publora dashboard or the dedicated endpoint; the genericget-upload-urlflow is not accepted for thumbnails), soset_thumbnail()/publish_video(thumbnail=...)only do the attach step given an existing{mediaId, url}. Do not claim a one-call thumbnail upload. - The read layer is Google's own API, not Apify.
lib/youtube_client.pyreadsYOUTUBE_API_KEYand calls the YouTube Data API v3. Keep the paste fallback everywhere; the key is optional. This bundle has never readAPIFY_TOKEN. - Don't name competing third-party schedulers in committed files.
Codex marketplace package
- Codex requires marketplace entries to point at a nested plugin directory. The root remains the Claude-facing source layout.
.agents/plugins/marketplace.jsonpoints to.codex-marketplace/youtube-skills.scripts/sync_codex_marketplace.pycopies the root Codex manifest,SKILL.md,skills/,references/,lib/,scripts/,requirements.txt,.env.example, andLICENSEinto the hidden package.- After editing any copied file, run the sync script before testing or committing.
testing/ is gitignored
testing/is the local scratch directory: API keys, sample responses, validation reports. Never write secrets abovetesting/(the rest of the repo is public). The.gitignorerule fortesting/is load-bearing.
Validation before push
Run from repo root:
python3 -c "from lib import publish, parse_youtube_url, PubloraClient; print('OK')"
python3 scripts/sync_codex_marketplace.py
ls skills/ | wc -l # must equal 9
python3 scripts/check_frontmatter.py # parses; a dir count does not prove a skill loads
python3 scripts/check_no_secrets.py # .gitignore does not stop a rename of a tracked file
python3 scripts/check_markdown_references.py # run from inside the repo; it anchors on its own path
python3 scripts/check_untrusted_rule.py # the rule must sit in the skills, not only in references/
python3 scripts/check_text_encoding.py # a bare read_text() is cp1252 on Windows, mojibake or a crash
python3 scripts/check_security_boundaries.py # .env may not name an executable; no authenticated redirects
python3 -m json.tool .codex-plugin/plugin.json >/dev/null
python3 -m json.tool .agents/plugins/marketplace.json >/dev/null
python3 -m json.tool .claude-plugin/plugin.json >/dev/null
python3 -m json.tool .claude-plugin/marketplace.json >/dev/nullIf any of these fail, do not push.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

