qiaomu-cut
Verified把一句话需求转成可复现、可验收视频工程的乔木智能剪辑导演。Use when the user asks to create, plan, edit, remix, explain, narrate, subtitle, animate, composite, or render a video—including one-line requests such as “制作一个科普视频:介绍 LLM 中的 RL”. Builds English-learning movie mixes, person profiles, explainers, code-drawn motion graphics (UI morph loops, showreels, kinetic-type promos, line-art/pixel/Three.js animation, lyric MVs), product launch videos, cinematic shorts, social clips, course/PPT videos, AI image/video/TTS/music-assisted stories, stock-footage stories, or multi-source montage. Routes across 33台词, ClipSeek/open media, local files, ListenHub, image generation, HTML/SVG/Canvas motion graphics with beat-grid storyboards and determinism probes, Manim, ffmpeg-full, captions, sound design, frame-0 video covers with YouTube thumbnails, and release checks.
scripts/renderers/html_scene.js
View on GitHub'use strict';
const fs = require('fs');
function escapeHtml(value) {
return String(value || '')
.replace(/&/g, '&')
.replace(/</g, '<')
.replace(/>/g, '>')
.replace(/"/g, '"');
}
function generateHtmlScene(scene, options = {}) {
const title = scene && scene.text ? scene.text.content : options.title || 'QiaoCut Scene';
const visual = scene && scene.visual ? scene.visual : options.visual || '';
const aspectInput = String(options.aspect || '16 / 9').trim();
if (!/^\d+(?:\.\d+)?\s*(?:\/|:)\s*\d+(?:\.\d+)?$/.test(aspectInput)) {
throw new Error('aspect must be a numeric ratio such as 16/9 or 9:16.');
}
const aspect = aspectInput.replace(':', '/');
return `<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; style-src 'unsafe-inline'; img-src data:; font-src data:" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>${escapeHtml(title)}</title>
<style>
:root {
color-scheme: dark;
--bg: #09090b;
--fg: #f8fafc;
--muted: #c4b5fd;
--accent: #facc15;
}
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
display: grid;
place-items: center;
background: radial-gradient(circle at 20% 20%, #312e81 0, transparent 32%),
radial-gradient(circle at 85% 75%, #7e22ce 0, transparent 30%),
var(--bg);
font-family: Inter, "SF Pro Display", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
.stage {
width: min(92vw, 1280px);
aspect-ratio: ${aspect};
position: relative;
overflow: hidden;
border-radius: 34px;
padding: 7%;
background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
box-shadow: 0 30px 80px rgba(0,0,0,.45);
isolation: isolate;
}
.stage::before {
content: "";
position: absolute;
inset: -20%;
background: conic-gradient(from 120deg, transparent, rgba(250,204,21,.16), transparent, rgba(56,189,248,.14), transparent);
animation: drift 12s linear infinite;
z-index: -1;
}
.kicker {
color: var(--muted);
font-size: clamp(18px, 2.2vw, 34px);
letter-spacing: .16em;
text-transform: uppercase;
margin-bottom: 3vh;
}
h1 {
margin: 0;
color: var(--fg);
font-size: clamp(44px, 8vw, 120px);
line-height: .94;
letter-spacing: -.06em;
text-wrap: balance;
}
p {
position: absolute;
left: 7%;
right: 7%;
bottom: 7%;
margin: 0;
color: rgba(248,250,252,.76);
font-size: clamp(18px, 2.1vw, 32px);
line-height: 1.35;
}
.accent { color: var(--accent); }
@keyframes drift {
to { transform: rotate(360deg); }
}
</style>
</head>
<body>
<main class="stage">
<div class="kicker">${escapeHtml(scene && scene.purpose ? scene.purpose : 'qiaomu-cut')}</div>
<h1>${escapeHtml(title).replace(/ /g, ' <span class="accent">·</span> ')}</h1>
<p>${escapeHtml(visual)}</p>
</main>
</body>
</html>
`;
}
function sceneFromIr(file, sceneId) {
const ir = JSON.parse(fs.readFileSync(file, 'utf8'));
const scenes = ir.scenes || [];
if (!sceneId) return scenes[0];
return scenes.find((scene) => scene.id === sceneId) || scenes[Number(sceneId) - 1];
}
module.exports = {
generateHtmlScene,
sceneFromIr
};
if (require.main === module) {
const input = process.argv[2];
const output = process.argv[3];
const sceneId = process.argv[4];
if (!input || !output) {
console.error('Usage: html_scene.js qiaocut-ir.json scene.html [scene-id]');
process.exit(2);
}
const scene = sceneFromIr(input, sceneId);
if (!scene) {
console.error('Scene not found.');
process.exit(1);
}
fs.writeFileSync(output, generateHtmlScene(scene));
console.log(output);
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |