jianshuo/claude-skills / wjs-voicedrop-creating-motion-book
wjs-voicedrop-creating-motion-book
FlaggedUse when the user wants a whole book (usually a VoiceDrop 书架 book) turned into a chaptered explainer animation narrated by the book's own audiobook (书架「听本章」) — vertical 视频号 9:16 by default, art style auto-picked from the book's content, delivered as an in-browser HTML player and optionally MP4. Triggers — "把这本书做成动画", "做成艺术动画片", "读书动画", "听书配动画", "motion book", "/wjs-voicedrop-creating-motion-book <书名>".
scripts/fetch_book.mjs
View on GitHub#!/usr/bin/env node
// 取书(不要 VoiceDrop MCP,云端机器用):读书架公开的 _src/book.json,写出章名文件,打印 new_book.mjs 要的参数。
// 要做的章没写完(status 不是 done)就报错退出——听书接口对没写完的章拿不到正文。
// 用法:node fetch_book.mjs <slug> <输出章名文件> [--only ch01,ch02,ch03]
import fs from 'node:fs';
const [slug, out] = process.argv.slice(2), oi = process.argv.indexOf('--only');
const only = oi > 0 ? new Set(process.argv[oi + 1].split(',')) : null;
if (!slug || !out) { console.error('用法:node fetch_book.mjs <slug> <输出章名文件> [--only ch01,…]'); process.exit(2); }
const r = await fetch(`https://jianshuo.dev/voicedrop/books/${encodeURIComponent(slug)}/_src/book.json?_=${Date.now()}`, { signal: AbortSignal.timeout(30000) });
if (!r.ok) { console.error(`书架上没有 ${slug}(HTTP ${r.status})`); process.exit(1); }
const b = await r.json(), chs = (b.chapters || []).slice().sort((x, y) => x.no - y.no);
const name = t => String(t || '').split(/\s*·\s*/).slice(1).join(' · ') || String(t || ''); // 「第一章 · 一个家的操作系统」→「一个家的操作系统」
const want = chs.filter(c => !only || only.has(`ch${String(c.no).padStart(2, '0')}`));
const notDone = want.filter(c => c.status !== 'done');
if (notDone.length) { console.error(`还没写完的章:${notDone.map(c => c.no).join(' ')}(书还在写,等写完再做)`); process.exit(1); }
fs.writeFileSync(out, chs.map(c => name(c.title)).join('\n') + '\n');
const stems = chs.map(c => String(c.no).padStart(2, '0'));
console.log(JSON.stringify({ slug, title: b.title, author: b.author || '', type: b.type, chapters: chs.length, stems, briefs: chs.map(c => c.brief) }, null, 1));
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |