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/scene_renderer_smoke.js
View on GitHub#!/usr/bin/env node
'use strict';
const assert = require('assert');
const fs = require('fs');
const os = require('os');
const path = require('path');
const { spawnSync } = require('child_process');
if (!process.env.QIAOMU_PLAYWRIGHT_CORE) {
const shared = path.join(os.homedir(), '.agents', 'skills', 'qiaomu-ai-access', 'node_modules', 'playwright-core');
if (fs.existsSync(shared)) process.env.QIAOMU_PLAYWRIGHT_CORE = shared;
}
function run(args) {
const cli = path.join(__dirname, 'qcut.js');
const result = spawnSync(process.execPath, [cli, ...args], {
env: process.env,
encoding: 'utf8',
stdio: ['ignore', 'pipe', 'pipe']
});
if (result.status !== 0) throw new Error(`qcut ${args.join(' ')} failed:\n${result.stderr}\n${result.stdout}`);
return JSON.parse(result.stdout);
}
const root = fs.mkdtempSync(path.join(os.tmpdir(), 'qiaocut-scene-renderer-'));
try {
fs.mkdirSync(path.join(root, 'scenes'), { recursive: true });
fs.mkdirSync(path.join(root, 'assets'), { recursive: true });
fs.writeFileSync(path.join(root, 'scenes', 'concept.html'), `<!doctype html>
<meta charset="utf-8"><style>
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#09090b}
.token{position:absolute;left:20px;top:180px;width:90px;height:44px;border-radius:12px;background:#facc15;
animation:move 1s linear both}@keyframes move{to{transform:translateX(170px);background:#38bdf8}}
</style><div class="token"></div>`);
fs.writeFileSync(path.join(root, 'scenes', 'concept.py'), `from manim import *
class Concept(Scene):
def construct(self):
dot = Dot(color=YELLOW)
self.play(dot.animate.shift(RIGHT), run_time=0.25)
`);
const html = run([
'scene', 'render', root, 'scenes/concept.html', '--engine', 'html',
'--output', 'assets/html.mp4', '--duration', '0.3', '--width', '320', '--height', '480', '--fps', '6', '--json'
]);
const { inspectSceneEngines } = require('./render_scene');
const manimAvailable = inspectSceneEngines().manim.available;
const manim = !manimAvailable ? null : run([
'scene', 'render', root, 'scenes/concept.py', '--engine', 'manim', '--scene-class', 'Concept',
'--output', 'assets/manim.mp4', '--duration', '0.3', '--width', '320', '--height', '480', '--fps', '12', '--json'
]);
assert.equal(html.ok, true);
if (manim) assert.equal(manim.ok, true);
assert.equal(html.transport, 'image2pipe');
assert.equal(html.browserMode, 'headless-only');
assert.equal(html.intermediateFrameFiles, 0);
assert.ok(fs.statSync(path.join(root, html.output)).size > 1024);
if (manim) assert.ok(fs.statSync(path.join(root, manim.output)).size > 1024);
process.stdout.write(`${JSON.stringify({ ok: true, engines: manim ? ['html', 'manim'] : ['html'], skipped: manim ? [] : ['manim: not installed (missing evidence)'] }, null, 2)}\n`);
} finally {
fs.rmSync(root, { recursive: true, force: true });
}
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 |