Vibe Code a Scope Plugin
In the Build a Video Effects Plugin tutorial you learned how every Scope plugin is put together - the project structure, schema, pipeline class, and effect functions. Now you are going to build one without writing most of the code yourself. This tutorial walks you through two ways to vibe code a complete Scope plugin using Claude Code. You will describe what you want in plain English and let Claude handle the scaffolding, schemas, and GPU effect code. By the end you will have a working Film Noir plugin installed in Scope - high-contrast black and white with vignette and grain. Watch the full walkthrough:Prerequisites
- Claude Code installed and authenticated
- Daydream Scope installed and running (desktop app or local install)
- Basic familiarity with the terminal
- Completed (or at least read through) the Build a Video Effects Plugin tutorial
Choose your approach
Both approaches produce the same result: a fully functional Scope plugin with live UI controls. Pick the one that fits your style.Context7 MCP
Explore and build. Claude fetches the latest Scope docs on-the-fly via an MCP server and generates your plugin from the official patterns. Most flexible - you can go off-script and explore any part of the API.
Plugin Skill
Answer questions and ship. A purpose-built Claude Code skill walks you through a structured flow - concept, specs, file generation, testing. Faster and more predictable, with the full plugin reference baked in.
Build your plugin
- Context7 MCP
- Plugin Skill
This approach uses Context7, an MCP server that gives Claude access to up-to-date library documentation. You point Claude at the Scope docs, describe the effect you want, and it generates everything from scratch using the official plugin patterns.Claude will query Context7 for the Scope plugin documentation and come back with the full picture: project structure,
Why this approach?
Context7 pulls the latest Scope documentation into Claude’s context on-the-fly. This means Claude always works from the current plugin API - even if it has changed since Claude’s training data was last updated. It is the most flexible approach because you are not limited to a predefined workflow. You can ask Claude to build any kind of plugin, explore the docs interactively, and iterate on the design in conversation.Setup
Install the Context7 MCP server
The fastest way to add Context7 to Claude Code is with a single CLI command:For higher rate limits, grab a free API key from context7.com/dashboard and pass it in:Alternatively, you can add it manually to your Claude Code settings file (Restart Claude Code. You should see Context7 listed when Claude starts up.
~/.claude.json or your project’s .claude/settings.json):Context7 is built by Upstash. If you run into
ERR_MODULE_NOT_FOUND issues with npx, try using bunx instead: claude mcp add context7 -- bunx @upstash/context7-mcp@latestBuild the plugin
Start a new Claude Code session in an empty directory and walk through this conversation:Ask Claude to research the plugin system
pyproject.toml entry points, schema patterns, pipeline class interface, and effect function conventions. It is essentially reading the same docs you read in the previous tutorial, but doing it in real time.Generate the entire plugin
Once Claude has the context, tell it to build:Claude will generate the full project structure:Each file will follow the exact patterns from the Scope documentation - Pydantic schema with
ui_field_config for automatic UI controls, lazy imports in __init__.py, torch.Tensor operations for GPU-accelerated processing, and the Pipeline base class with prepare() and __call__() methods.Review and iterate
This is the vibe coding part. Read through what Claude generated and ask for changes in plain English:Claude will update the effect code and schema defaults. Keep iterating until the parameters feel right. You can also ask Claude to explain any part of the code:Since Claude has the Scope docs in context, its explanations will be grounded in how the framework actually works.
Install and test
Once you are happy with the code, install it in Scope:
- Desktop app: Open Settings > Plugins, click Browse, and select the
scope-film-noirfolder - Server: Enter the path to the plugin directory and click Install
Comparing the two approaches
| Context7 MCP | Plugin Skill | |
|---|---|---|
| Best for | Exploration, unusual plugins, learning | Quick builds, standard plugin patterns |
| Setup | Add MCP server to config | Clone repo + symlink |
| Workflow | Open-ended conversation | Structured question flow |
| Docs access | Fetches latest docs on-the-fly | Reference baked into the skill |
| Flexibility | Ask anything, go off-script | Follows a defined 4-phase flow |
| Speed | Slightly slower (doc fetching) | Faster (no external lookups) |
Tips for better results
Regardless of which approach you use, these tips will help you get better plugins out of the conversation:- Be specific about the visual effect. “Film noir” is good. “Film noir with crushed blacks, a radial vignette that is stronger in the corners, and grain that is heavier in the shadows” is better. The more detail you give, the closer the first generation will be to what you want.
- Reference real-world examples. “Make the contrast curve look like a classic S-curve from Lightroom” gives Claude a concrete target. “Make it look like the movie Sin City” works too.
- Iterate on the parameters. The schema defaults are just a starting point. Ask Claude to adjust them: “The vignette is too subtle at 0.3, make the default 0.6 and cap the max at 1.0.”
- Ask for explanations. If you want to understand what the generated code is doing, just ask. Both approaches can explain the GPU operations, the tensor shapes, and how each parameter maps to a visual change.
- Test incrementally. Install the plugin after the first generation, see how it looks, then come back to Claude with feedback. “The grain looks too uniform - can you make it more organic?” is much easier to act on once you have seen the output on screen.
What’s next
You now have two AI-assisted workflows for building Scope plugins without writing code from scratch. Here are some ideas for plugins you could vibe code next:- Cyberpunk neon glow - Edge detection with colorful bloom and scanlines
- Watercolor painting - Bilateral filtering with color quantization for a painted look
- Thermal camera - Map luminance to a heat color palette
- Tilt-shift miniature - Selective blur to make real scenes look like tiny models
- Glitch art - Random block displacement, color channel splitting, and data moshing
Build a Video Effects Plugin
The manual tutorial - understand every line of code in a Scope plugin
Scope Plugin Skill
Install the Claude Code skill for guided plugin scaffolding
Developing Plugins
Full reference for plugin project setup, schemas, and pipeline types
Plugin Architecture
Technical deep-dive into how the plugin system works under the hood