Skip to content

armgit / brag

Public Imported from GitHub
0

You built it. Now brag. Turn the project you just created into a short, shareable launch video with one command.

Add multi-agent support (Codex, OpenCode, generic adapters)

anukulKunaa6a46ade2f3
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
new file mode 100644
index 0000000..584afbf
--- /dev/null
+++ b/.claude-plugin/marketplace.json
@@ -0,0 +1,16 @@
+{
+ "name": "brag",
+ "description": "You built it. Now brag. Turn the project you just shipped into a short, shareable launch video with one command.",
+ "owner": {
+ "name": "Shunit Haviv",
+ "email": "[email protected]",
+ "url": "https://github.com/shunithaviv"
+ },
+ "plugins": [
+ {
+ "name": "brag",
+ "source": "./",
+ "description": "Turn the current project website into a short, polished, shareable launch video using HyperFrames."
+ }
+ ]
+}
diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json
new file mode 100644
index 0000000..d84c45f
--- /dev/null
+++ b/.claude-plugin/plugin.json
@@ -0,0 +1,12 @@
+{
+ "name": "brag",
+ "description": "Turn the current project into a short, polished, shareable launch video using HyperFrames.",
+ "version": "0.1.0",
+ "author": {
+ "name": "Shunit Haviv",
+ "email": "[email protected]"
+ },
+ "homepage": "https://github.com/latent-spaces/brag",
+ "repository": "https://github.com/latent-spaces/brag",
+ "keywords": ["video", "launch", "hyperframes", "skill"]
+}
diff --git a/.gitignore b/.gitignore
index 342f161..fb4cba5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,27 @@
-node_modules/
-.DS_Store
-Thumbs.db
-brag-output/
-brag-output-*/
-*.mp4
-*.log
+# OS / editor cruft
.DS_Store
+**/.DS_Store
+
+# Python
+__pycache__/
+**/__pycache__/
+*.pyc
+.venv/
+**/.venv/
+.uv-cache/
+
+# Local tooling / machine config
+.playwright-mcp/
+.agents/
+skills-lock.json
+.claude/
+
+# HyperFrames render artifacts + heavy composition sources (never committed)
+**/brag-output*/
+**/renders/
+**/.thumbnails/
+**/.waveform-cache/
+
+# Codex packaging — excluded from the Claude-only initial release
+.codex-plugin/
+CODEX_PLUGIN_FOLLOWUPS.md
diff --git a/AGENT.md b/AGENT.md
index 79e9bc7..53cddb7 100644
--- a/AGENT.md
+++ b/AGENT.md
@@ -1,6 +1,8 @@
-# /brag — Agent-Agnostic Skill
+# /brag
-Turn any project website or app into a short, polished, shareable launch video powered by [Hyperframes](https://hyperframes.heygen.com/).
+You built it. Now let's brag about it.
+
+`/brag` turns the current project website or app into a short, polished, shareable launch video using Hyperframes. It is narrow, opinionated, and fun.
**This file is the single source of truth for the /brag workflow.** It is written for any AI coding agent (opencode, Claude Code, Codex, Cursor, Aider, or any LLM that can execute CLI commands and read files). No plugin-system-specific assumptions.
@@ -72,6 +74,8 @@ When music is selected, include a compact `Music cue guidance` section: read the
## Step 3: Hand off to Hyperframes
+**Prerequisite:** Hyperframes CLI must be installed (`npx hyperframes doctor`).
+
**Read:** `skills/brag/references/step-3-compose.md`
**Read:** `skills/brag/references/audio.md`
diff --git a/README.md b/README.md
index 2359155..56ce553 100644
--- a/README.md
+++ b/README.md
@@ -2,123 +2,80 @@
**You built it. Now brag.**
-Turn your project website into a short, polished, shareable launch video — music, motion, and share copy included. One command, powered by [Hyperframes](https://hyperframes.heygen.com/).
-
[![the /brag launch site — you built it, now brag](docs/assets/hero.png)](https://latent-spaces.github.io/brag/)
-> Forked from [latent-spaces/brag](https://github.com/latent-spaces/brag) by Shunit Haviv. This fork adapts `/brag` to work with **any AI coding agent** — not just Claude Code.
-
-## What this gives you
-
-A `brag-output/` folder with:
-- `brag-plan.md` — the creative concept and storyboard
-- `composition-brief.md` — the brief handed to Hyperframes
-- `composition/` — the Hyperframes video project
-- `brag.mp4` — the rendered video
-- `share-copy.txt` — tweet-ready share text
+`/brag` is a Claude Code skill that turns the project you created into a short, shareable launch video — music, motion, and share copy included. One command, powered by [Hyperframes](https://hyperframes.heygen.com/).
-## Supported agents
-
-| Agent | Install method |
-|---|---|
-| **Claude Code** | [`adapters/claude-code/`](adapters/claude-code/) — `.claude-plugin` manifest |
-| **opencode** | [`adapters/opencode/`](adapters/opencode/) — `opencode.json` config |
-| **Codex, Cursor, Aider, any LLM** | [`adapters/generic/`](adapters/generic/) — paste `AGENT.md` into custom instructions |
-| **Any agent (direct)** | Read [`AGENT.md`](AGENT.md) and follow the workflow step by step |
+The looping video on the [launch site](https://latent-spaces.github.io/brag/) was made by `/brag` on this very repo.
## Install
-### Claude Code
-
```bash
-# Plugin install
/plugin marketplace add latent-spaces/brag
/plugin install brag@brag
-
-# Or copy skill directly
-rsync -a --exclude '.DS_Store' skills/brag/ ~/.claude/skills/brag/
```
-### opencode
+Then run `/brag` inside any project.
-```bash
-# Global install
-git clone https://github.com/anukulKun/brag-cli.git ~/.config/opencode/skills/brag
+<details>
+<summary>No plugin system? Install the skill directly.</summary>
-# Or per-project
-git clone https://github.com/anukulKun/brag-cli.git .opencode/skills/brag
+```bash
+rsync -a --exclude '.DS_Store' skills/brag/ ~/.claude/skills/brag/
```
-### Generic (any agent)
+Restart Claude Code after copying.
+</details>
+
+### Also works with
-1. Read [`AGENT.md`](AGENT.md) into your agent's context or custom instructions.
-2. Ensure the skill assets are accessible (clone this repo or symlink `skills/brag/`).
-3. Verify Hyperframes: `npx hyperframes doctor`
+| Agent | How |
+|---|---|
+| **opencode** | `git clone ... ~/.config/opencode/skills/brag/` or point `opencode.json` at [`adapters/opencode/`](adapters/opencode/) |
+| **Codex, Cursor, Aider, etc.** | Load [`AGENT.md`](AGENT.md) into custom instructions; see [`adapters/generic/`](adapters/generic/) |
## Use it
-```
+From any project directory, ask Claude:
+
+```text
let's /brag
-/brag --tone "fake Series A launch from 2016"
-/brag --tone chaotic --format vertical
```
-### Options
+Or steer the tone:
-| Option | Values | Default |
-|---|---|---|
-| `--tone` | preset or freeform description | inferred |
-| `--format` | `landscape`, `vertical`, `square` | `landscape` |
-| `--duration` | seconds | auto (15-25s) |
-| `--no-music` | flag | music on |
-| `--no-sfx` | flag | sfx on |
-| `--title` | string | inferred from project |
+```text
+/brag --tone "fake Series A launch from 2016"
+```
-Tone presets: `default`, `polished`, `yc-parody`, `chaotic`, `deadpan`, `cinematic`, `app-store`
+You get a `brag-output/` folder with the plan, a composition brief, share copy, and the rendered `brag.mp4`.
## How it works
-1. **Inspect** — reads your project code to understand the app
-2. **Plan** — answers a 9-question rubric, picks a creative angle, storyboards
-3. **Compose** — hands a focused brief to Hyperframes for video generation
-4. **Deliver** — validates, renders `brag.mp4`, and writes share copy
+`/brag` owns the story — the product angle, tone, and which moments to show. It hands a focused brief to [Hyperframes](https://hyperframes.heygen.com/), which builds, times, and renders the video.
## Requirements
+- Claude Code (with skill/plugin support)
- Node.js 22+
- FFmpeg on `PATH`
-- Hyperframes CLI — `npx hyperframes doctor` to verify
+- Hyperframes CLI — `npx hyperframes` (check it with `npx hyperframes doctor`)
-## Repo structure
+## What's in this repo
-```
-brag/
-├── AGENT.md ← Core skill (agent-agnostic, single source of truth)
-├── README.md ← This file
-├── LICENSE
-├── .gitignore
-├── skills/
-│ └── brag/
-│ ├── SKILL.md ← Thin wrapper (references AGENT.md)
-│ ├── references/ ← Step-by-step guides, tone definitions, audio docs
-│ ├── assets/ ← Music tracks + 200+ SFX files
-│ └── scripts/ ← Music cue analyzer (Python)
-├── adapters/
-│ ├── claude-code/ ← .claude-plugin manifest for Claude Code
-│ ├── opencode/ ← opencode.json config for opencode
-│ └── generic/ ← Instructions for any agent without plugin system
-├── examples/ ← Fake product sites (benchmark suite)
-└── docs/ ← Launch site (GitHub Pages)
-```
+- `skills/brag/` — the skill, references, and bundled music + SFX
+- `examples/` — fake product sites used as a benchmark suite
+- `docs/` — the launch site (GitHub Pages)
+- `.claude-plugin/` — plugin manifest + marketplace catalog
+- `adapters/` — config for opencode, Codex, and other agents
## Credits
-- **Original creator:** [Shunit Haviv](https://github.com/latent-spaces/brag) — `/brag` was originally built as a Claude Code skill by [latent-spaces](https://github.com/latent-spaces)
-- **Music:** [ende.app](https://ende.app/en) "Happy Beats / Business Moves"
-- **Sound effects:** [Kenney](https://kenney.nl/)
-- **Video generation:** [Hyperframes](https://hyperframes.heygen.com/)
-- **Fake demo sites:** built with [Impeccable](https://impeccable.style/)
+- Music — [ende.app](https://ende.app/en) "Happy Beats / Business Moves"
+- Sound effects — [Kenney](https://kenney.nl/)
+- Video generation — [Hyperframes](https://hyperframes.heygen.com/)
+- Fake demo sites — built with [Impeccable](https://impeccable.style/)
-## License
+## Contributing
-MIT — see [LICENSE](LICENSE)
+Contributions, ideas, and new demo brags are welcome — open an issue or a PR.
diff --git a/adapters/claude-code/.claude-plugin/marketplace.json b/adapters/claude-code/.claude-plugin/marketplace.json
deleted file mode 100644
index 5b4b26e..0000000
--- a/adapters/claude-code/.claude-plugin/marketplace.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "name": "brag",
- "description": "You built it. Now brag. Turn your project into a short, shareable launch video with one command. Works with any AI coding agent.",
- "owner": {
- "name": "Anukul",
- "url": "https://github.com/anukulKun"
- },
- "plugins": [
- {
- "name": "brag",
- "source": "./",
- "description": "Turn the current project website into a short, polished, shareable launch video using Hyperframes. Forked from latent-spaces/brag."
- }
- ]
-}
diff --git a/adapters/claude-code/.claude-plugin/plugin.json b/adapters/claude-code/.claude-plugin/plugin.json
deleted file mode 100644
index 2a7db04..0000000
--- a/adapters/claude-code/.claude-plugin/plugin.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "name": "brag",
- "description": "Turn the current project into a short, polished, shareable launch video using Hyperframes.",
- "version": "0.2.0",
- "author": {
- "name": "Anukul (adapted from Shunit Haviv / latent-spaces)",
- "url": "https://github.com/anukulKun/brag-cli"
- },
- "homepage": "https://github.com/anukulKun/brag-cli",
- "repository": "https://github.com/anukulKun/brag-cli",
- "keywords": ["video", "launch", "hyperframes", "skill"],
- "skill": "AGENT.md"
-}
diff --git a/skills/brag/SKILL.md b/skills/brag/SKILL.md
index cbbd586..62be900 100644
--- a/skills/brag/SKILL.md
+++ b/skills/brag/SKILL.md
@@ -7,6 +7,147 @@ description: Turn the current project website into a short, polished, shareable
You built it. Now let's brag about it.
-**The canonical skill definition lives in [`AGENT.md`](../../AGENT.md) at the repo root.** This file is a thin wrapper for agent-specific skill loaders that require a `SKILL.md` file inside the skill directory.
+`/brag` turns the current project website or app into a short, polished, shareable launch video using Hyperframes. It is narrow, opinionated, and fun.
-Follow the instructions in `AGENT.md` for the complete workflow. All references, assets, and scripts are relative to this repo root — `skills/brag/references/`, `skills/brag/assets/`, `skills/brag/scripts/`.
+## What this skill does
+
+1. Reads the current project code to understand the app.
+2. Plans a short brag concept specific to this project.
+3. Scripts and storyboards the video.
+4. Hands a focused composition brief to Hyperframes.
+5. Validates, renders, and writes share copy.
+
+## Parsing the invocation
+
+The user may invoke with natural language or flags:
+
+```
+/brag
+/brag --tone chaotic
+/brag --tone polished --format vertical
+/brag this. Make it feel like a ridiculous startup launch.
+```
+
+Parse these options:
+
+| Option | Values | Default |
+|---|---|---|
+| `--tone` | preset or freeform description | inferred |
+| `--format` | `landscape`, `vertical`, `square` | `landscape` |
+| `--duration` | seconds | auto (15-25s) |
+| `--no-music` | flag | music on |
+| `--no-sfx` | flag | sfx on |
+| `--title` | string | inferred from project |
+
+Tone can be a preset (`default`, `polished`, `yc-parody`, `chaotic`, `deadpan`, `cinematic`, `app-store`) or a creative direction such as "fake Series A launch from 2016", "museum exhibit", or "overproduced mobile game ad".
+
+When the user gives freeform tone direction, map it to the nearest preset for pacing and structure, but preserve the user's direction in the plan and composition brief.
+
+---
+
+## Output directory
+
+By default, output goes to `brag-output/`. To avoid overwriting previous runs, use a timestamped directory:
+
+```
+brag-output-2026-05-04-143022/
+```
+
+Use a timestamp when:
+- The user explicitly asks for a new run without overriding previous results
+- A `brag-output/` directory already exists in the project
+
+Generate the timestamp at the start of the run (`YYYY-MM-DD-HHmmss`) and use it consistently for all output paths in that run: plan, brief, composition, render, and share copy.
+
+---
+
+## Step 1: Inspect the project
+
+**Read:** [references/step-1-inspect.md](references/step-1-inspect.md)
+
+Scan the project directory and extract the information needed to plan the brag video.
+
+**Gate:** You can answer all 9 questions in the brag planning rubric.
+
+---
+
+## Step 2: Plan and storyboard
+
+**Read:** [references/step-2-plan.md](references/step-2-plan.md)
+
+Write `<output-dir>/brag-plan.md` (where `<output-dir>` is `brag-output/` or the timestamped variant chosen above). Answer the planning rubric. Commit to a creative angle. Write the beat-by-beat storyboard including scenes, text, timing, transitions, and SFX cues.
+
+When music is selected, include a compact `Music cue guidance` section: read the bundled track's cue preset from `assets/music/cues/` if present, otherwise note cues will be detected at composition time (any track now supports beat sync — see `references/audio.md`). Cue metadata is optional timing guidance only: story, readability, pacing, and product clarity stay primary.
+
+**Gate:** `<output-dir>/brag-plan.md` exists with a full storyboard. Scene durations sum to 15–25 seconds.
+
+---
+
+## Step 3: Hand off to Hyperframes
+
+**Read:** The `hyperframes` skill (all rules apply)
+**Read:** [references/step-3-compose.md](references/step-3-compose.md)
+**Read:** [references/audio.md](references/audio.md)
+
+Write the composition brief and use Hyperframes to create the video implementation in `<output-dir>/composition/`.
+
+`/brag` owns the product angle, source material, storyboard, tone, format, audio selection, music cue guidance, and delivery expectations. Hyperframes owns the concrete composition structure, exact animation timing, animation mechanics, runtime choices, linting rules, and render workflow.
+
+**Gate:** `npx hyperframes lint` passes with zero errors inside `<output-dir>/composition/`.
+
+---
+
+## Step 4: Validate, render, and deliver
+
+**Read:** [references/step-4-deliver.md](references/step-4-deliver.md)
+
+Validate, preview, render to `<output-dir>/brag.mp4`, and write `<output-dir>/share-copy.txt`.
+
+**Gate:** `<output-dir>/brag.mp4` exists. Share copy is written.
+
+---
+
+## Tone system
+
+Seven tone presets ship with `/brag`. Each changes scripting energy, pacing, typography personality, and transition style. Presets are defaults, not limits.
+
+Full definitions: [references/tones.md](references/tones.md)
+
+| Tone | Energy | One-liner |
+|---|---|---|
+| `default` | Playful, clean, postable | The good-vibes default |
+| `polished` | Serious, elegant | For projects that are not jokes |
+| `yc-parody` | Deadpan startup energy | Fake seriousness applied to absurd projects |
+| `chaotic` | Fast, loud, aggressive | Over-the-top and unhinged |
+| `deadpan` | Calm, dry, understated | The joke is that nothing is a joke |
+| `cinematic` | Dramatic, trailer-scale | Big motion, bigger claims |
+| `app-store` | Smooth, feature-card clean | Corporate but not boring |
+
+Always allow a freeform creative direction to refine or override the preset.
+
+---
+
+## Creative laws
+
+These apply to every brag video regardless of tone.
+
+**Short.** 15–25 seconds. Not one second more without a reason.
+
+**Readable.** Keep the pace high through motion and cuts, never by flashing text. Every line a viewer must read holds long enough to read it (short label ~0.8s settled; a sentence ~0.3s per word). Fast-in, then hold — never fast-in, then gone.
+
+**Specific.** The video must feel like it was made for this exact project, not any project.
+
+**Show the thing.** At least one scene must display actual UI, copy, or a key visual from the product. No abstract filler.
+
+**No generic SaaS language.** "Streamline your workflow" is banned. Use the project's actual copy and claims.
+
+**The hook is everything.** The first 2 seconds determine whether someone keeps watching. Plan the hook before anything else.
+
+**Funny earns its place.** Humor should come from the project's absurdity, not from trying to be funny.
+
+**Pattern:**
+```
+Hook (2-3s) → Reveal (2-4s) → 2-3 sharp highlights (5-12s) → Punchline/outro (2-4s)
+```
+
+Adapt this. Not every project needs exactly 3 highlights. The pattern is a starting shape, not a template.