You built it. Now brag. Turn the project you just created into a short, shareable launch video with one command.
Add adapters/ for claude-code, opencode, generic
anukulKundec046ee25b1
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsondeleted file mode 100644index 584afbf..0000000--- a/.claude-plugin/marketplace.json+++ /dev/null@@ -1,16 +0,0 @@-{- "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.jsondeleted file mode 100644index d84c45f..0000000--- a/.claude-plugin/plugin.json+++ /dev/null@@ -1,12 +0,0 @@-{- "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/adapters/claude-code/.claude-plugin/marketplace.json b/adapters/claude-code/.claude-plugin/marketplace.jsonnew file mode 100644index 0000000..5b4b26e--- /dev/null+++ b/adapters/claude-code/.claude-plugin/marketplace.json@@ -0,0 +1,15 @@+{+ "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.jsonnew file mode 100644index 0000000..2a7db04--- /dev/null+++ b/adapters/claude-code/.claude-plugin/plugin.json@@ -0,0 +1,13 @@+{+ "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/adapters/generic/README.md b/adapters/generic/README.mdnew file mode 100644index 0000000..2645b64--- /dev/null+++ b/adapters/generic/README.md@@ -0,0 +1,37 @@+# Using /brag with any AI coding agent++The core skill logic lives in a single file: [`AGENT.md`](../../AGENT.md). It is plain markdown with zero plugin-specific assumptions — any AI coding agent can follow it.++## How to load it++### Copy-paste into custom instructions++Open your agent's custom instructions or system prompt settings and paste the contents of `AGENT.md`.++### Reference as a file++If your agent supports loading instructions from a file:++```+path/to/AGENT.md+```++### Claude Code++See [`adapters/claude-code/`](../claude-code/) for the `.claude-plugin` manifest. Install via:++```bash+rsync -a --exclude '.DS_Store' skills/brag/ ~/.claude/skills/brag/+cp adapters/claude-code/.claude-plugin/* ~/.claude/plugins/brag/+```++### opencode++See [`adapters/opencode/`](../opencode/) for the `opencode.json` config. Point your `opencode.json` at this repo's `skills/` directory, or copy the skill folder into `.opencode/skills/`.++### Cursor, Codex, Aider, etc.++1. Read `AGENT.md` and follow the steps.+2. Ensure the project has access to the `/brag` skill assets: clone or symlink this repo, or copy `skills/brag/` into your working directory.+3. Run `npx hyperframes doctor` to verify Hyperframes is available.+4. Invoke by saying `/brag` or "make a launch video".diff --git a/adapters/opencode/opencode.json b/adapters/opencode/opencode.jsonnew file mode 100644index 0000000..b43892f--- /dev/null+++ b/adapters/opencode/opencode.json@@ -0,0 +1,6 @@+{+ "$schema": "https://opencode.ai/config.json",+ "skills": {+ "paths": ["."]+ }+}diff --git a/skills/brag/SKILL.md b/skills/brag/SKILL.mdindex 62be900..cbbd586 100644--- a/skills/brag/SKILL.md+++ b/skills/brag/SKILL.md@@ -7,147 +7,6 @@ description: Turn the current project website into a short, polished, shareableYou 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.+**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.-## 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.+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/`.