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/ffmpeg_retry_shim_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');
const { createdTaskId } = require('./adapters/33tc_cli');
const temp = fs.mkdtempSync(path.join(os.tmpdir(), 'qiaomu-cut-ffmpeg-shim-'));
const fakeFfmpeg = path.join(temp, 'real-ffmpeg');
const log = path.join(temp, 'calls.jsonl');
const counter = path.join(temp, 'counter');
const shim = path.join(__dirname, 'shims', 'ffmpeg');
try {
fs.writeFileSync(fakeFfmpeg, `#!/usr/bin/env node
const fs = require('fs');
const log = ${JSON.stringify(log)};
const counter = ${JSON.stringify(counter)};
const count = fs.existsSync(counter) ? Number(fs.readFileSync(counter, 'utf8')) : 0;
fs.writeFileSync(counter, String(count + 1));
fs.appendFileSync(log, JSON.stringify(process.argv.slice(2)) + '\\n');
process.exit(count === 0 ? 187 : 0);
`, { mode: 0o700 });
const remote = spawnSync(shim, [
'-hide_banner', '-y', '-ss', '10', '-i', 'https://media.example.test/video.mkv?signature=secret',
'-t', '2', '-c', 'copy', path.join(temp, 'out.mp4')
], {
encoding: 'utf8',
env: { ...process.env, QIAOMU_FFMPEG: fakeFfmpeg, QIAOMU_FFMPEG_RETRIES: '2' }
});
assert.equal(remote.status, 0);
const remoteCalls = fs.readFileSync(log, 'utf8').trim().split('\n').map(JSON.parse);
assert.equal(remoteCalls.length, 2);
assert(remoteCalls[0].includes('-reconnect_on_network_error'));
assert(remoteCalls[0].includes('-rw_timeout'));
fs.writeFileSync(counter, '0');
fs.writeFileSync(log, '');
const local = spawnSync(shim, ['-i', path.join(temp, 'local.mp4'), path.join(temp, 'out.mp4')], {
encoding: 'utf8',
env: { ...process.env, QIAOMU_FFMPEG: fakeFfmpeg, QIAOMU_FFMPEG_RETRIES: '5' }
});
assert.equal(local.status, 187);
const localCalls = fs.readFileSync(log, 'utf8').trim().split('\n').filter(Boolean).map(JSON.parse);
assert.equal(localCalls.length, 1);
assert(!localCalls[0].includes('-reconnect'));
assert.equal(createdTaskId('Created cut task: 5067441\n', ''), '5067441');
assert.equal(createdTaskId('', 'ordinary failure'), null);
process.stdout.write(`${JSON.stringify({
ok: true,
remoteRetries: 2,
localRetries: 1,
paidTaskRecoveryHint: true
})}\n`);
} finally {
fs.rmSync(temp, { 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 |