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/adapters/local.js
View on GitHub'use strict';
const fs = require('fs');
const path = require('path');
const VIDEO_EXT = new Set(['.mp4', '.mov', '.m4v', '.mkv', '.webm', '.avi']);
const IMAGE_EXT = new Set(['.png', '.jpg', '.jpeg', '.webp', '.gif', '.svg']);
const AUDIO_EXT = new Set(['.mp3', '.wav', '.m4a', '.aac', '.flac']);
function mediaTypeFor(file) {
const ext = path.extname(file).toLowerCase();
if (VIDEO_EXT.has(ext)) return 'video';
if (IMAGE_EXT.has(ext)) return 'image';
if (AUDIO_EXT.has(ext)) return 'audio';
return null;
}
function scanLocal(directory, options = {}) {
const root = path.resolve(directory || process.cwd());
const rootIsFile = fs.existsSync(root) && fs.statSync(root).isFile();
const relativeBase = rootIsFile ? path.dirname(root) : root;
const max = Number(options.limit || 100);
const recursive = Boolean(options.recursive);
const results = [];
function walk(dir) {
if (results.length >= max) return;
for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {
const full = path.join(dir, entry.name);
if (entry.isDirectory()) {
if (recursive && !entry.name.startsWith('.')) walk(full);
continue;
}
const mediaType = mediaTypeFor(full);
if (!mediaType) continue;
const stat = fs.statSync(full);
const relative = path.relative(relativeBase, full) || path.basename(full);
results.push({
id: `local:${relative.split(path.sep).join('/')}`,
source: 'local',
provider: 'user-local-file',
mediaType,
title: path.basename(full),
localPath: relative.split(path.sep).join('/'),
bytes: stat.size,
licenseStatus: 'user_provided',
attribution: 'User-provided local asset; preserve original file.'
});
if (results.length >= max) return;
}
}
if (!fs.existsSync(root)) throw new Error(`Local path not found: ${root}`);
const stat = fs.statSync(root);
if (stat.isFile()) {
const mediaType = mediaTypeFor(root);
if (!mediaType) return [];
const relative = path.basename(root);
return [{
id: `local:${relative}`,
source: 'local',
provider: 'user-local-file',
mediaType,
title: path.basename(root),
localPath: relative,
bytes: stat.size,
licenseStatus: 'user_provided',
attribution: 'User-provided local asset; preserve original file.'
}];
}
walk(root);
return results;
}
module.exports = {
scanLocal,
mediaTypeFor
};
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 |