|
| 1 | +--- |
| 2 | +title: GitHub Copilot CLI |
| 3 | +description: "Set up HyperFrames with GitHub Copilot CLI — install skills, invoke them with slash commands, and render video from the terminal." |
| 4 | +--- |
| 5 | + |
| 6 | +GitHub Copilot CLI brings AI-powered coding assistance to your terminal. HyperFrames skills teach it how to write correct compositions, GSAP timelines, and framework-specific patterns — so you get valid video HTML without reading the docs yourself. |
| 7 | + |
| 8 | +## Prerequisites |
| 9 | + |
| 10 | +- **GitHub Copilot subscription** — Free, Pro, Pro+, Business, or Enterprise all include CLI access |
| 11 | +- **Copilot CLI installed** — `npm install -g @github/copilot` (or via the [install script](https://github.com/github/copilot-cli)) |
| 12 | +- **Node.js 22+** and **FFmpeg** for the HyperFrames CLI |
| 13 | + |
| 14 | +## Install skills |
| 15 | + |
| 16 | +Install the HyperFrames skill package into your project: |
| 17 | + |
| 18 | +```bash |
| 19 | +npx skills add heygen-com/hyperframes |
| 20 | +``` |
| 21 | + |
| 22 | +This writes skill directories to `.github/skills/` in your project — one of the paths Copilot CLI scans automatically. |
| 23 | + |
| 24 | +<Tip> |
| 25 | + To make skills available across all your projects, install them globally: |
| 26 | + |
| 27 | + ```bash |
| 28 | + npx skills add heygen-com/hyperframes -a github-copilot --global |
| 29 | + ``` |
| 30 | + |
| 31 | + Global skills live in `~/.copilot/skills/` and load in every Copilot CLI session. |
| 32 | +</Tip> |
| 33 | + |
| 34 | +If you install skills during an active session, reload them: |
| 35 | + |
| 36 | +``` |
| 37 | +/skills reload |
| 38 | +``` |
| 39 | + |
| 40 | +Verify they're available: |
| 41 | + |
| 42 | +``` |
| 43 | +/skills list |
| 44 | +``` |
| 45 | + |
| 46 | +You should see `hyperframes`, `hyperframes-cli`, `gsap`, `tailwind`, and others in the list. |
| 47 | + |
| 48 | +## Using skills |
| 49 | + |
| 50 | +Copilot CLI supports both **explicit invocation** via slash commands and **automatic detection** based on your prompt. |
| 51 | + |
| 52 | +### Slash commands |
| 53 | + |
| 54 | +Prefix a skill name with `/` to load it explicitly: |
| 55 | + |
| 56 | +``` |
| 57 | +/hyperframes Create a 10-second product intro with a fade-in title and dark background. |
| 58 | +``` |
| 59 | + |
| 60 | +``` |
| 61 | +/gsap Add a scale-pop animation to the title element. |
| 62 | +``` |
| 63 | + |
| 64 | +``` |
| 65 | +/hyperframes-cli How do I render at 60fps with Docker? |
| 66 | +``` |
| 67 | + |
| 68 | +### Auto-detection |
| 69 | + |
| 70 | +Copilot also matches skills based on the `description` field in each `SKILL.md`. If your prompt mentions compositions, timelines, or video rendering, the agent loads the right skills without you specifying them: |
| 71 | + |
| 72 | +``` |
| 73 | +Create a 9:16 TikTok hook video about AI productivity with bouncy captions. |
| 74 | +``` |
| 75 | + |
| 76 | +Explicit invocation is more reliable when you have many skills installed. |
| 77 | + |
| 78 | +### Skill management commands |
| 79 | + |
| 80 | +| Command | What it does | |
| 81 | +|---|---| |
| 82 | +| `/skills list` | Show all available skills | |
| 83 | +| `/skills info hyperframes` | View skill details and file location | |
| 84 | +| `/skills reload` | Reload after installing new skills mid-session | |
| 85 | +| `/skills` | Enable or disable skills interactively | |
| 86 | + |
| 87 | +## Create and preview a video |
| 88 | + |
| 89 | +<Steps> |
| 90 | + <Step title="Scaffold a project"> |
| 91 | + ```bash |
| 92 | + npx hyperframes init my-video |
| 93 | + cd my-video |
| 94 | + ``` |
| 95 | + |
| 96 | + Skills are installed automatically inside the new project. |
| 97 | + </Step> |
| 98 | + |
| 99 | + <Step title="Start the preview server"> |
| 100 | + ```bash |
| 101 | + npx hyperframes preview |
| 102 | + ``` |
| 103 | + |
| 104 | + Opens the HyperFrames Studio in your browser. Edits reload automatically. |
| 105 | + </Step> |
| 106 | + |
| 107 | + <Step title="Start Copilot CLI in the project directory"> |
| 108 | + In a second terminal: |
| 109 | + |
| 110 | + ```bash |
| 111 | + copilot |
| 112 | + ``` |
| 113 | + |
| 114 | + Or if using the npm global install: |
| 115 | + |
| 116 | + ```bash |
| 117 | + github-copilot |
| 118 | + ``` |
| 119 | + </Step> |
| 120 | + |
| 121 | + <Step title="Prompt with the skill"> |
| 122 | + ``` |
| 123 | + /hyperframes Create a 15-second dark-themed product intro with hype-style |
| 124 | + captions and a flash transition to the CTA. |
| 125 | + ``` |
| 126 | + |
| 127 | + The agent writes valid HyperFrames HTML — `data-*` attributes, `class="clip"` on timed elements, paused GSAP timelines registered on `window.__timelines`. The preview updates as files are saved. |
| 128 | + </Step> |
| 129 | + |
| 130 | + <Step title="Iterate"> |
| 131 | + Keep prompting without re-specifying the full context: |
| 132 | + |
| 133 | + ``` |
| 134 | + Make the title 2x bigger and add a lower third at 0:03. |
| 135 | + ``` |
| 136 | + |
| 137 | + ``` |
| 138 | + Swap the transition to a whip pan. |
| 139 | + ``` |
| 140 | + </Step> |
| 141 | + |
| 142 | + <Step title="Render"> |
| 143 | + ```bash |
| 144 | + npx hyperframes render --output output.mp4 |
| 145 | + ``` |
| 146 | + |
| 147 | + Or ask the agent: |
| 148 | + |
| 149 | + ``` |
| 150 | + /hyperframes-cli Render this composition to output.mp4 at high quality. |
| 151 | + ``` |
| 152 | + </Step> |
| 153 | +</Steps> |
| 154 | + |
| 155 | +## Agent mode |
| 156 | + |
| 157 | +Copilot CLI's agent mode can handle multi-step tasks autonomously — scaffolding a project, writing the composition, installing registry blocks, and rendering in sequence: |
| 158 | + |
| 159 | +``` |
| 160 | +/hyperframes Scaffold a new project called "launch-video", create a 30-second |
| 161 | +product launch video with 5 scenes, install the flash-through-white transition |
| 162 | +block, and render to mp4. |
| 163 | +``` |
| 164 | + |
| 165 | +In agent mode, Copilot runs terminal commands (like `npx hyperframes init` and `npx hyperframes render`) on your behalf. Review the commands before approving them — especially if the skill pre-approves `shell` in its `allowed-tools`. |
| 166 | + |
| 167 | +<Warning> |
| 168 | + Only pre-approve `shell` or `bash` in skill `allowed-tools` for skills you trust. The HyperFrames skills do not pre-approve shell access — the agent will ask for confirmation before running terminal commands. |
| 169 | +</Warning> |
| 170 | + |
| 171 | +## MCP alternative |
| 172 | + |
| 173 | +Copilot CLI also supports MCP servers for cloud-based authoring without the local CLI: |
| 174 | + |
| 175 | +```bash |
| 176 | +copilot --mcp-server https://mcp.heygen.com/mcp/hyperframes |
| 177 | +``` |
| 178 | + |
| 179 | +Authorize via OAuth when prompted. See the [MCP guide](/guides/mcp) for full details. |
| 180 | + |
| 181 | +## Tips |
| 182 | + |
| 183 | +- **Always start with `/hyperframes` for composition work.** This loads the full skill context — composition rules, data attributes, GSAP patterns, caption formats — that generic web knowledge doesn't cover. |
| 184 | +- **Use `/skills info hyperframes` to check skill status.** If output looks wrong, the skill might not be loaded. Reload with `/skills reload`. |
| 185 | +- **Run `npx hyperframes lint` before rendering.** The linter catches structural issues the agent might miss on complex multi-scene edits. |
| 186 | +- **Keep the preview server running in a separate terminal.** You see every edit reflected in real time while prompting in Copilot CLI. |
| 187 | +- **Install registry blocks for transitions and effects.** `npx hyperframes add shimmer-sweep` installs pre-built blocks, then prompt the agent to wire them in. |
| 188 | + |
| 189 | +## Next steps |
| 190 | + |
| 191 | +<CardGroup cols={2}> |
| 192 | + <Card title="Prompting guide" icon="message" href="/guides/prompting"> |
| 193 | + Vocabulary and patterns that produce better compositions. |
| 194 | + </Card> |
| 195 | + <Card title="Catalog" icon="grid-2" href="/catalog/blocks/data-chart"> |
| 196 | + 50+ ready-to-use blocks the agent can install and wire. |
| 197 | + </Card> |
| 198 | + <Card title="GSAP Animation" icon="wand-magic-sparkles" href="/guides/gsap-animation"> |
| 199 | + Motion principles and timeline authoring. |
| 200 | + </Card> |
| 201 | + <Card title="Pipeline guide" icon="list-check" href="/guides/pipeline"> |
| 202 | + The 7-step structure agents follow for multi-beat videos. |
| 203 | + </Card> |
| 204 | +</CardGroup> |
0 commit comments