Index of every page on this site: llms.txt
All skills
xai-org avatar

/grok-shorts-brand

@002788b
by SpaceXSI Orgxai-org/xai-cookbook655 stars
211
Run it yourself

Sets up Grok Shorts' brand kit, library, and apps, meaning the colors, font, logo, end card, and starting presenter on every video, the images, clips, and music videos can use, and the apps Grok reads from while it researches. Use when someone wants their shorts on brand, wants to add a logo, screenshots, product clips, or music, or wants Grok to read from GitHub, Slack, Notion, or Linear.

  • 1 file
  • 3.6 KB
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/xai-org/xai-cookbook/grok-shorts-brand

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈103 tokens for metadata: the name and description. ≈807 when used: this file.

Description uses 5.1% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈412 characters, or 5.1%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Brand kit, library, and apps

Set up

Run this before the first command in a conversation. It takes a few seconds once everything is installed.

cd /workspace 2>/dev/null || cd ~
[ -d xai-cookbook ] || git clone -q --depth 1 --filter=blob:none --sparse https://github.com/xai-org/xai-cookbook
git -C xai-cookbook sparse-checkout set examples/grok-shorts
git -C xai-cookbook pull -q --ff-only
bash xai-cookbook/examples/grok-shorts/skills/setup.sh

In the commands below, shorts means the path in the shorts field it prints, usually /workspace/bin/shorts.

Brand kit

New videos start in the brand's colors and font, with its logo in the corner of every frame, its end card after the last line, and its presenter. Videos made before keep their theme until it's changed with shorts theme <project> brand.

  • shorts brand shows the brand kit, or null when there isn't one, with the fonts and looks to pick from.
  • shorts brand website <url> reads a brand off a website: its name, colors, font, look, a call to action with its X account, and its logo, saved as a picture to look at. Show the person what it found, then save it with --save only once they agree.
  • shorts brand set [--name <name>] [--colors "#ff5500,#111111"] [--text "#ffffff"] [--font <id>] [--look <theme>] [--glow on|off] [--watermark on|off] [--end-card on|off] [--end-card-line "Follow @handle"] [--presenter <id>] changes what's given and keeps the rest. A brand kit needs at least one color, and takes up to three.
  • shorts brand logo <file> adds a PNG, JPEG, or WebP logo, and shorts brand remove-logo takes it away.

Library

Grok is told what's in the library, by name, and shows uploads wherever they show what a line is about better than anything it found.

  • shorts library lists the uploads, each with its id.
  • shorts library add <file> [--name "<what it shows>"] adds a PNG, JPEG, or WebP image, an MP4, MOV, or WebM video, or MP3, M4A, or WAV music, up to 300 MB. Name it for what it shows, since that's how Grok picks it.
  • shorts library remove <upload> takes one away.

shorts use-upload <project> <segment> <upload> shows an upload on a segment by hand, and shorts sound <project> --music <upload> plays music under a video. Only add music the person has the rights to.

Apps

Apps let Grok read a link from GitHub, Slack, Notion, Linear, or DeepWiki while it researches, through their remote MCP servers, and only ever read from them.

  • shorts apps lists the apps, with tokens hidden, and the presets to start from.
  • shorts apps add --preset <name> --token <token> adds one from a preset, or --name <name> --url <https://...> [--token] [--about] [--tools <a,b>] any other server. Adding one with the same name changes it.
  • shorts apps test <id> checks that Grok can reach it and lists its tools. shorts apps off <id> and shorts apps on <id> turn it off and on, and shorts apps remove <id> forgets it.

An app's token lends its access to everyone who makes a video on that computer. When you work for several people, like a Team Bot, don't add apps: read the source with the asker's own access and pass it to shorts draft with --file, or --pr for a pull request.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 002788b. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated last month

README badge

README badge for xai-org/xai-cookbook/grok-shorts-brand