green-screen

green-screen is a skill for Claude Code, Codex from ZJU-REAL/Easel. It costs 168 tokens per session (1,042 once invoked), scanned A, original, Apache-2.0.

A video compositing tool that removes a green screen, blue screen, or chosen solid colour and places the foreground over a new background.

In plain words
What is it for?
Use it to replace a filmed backdrop with an image, video, solid colour, or a blurred version of the original scene.
Why use it?
It handles colour removal, green-edge cleanup, edge blending, background sizing, and audio preservation in one process.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python skills/shared/scripts/chromakey.py key -i <绿幕视频> \.

Good fit Use it to replace a filmed backdrop with an image, video, solid colour, or a blurred version of the original scene.

Compare 6 skills from other repositories ↓
About the project

Easel is an open-source content workspace and AI agent for managing social media from trend discovery through planning, content creation, publishing, and performance analysis. It is intended for social media creators and maintains separate account profiles, content projects, platform adaptations, and publishing records. The catalogue skills support these content and publishing workflows.

ZJU-REAL/Easel · 5,054 stars · on GitHub · zju-real.github.io

Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ZJU-REAL/Easel
agentmods
npx agentmods add skills/zju-real/easel/green-screen

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for green-screen

README.md
[![agentmods](https://agentmods.dev/badge/skills/zju-real/easel/green-screen/github.svg)](https://agentmods.dev/skills/zju-real/easel/green-screen)
Your own site
<a href="https://agentmods.dev/skills/zju-real/easel/green-screen"><img src="https://agentmods.dev/badge/skills/zju-real/easel/green-screen/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for green-screen

Your own site · 80×15
<a href="https://agentmods.dev/skills/zju-real/easel/green-screen"><img src="https://agentmods.dev/badge/skills/zju-real/easel/green-screen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 168 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,042 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00168 $0.01042
Opus 5.5 $0.00067 $0.00417
Sonnet 5.5 $0.00034 $0.00208
Haiku 4.5 $0.00017 $0.00104

Measured 3mo ago against content hash 516f15c58eef, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

green-screen scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/builtin/green-screen/SKILL.md · 70 lines

What it actually says

绿幕抠像 / 换背景合成

把绿幕前景抠出来合成到新背景。全部走 skills/shared/scripts/chromakey.py, 不要手拼 chromakey/overlay 滤镜——脚本已处理抠像、溢色抑制(despill)、边缘融合、 背景缩放、音轨保留。

只改画幅见 video-reframe;从零 AI 生成画面见 ai-video-gen;通用剪辑见 video-editing。

输入

字段 必填 说明
前景视频 是 绿幕/蓝幕拍摄的素材(没给就问)
背景 是 四选一:图片 / 视频 / 纯色 / 前景自身模糊
幕布色 否 默认绿 0x00ff00;蓝幕用 0x0000ff

输出(outputs/主题名/)

  • 合成后视频(*-composited.mp4)
  • 报告:分辨率、抠掉的颜色、所用背景

执行步骤

脚本路径(相对项目根):skills/shared/scripts/chromakey.py(key -h 看参数)。

# 合成到图片背景
python skills/shared/scripts/chromakey.py key -i <绿幕视频> \
  --bg <背景图> -o outputs/主题名/<名>-composited.mp4

# 合成到视频背景(背景自动循环补足)
python skills/shared/scripts/chromakey.py key -i <绿幕视频> \
  --bg <背景视频> -o outputs/主题名/<名>.mp4

# 合成到纯色背景
python skills/shared/scripts/chromakey.py key -i <绿幕视频> \
  --bg-color white -o outputs/主题名/<名>.mp4

# 背景=前景自身放大模糊(虚化景深感)
python skills/shared/scripts/chromakey.py key -i <绿幕视频> \
  --bg-blur -o outputs/主题名/<名>.mp4

调参(抠不干净时)

  • 绿边残留 / 抠不净:调大 --similarity(默认 0.30,可到 0.4)。
  • 主体边缘被吃 / 镂空:调小 --similarity,或加大 --blend(默认 0.10)柔化边缘。
  • 主体泛绿(溢色):脚本已自动 despill;仍明显时说明幕布打光不匀,属素材问题。
  • 蓝幕:--color 0x0000ff。

规则

  1. 幕布色默认绿;蓝幕/其它色用 --color 指定。
  2. 背景四选一(--bg / --bg-color / --bg-blur),互斥。
  3. 背景自动缩放裁切到前景画幅、视频背景自动循环补足到前景时长。
  4. 前景音轨自动保留。
  5. 抠像质量取决于素材(幕布纯净度、打光均匀度);脚本尽力,但拍摄差无法救回。
  6. 产物统一进 outputs/主题名/。

参考来源

绿幕抠像用 ffmpeg chromakey(按颜色距离生成 alpha)+ despill(抑制主体边缘溢色)+ overlay 合成,是标准无 GPU 抠像方案。把颜色阈值、边缘融合、背景适配封装成确定性脚本。

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 70 lines · 168 tokens per session scan A 516f15c58eef

Subscribe to this mod's changes

green-screen is a skill published in the GitHub repository ZJU-REAL/Easel (5,054 stars, last pushed 3d ago), licensed Apache-2.0. It adds 168 tokens to every session and 1,042 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

green-screen compared with skills from other repositories

green-screen next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
green-screenZJU-REAL/EaselSkill5.1k3d agoApache-2.0A168Claude Code, Codex
information-security-manager-iso27001seaworld008/Commonly-used-high-value-skillsSkill752d agoMITA34Claude Code, Codex
bmad-specalvin-reyes/better-agentic-ideSkill3813d agoMITA76Claude Code
video-editoroyi77/1ai-skillsSkill19yesterdayMITA59Claude Code
bmad-advanced-elicitationalvin-reyes/better-agentic-ideSkill3813d agoMITA55Claude Code
ai-newsletteroyi77/1ai-skillsSkill19yesterdayMITA36Claude Code
responsive-designoyi77/1ai-skillsSkill19yesterdayMITA23Claude Code