MCPInstall
chatcut-inc avatar

shader-gen

AI shader generator for WebGL video effects, transitions, masks, and color grading (LUT / 调色 / 电影感 / film look). Use when the user wants a video effect (滤镜 / 特效), a transition (转场 / crossfade / wipe / cube / 3d), a mask (蒙版 / 遮罩 / reveal), a zoom / push-in (推近 / 推镜头), or a color grade — try the built-in effects (zoom, builtin LUTs) before generating a new shader.

Installs
164
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/chatcut-inc/agent-plugin --skill shader-gen
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads shader-gen automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Shader Generator

If submit_shader or inspect_item are not loaded yet, load them with ToolSearch before calling them, so you use their real parameters instead of guessing.

Submit-only: creates a backend generation job, returns jobId. Use the track_progress tool for job lifecycle after submission.

Always use generate.ts for new shaders. Manual authoring is only for editing existing asset code — never as a fallback when generation fails.

Catalog-first rule — try existing assets before generation

Before generating a shader, call browse_library unless the user names an exact asset id that is already visible in browse_assets.

browse_library is the source of truth for built-in effects, built-in transitions, and project effect/transition assets. Built-ins are stable global asset ids, not per-project DB assets, so they may not appear in browse_assets.

Apply catalog entries with edit_item, do not call submit_shader.

Good catalog searches:

browse_library(query: "zoom")
browse_library(category: "transitions", query: "dissolve")
browse_library(category: "audio-fx")

Generate only when no catalog entry matches the user's intent closely enough.

builtin:zoom uses the same track-bound placement as every effect

Effects always have timeline geometry. For a whole-clip effect, supply targetItemId; ChatCut resolves it to a clip-anchored range covering that clip. For an explicit timeline range, supply trackId + trackBoundFrom + trackBoundDurationInFrames.

# Zoom on the entire video clip
edit_item(json: '{"adds":[{"type":"effect","assetId":"builtin:zoom","targetItemId":"<clip-id>","propertyOverrides":{"magnification":1.5,"shape":"hold"}}]}')

# Zoom on a sub-range of the clip (e.g. frames 90–150 only, a punch zoom on a beat)
edit_item(json: '{"adds":[{"type":"effect","assetId":"builtin:zoom","mode":"track-bound","trackId":"<trackId>","trackBoundFrom":90,"trackBoundDurationInFrames":60,"propertyOverrides":{"magnification":2,"shape":"punch"}}]}')

Use preview_timeline({views:["timeline"],tracks:["V1"]}) to obtain track item ids and timeline-frame ranges. Use inspect_item({itemId:"..."}) when exact item detail is needed.

KeyTypeRange / valuesDefaultNotes
magnificationnumber1–41.5Zoom factor; 1 = no zoom, 2 = 2× in
focalPointXnumber0–10.5Horizontal focal point (0 = left, 1 = right)
focalPointYnumber0–10.5Vertical focal point (0 = top, 1 = bottom)
shapeselectpunch / hold / slow-push / instantholdAnimation curve
focalModeselectauto / manualautoauto picks subject; manual uses focalPoint
easeInFramesnumber0–608Frames to ramp in
easeOutFramesnumber0–608Frames to ramp out

Omit propertyOverrides entirely for default zoom. Send only the keys you want to change — patch semantics.

Clip-anchored vs adjustment-track

Effect items have two placements, both with a concrete time range:

  • Clip-anchored: supply targetItemId for the whole clip, or include an explicit range that intersects the clip. The stored range is local to that clip and follows it when it moves.
  • Adjustment-track: supply trackId + trackBoundFrom + trackBoundDurationInFrames for a range over empty track space. The range is absolute on the timeline.

Use targetItemId for whole-clip effects. Use explicit track geometry only when the requested range differs from a clip's full duration.

Built-in LUT properties

edit_item(json: '{"adds":[{"type":"effect","targetItemId":"<clip-id>","assetId":"builtin:slog3-s709","propertyOverrides":{"intensity":1}}]}')
KeyTypeRangeDefaultNotes
intensitynumber0–11LUT strength; 1 = full applied

To swap: delete the effect and re-add with a different assetId. To remove: delete the effect item.

User-uploaded .cube LUT assets take this exact same shape — only assetId differs. See "Applying an Existing LUT Asset" below.

Supported Targets

Effects and transitions apply to video, image, and gif items.

Type Routing

Before generating anything, check two non-generation paths first:

  1. Catalog entry — use browse_library for built-in and project effects/transitions.
  2. User-uploaded .cube LUT asset that already exists in the project library — bind it instead of generating, see "Applying an Existing LUT Asset" below. It shows up in browse_assets as type: effect with a lut-typed entry in editableProperties.
User wants--type
Video appearance (color, blur, glow, grain, distortion)effect
Color grade / look (teal-orange, cinematic, vintage, LUT-style)effect
Visibility control (mask, reveal, wipe, shape cutout, gradient fade)effect
Blend between clips (crossfade, dissolve, slide, 3D cube/page flip)transition

"LUT-style" in the table means generating a fresh GLSL color grade that resembles a LUT — only when the user wants something new. If they want to apply a .cube file already in the library, don't generate; bind the existing asset instead.

No separate LUT or mask generator for the generation path — those are all effect.

Applying an Existing LUT Asset

Default target is the timeline. "Apply this LUT" means an edit_item effect on the clip. Only reach for edit_asset sourceLut when the user asks for the source itself everywhere it appears — every clip cut from that asset, or a log-to-Rec.709 normalization of the footage — because that changes every instance of the asset on every timeline.

.cube files uploaded by the user become effect assets with category: "lut". Applying one to a clip is not generation — it is the same edit_item effect shape as a built-in LUT, with that asset's own id as assetId:

edit_item(json: '{"adds":[{"type":"effect","targetItemId":"<clip-id>","assetId":"<lut-effect-asset-id>","propertyOverrides":{"intensity":1}}]}')

Key points:

  • assetId is the LUT effect asset's real id. There is no literal "lut" assetId, and no LUT binding nested inside propertyOverrides.
  • propertyOverrides carries only intensity (0–1, default 1). The .cube binding lives on the asset, not on the effect item.
  • Find the id with browse_assets type:"effect": a LUT asset is the one whose editableProperties contain a lut-typed key. Built-in LUTs come from browse_library category:"luts".
  • targetItemType defaults to video; also supports image, gif.
  • To swap: delete the effect and re-add with the other LUT's assetId. To remove: delete the effect item.
  • To grade a whole source clip everywhere it appears instead of one timeline item, use edit_asset update with {"sourceLut":{"assetId":"<lut-effect-asset-id>"}} on the video/image/gif asset; {"sourceLut":null} removes it.
  • If the .cube is not in the project yet, you cannot get it in: this surface has no LUT import path, and .cube is not an accepted chat attachment either, so never ask the user to send you the file. Ask them to drag it into the editor's media pool instead — the editor registers it as a LUT asset and it then shows up in browse_assets. Do not tell them ChatCut cannot handle .cube; the editor can.

Do not call submit_shader for this path.

After applying, confirm with preview_timeline that the effect is listed on the target clip's track. Do not report success from the edit_item response alone.

Usage

Before calling submit_shader, restate the user's intent in one concrete sentence, then proceed immediately. After track_progress returns, state what was produced in one line — do NOT ask "Keep it or regenerate it?".

submit_shader({
  type: "effect",
  prompt: "Chromatic aberration with RGB split",
  name: "Chromatic Aberration",
});

submit_shader({
  type: "transition",
  prompt: "Smooth crossfade with soft edge",
  name: "Crossfade",
});

submit_shader({
  type: "effect",
  prompt: "Cinematic teal-orange color grade",
});

submit_shader({
  type: "effect",
  prompt: "Stronger version",
  referenceAssetIds: ["effect_asset_id"],
});

Strategy

  • Submit, then stop. Tell user the job was created.
  • Use the track_progress tool for status/wait after submission.
  • Generation always produces a library asset — never refuse because the timeline isn't ready.
  • Apply is separate and optional. Only apply when user explicitly asks ("加到视频", "apply", "用到第一段"). When ambiguous, default to library-only.

Editing Existing Properties

Any time you're about to edit shader asset.properties, applied effect/transition item.propertyOverrides, or promote a hardcoded shader value, read references/property-changes.md first.

It reinforces that shader properties is an array, but the allowed shader property types are only number, boolean, color, select, and vec2. Motion Graphic properties are also arrays, but use a different type set.

Parameters

ParamDescriptionDefault
type"effect" or "transition" (req'd)—
promptDescription of the shader (req'd)—
nameAsset name shown in library—
referenceAssetIdsAsset ids. Image id → model LOOKS AT it for visual inspiration. Effect/transition id → reuse its code as style anchor (≤1 per submit, kind must match type).—

Output

Returns { success, job: { jobId, status }, manage: { status, wait, watch } }.

Applying to Timeline

Only when user explicitly requests. Refresh the affected timeline with view:"timeline", passing track to narrow the read when appropriate.

Effect

edit_item(json: '{"adds":[{"type":"effect","targetItemId":"<id>","assetId":"<id>","enabled":true,"propertyOverrides":{}}]}')

Transition

Requires two adjacent same-track endpoints. edit_item validates live seam feasibility and refuses durations that would require freeze frames or overlapping neighboring transitions. If the add fails, retry with the suggested durationInFrames, trim the clips to expose handles, delete/shorten neighboring transitions, or keep a hard cut.

edit_item(json: '{"adds":[{"type":"transition","assetId":"<id>","outgoingItemId":"<id1>","incomingItemId":"<id2>","durationInFrames":30}]}')

Validation & Verification

Backend Validation

When generating via generate.ts, the backend handles validation automatically (transpile, AST security, class structure, retry on failure).

Manual Code Verification

NEVER write shader code from scratch. Always use generate.ts for new shaders. This section is ONLY for modifying existing shader code that was already generated.

When writing shader code manually, read ${CLAUDE_SKILL_DIR}/references/design-principles.md first. If the change touches editable properties, also read ${CLAUDE_SKILL_DIR}/references/property-changes.md.

Typical workflow:

  1. inspect_asset with the shader assetId and includeCode: true — read the current source.
  2. Edit the source in your own context.
  3. edit_asset with action=update, the same assetId, and the full replacement source inline in json.code. Validation runs automatically on update — if code is invalid, the update is rejected with error details.

FAQ

What does the shader-gen skill do?

AI shader generator for WebGL video effects, transitions, masks, and color grading (LUT / 调色 / 电影感 / film look). Use when the user wants a video effect (滤镜 / 特效), a transition (转场 / crossfade / wipe / cube / 3d), a mask (蒙版 / 遮罩 / reveal), a zoom / push-in (推近 / 推镜头), or a color grade — try the built-in effects (zoom, builtin LUTs) before generating a new shader.

How do I install shader-gen?

Run npx skills add https://github.com/chatcut-inc/agent-plugin --skill shader-gen in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/shader-gen/ (personal) or .claude/skills/shader-gen/ (project).

Which AI agents can use shader-gen?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is shader-gen safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains shader-gen?

It is published by chatcut-inc in chatcut-inc/agent-plugin. It has 164 recorded installs.

More from chatcut-inc/agent-plugin

View all →
chatcut-inc avatar

asset-import

chatcut-inc/agent-plugin

Import local or downloaded media, or relink missing media to an existing ChatCut asset, through the hosted Claude plugin. Use the editor loopback bridge when the editor and files are on the same machine; use the upload helper for imports otherwise. Desktop MCP sessions use their own built-in import tools.

AI & Agents182 installs
chatcut-inc avatar

create-motion-graphics

chatcut-inc/agent-plugin

Use when Codex uses the ChatCut plugin (chatcut MCP server) to add, create, hand-author, patch, or place Motion Graphic JSX assets. Covers reference browsing, direct inline JSX authoring, editable properties, asset binding, timeline placement, and composed verification.

Backend & APIs176 installs
chatcut-inc avatar

talking-head-guide

chatcut-inc/agent-plugin

Guide for editing speech-led videos where spoken delivery or conversation drives the cut — single-speaker talking-head / 口播, two- or multi-speaker interview / 访谈, video podcast, lecture, tutorial, course, and similar formats. Load before analyzing, planning, or performing non-trivial edits of those formats, including speech cleanup (剪口播 / 口播剪辑 / 去口癖 / clean up fillers / smooth speech), pause or repeated-take removal, motion graphics layered onto the footage (口播加 MG / 加动画), B-roll (加 B-roll / add B-roll), music, or captions. For motion graphics specifically, use this together with the active Motion Graphics skill/workflow available in the current ChatCut environment — this skill adds speech-specific guidance (rhythm-aware timing, frame-aware placement, subject/caption protection, placement verification).

Media & Creative175 installs
chatcut-inc avatar

export

chatcut-inc/agent-plugin

Hosted ChatCut plugin sessions only (the chatcut MCP server). If the conversation is driving ChatCut Desktop (a chatcutdesktop MCP server), load this skill only when the user explicitly chooses the plugin/web surface — desktop sessions otherwise ship their own instructions and tools. Export or deliver a ChatCut project through the hosted connector, including video, audio, subtitles, XML, and render-status checks.

Backend & APIs172 installs
chatcut-inc avatar

verification

chatcut-inc/agent-plugin

Hosted ChatCut plugin sessions only (the chatcut MCP server). If the conversation is driving ChatCut Desktop (a chatcutdesktop MCP server), load this skill only when the user explicitly chooses the plugin/web surface — desktop sessions otherwise ship their own instructions and tools. Verify that ChatCut plugin edits are reflected in project structure and visible timeline output before reporting success.

Backend & APIs170 installs
chatcut-inc avatar

video-gen

chatcut-inc/agent-plugin

AI video generation via Seedance, Kling, Gemini Omni, MiniMax H3, and MiniMax H3 Max. Use when the user wants to generate a video clip — text-to-video, image-to-video, first/last-frame transitions, reference-guided generation — or wants to modify / edit / extend an existing generated clip.

Media & Creative169 installs

Popular media & creative skills

View category →
heygen-com avatar

hyperframes

heygen-com/hyperframes

Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.

Media & Creative1.6M installs
heygen-com avatar

media-use

heygen-com/hyperframes

Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks - with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull, or should be stylized or hidden.

Media & Creative1.5M installs
heygen-com avatar

hyperframes-registry

heygen-com/hyperframes

About 450 ready-made HyperFrames blocks and components installed as editable source - transitions, overlays, titles, kinetic type, captions, charts, map overlays, 3D, camera moves. Use it before hand-building any named visual (CRT scanlines, glitch, film grain, a chart); also for hyperframes add and catalog.

Media & Creative1.4M installs
101-skills avatar

ai-video-generation

101-skills/superpowers

Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse

Media & Creative1.1M installs
101-skills avatar

ai-image-generation

101-skills/superpowers

Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image

Media & Creative1.1M installs
101-skills avatar

ai-avatar-video

101-skills/superpowers

Create AI avatar and talking head videos via inference.sh CLI. Recommended: P-Video-Avatar (fastest, cheapest, built-in TTS). Also: OmniHuman, Fabric, PixVerse. Audio: Inworld TTS-2 (100+ languages, emotion steering for characters), ElevenLabs, Kokoro. Capabilities: audio-driven avatars, text-to-avatar, lipsync videos, talking head generation, virtual presenters, UGC content. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos, UGC ads, gaming avatars, NPC dialogue. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human, ugc, ugc video, ugc ad, avatar ugc

Media & Creative1.1M installs