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 <书名>".
kits/vangogh/kit.json
View on GitHub{
"name": "vangogh",
"label": "后印象派·梵高笔触(钴蓝漩涡夜空、灯黄赭金、赤陶地板、深靛蓝描边;全部用短笔触填色并缓存,手写 3/4 侧面的人、椅桌筹码灯窗钟书杯烛天平沙漏门等道具)",
"grammar": "y4_storytime(人物叙事、一桌一灯一人的静观)+ 少量图示段落(笔触柱/线/数字牌)",
"recipe": "09_postimp",
"fits": "人文与情感题材:孤独、坚持、等待、失败与重来、人生选择、夜晚与内心独白、心理与成长、文学与艺术家传记、带牌桌/酒馆/书房/旅途这类有「一盏灯、一把椅」的具象场景;一人一物的静观叙事;2 小时长片也撑得住(夜空漩涡可随章节表达平静/乱流/黎明)",
"avoid": "大量数据图表和精确数字(笔触底噪大,图表只能做 3–6 根柱/一条线的示意);硬核机制科普与尺度穿行(kurzgesagt 更对题);货币金融制度(banknote);需要写实人脸、真实档案照片、大量人物表情戏的题材;欢快喜剧、赛博科技(笔触夜空偏安静抒情)",
"from_book": "stay-at-the-table(《留在牌桌上》,评审选定;样张见 ~/art-films/_kittest/静帧)",
"fonts": [],
"fonts_note": "不另带字体:标题 PuHui-Black、标签 PuHui-Heavy、字幕 PuHui-Bold,都是引擎自带的思源黑体 Noto Sans SC GB2312 子集(SIL OFL 1.1,随 huashu-art-motion 引擎分发)。字一律「奶黄 #fff6d8 + 深靛蓝 #1c2458 描边」或深靛蓝/赭金牌子,字幕带有半透明深靛蓝底带",
"palette": "夜空钴蓝 #1b2a78→#2f4fb8→#8fb6ee|灯黄 #f6d84a / #fff2a0|赭金 #e3ad38 / #b57d1c|赤陶地板 #b5553b / #8a3a2c / #d7774a|深靛蓝描边与字 #1c2458|柏树绿 #1f4a2c|窗框绿 #2f8f58|筹码红 #d93a36|奶黄字 #fff6d8|人衣砖红 #c8472f、裤靛蓝 #2e4a9a(笔触里会混入橄榄灰绿 #5f8f6a 点缀)",
"api": "【全部都在 K 上;章节文件开头 const D = K, C = D.C, { W, H, TAU } = D。坐标 1080×1920,主体放 y200–1350,字幕带 y1380–1560 不放字/关键图形。】\n〔底〕K.bg(c,t,o) 整幅缓存位图+活物(星闪、灯晕环),每镜第一句调。o:preset 'night'夜空漩涡+远村+柏树+赤陶地板(默认,t003 主镜头)|'room'暖色室内蓝墙+地板(+窗 window:[x,y,w,h])|'window'深夜大窗景|'field'白天蓝天+黄麦田+赤陶小路|'plain'单色笔触墙(图示底,hue:'#hex');horizon 地平线y(900;night/field 天空到此,传 1920=整屏夜空,章节卡用);floor 有无赤陶地板(true;floor:false 时 night 下方是暗绿靛蓝地);lamp [x,y]|false 灯晕中心(night/room 默认[640,350],灯罩用 K.lamp(c,640,364) 叠上去);moon/stars/village/cypress('left'|'right'|false);swirls 漩涡数;chaos 0..1 漩涡变乱(波动);dawn 0..1 天色转黄光(星退、日出);dim 0..1 压暗(熄灯);tint ['#hex',0..1] 整体偏色;pal {sky,floor,wall,halo,ground,cypress,village} 覆盖色带(暗→亮的 hex 数组,可用 K.PAL.xxx / K.ramp('#hex'));seed 漩涡布局变体;boil 0|2 背景沸腾(默认 0 静止);live:false 关星闪灯晕环;vignette:false 不烤暗角。冷启动每个新配置 0.4–0.9s,同一本书请只用少数几个配置;K.prewarm([o,…]) 可预建。最多缓存 5 幅(LRU)。\n〔笔触基础〕K.paint(c,shape,pal,o) 用短笔触填满 shape(立即模式,几百~几千笔,必须放 K.once/K.sprite 里,别每帧调):shape=多边形[[x,y]..]|矩形[x,y,w,h]|{e:[cx,cy,rx,ry,rot]}|{r:[x,y,w,h,radius]}|{pts,smooth:true}|Path2D/(p)=>{}(这两种要 o.box);pal=色带数组(暗→亮)或 K.PAL 名;o:cell(8) len(18) width(5.5) angle(弧度|(x,y)=>弧度|'vert'|'horiz'|'diag'|'swirl') seed tone(x,y)=>0..1 shade[lx,ly,amt] spread base outline edge lw ec amp alpha clip。K.stroke(c,pts,pal,{width,seed,step,outline}) 沿折线铺笔触粗线;K.rough(c,pts,{closed,lw,col,amp,seed}) 抖动深靛蓝线;K.sprite(key,[x0,y0,x1,y1],(g,v)=>{…局部坐标画…}) 缓存成小位图,K.blit(c,spr,x,y,{s,sx,sy,flip,rot,alpha,ax,ay}) 贴图——自建道具用这一对;K.ramp('#hex',n=5) 暗→亮色带;K.PAL{sky skyDawn skyDay wall wallDark floor wood woodDark gold halo red green cypress night wheat cream skin brick cobalt paper glass};K.glow(c,x,y,r,a,'r,g,b') 加色光;K.haloRings(c,x,y,t,{n,r0,r1,speed,a,lw,k}) 灯晕脉动环;K.star(c,x,y,r,t,k) 闪星;K.poly/round/circle/ellipse/smooth 路径;K.mixHex(a,b,k) K.shade(hex,k)。\n〔时间/相机〕K.at(lt,a,d) K.pop(lt,a,d) K.once(k,f) K.t0(id) K.world(c,cam,fn) K.damped(t,t0,amp,period,decay) K.last(t,arr) K.boilV(t,n,fps)。\n〔道具〕统一 K.xxx(c,x,y,o),(x,y)=落地点底部中心(灯/钟/窗/天平例外见下);通用 o:s 缩放(1) flip 水平镜像 alpha t(时间) boil(变体数,默认 2;沸腾=6fps 两套深蓝收边抖动,色块不闪,0 关);返回锚点(屏幕坐标)。比例:人 s=1 身高≈520,椅座高 134、桌面高≈285 与之配套,同一镜里人/桌/椅用同一 s。\n K.table(c,x,y,{s,w=640}) 带抽屉的桌 → {top 桌面中心,front,left,right,surfaceY};\n K.chair(c,x,y,{s,flip}) 梯背椅,默认面朝右(椅背在左),flip 面朝左 → {seat 座面中心(人 x=seat[0]-8*s),backTop,front,floor};\n K.chip(c,x,y,{s,w=120,col=K.C.red,h}) 单枚筹码(x,y=底面中心) → {top,base,mid,thick};K.chipStack(c,x,y,{n,s,w,cols:[色],lean 顶端偏移px,sway 摇摆px,t}) 一摞 → {top,base,height};K.chipPile(c,x,y,n,{per=6,gap,s,cols,w,t}) n 枚自动分几摞 → {tops};\n K.lamp(c,x,y,{s,on 0..1,top 吊线顶y(0),sway 摆角,glow 光半径,t}) (x,y)=灯泡位置,on<0.5 熄灯 → {bulb,shade};\n K.window(c,x,y,{w=330,h=400,sky:'night'|'dawn'|'day'|'dark'}) (x,y)=窗洞中心,绿窗框+漩涡夜空+柏树 → {center,top,sill};\n K.clock(c,x,y,{r=110,h=10.1}) (x,y)=表盘中心,h=钟点小时数可连续变;\n K.book(c,x,y,{open,col,w=230}) 躺放的书;K.cup(c,x,y,{col,steam=true}) 杯+热气;K.candle(c,x,y,{h=150,lit 0..1}) 烛+火苗光 → {flame,top};\n K.scales(c,x,y,{tilt -1..1(正=右盘沉),beam,s}) 天平 → {panL,panR 盘面中心(可摆筹码),pivot};K.hourglass(c,x,y,{p 0..1 沙已漏比例,s}) → {top,neck,base};\n K.door(c,x,y,{w=240,h=520,open 0..1,s}) (x,y)=门洞底边中心,开门透灯黄光 → {center,base,top};K.cards(c,x,y,{n=3,spread,faces:[['A','h'],…](花色 h红桃 d方块 s黑桃 c梅花;缺省牌背),s,lift});K.sunflowers(c,x,y,{s}) 向日葵花瓶;K.cypress(c,x,y,{h=520}) 柏树。\n〔人〕K.person(c,x,y,o) (x,y)=脚底/椅下地面;3/4 侧面,默认面朝右。o:pose 'stand'站|'sit'坐|'think'托腮坐|'slump'垂头坐|'cheer'举臂|'walk'走|'hold'双手捧胸前|'reach'近手前伸|'despair'抱头 (K.POSES);to+mix(0..1) 混向另一姿势(内部量化 1/8);sit:true/false 强制坐/站;seat 座高(134);mood 'calm'|'sad'|'happy'|'tired'|'worry'|'firm'|'shock'|'none';hat 'straw'|'cap'|'beret'|'none'(默认 none);beard true|'#hex';top 上衣色(砖红'#c8472f')/pants(靛'#2e4a9a')/shoe/skin/hair/hatCol/band/collar;handN/handF [x,y] 屏幕坐标:近手/远手伸到这里(按在筹码上、放在桌面);walk 步态相位弧度(内部量化 12 步,如 t*5);dir 1|-1;s;t(呼吸/沸腾);react 反应时刻(头点一下);layer 'all'|'back'|'front'(人坐桌后、手在桌面上时:person(back)→K.table→person(front),两次传同样参数);alpha;boil。返回 {head,top,mouth,chest,hip,seat,handN,handF,elbowN,feet}。K.crowd(c,cx,y,{cols=7,rows=2,gap=120,s,seed,hi:[序号]被灯照亮的几个}) 头肩剪影人群 → {top}。\n〔图示〕K.arrow(c,x0,y0,x1,y1,p,{col:'gold'|'red'|'cream'|'cobalt'|'#hex',w,bend,head}) 笔触箭头 p 0..1 画出;K.bars(c,x,y,w,h,vals,p,{labels,cols,hi,max,fmt,note='示意',size}) (x,y)左上、基线 y+h,p 逐根长出;K.line(c,x,y,w,h,vals,p,{col,min,max,labels:[首,尾],note,dots}) 折线 → 末点;K.num(c,'70%',x,y,lt,at,{size=120,fill}) 弹出的大数字金牌;K.plate(c,s,x,y,{size=52,fam,fill:'ink'|'gold'|'red'|'cobalt'|'cream',scale,alpha,rot,padX}) 笔触牌子(K.tag 同),返回牌宽。\n〔字〕K.text(c,s,x,y,{size=64,fam='PuHui-Black'(标题 Black/标签 Heavy/字幕 Bold),col=奶黄,stroke=深靛蓝,sw,align,alpha,scale,track,maxW,rot,shadow}):奶黄字+深靛蓝描边,压在笔触上也清楚;K.popText(c,s,x,y,lt,at,{plate,fill,size,…}) 弹出字/牌;K.callout(c,s,ax,ay,bx,by,lt,at,{fill,size}) 引线+打字牌;K.split2(s) 长标题拆两行。\n〔收尾/章节〕K.finish(c) 每镜最后调(字幕带压暗;暗角已烤进 K.bg);K.CHAPTER_NAMES;K.chapterCard(c,lt,t,n,title) 整屏夜空+金牌「第 n 章」+大标题逐字打出+N 站星路(n 站金星带发光、已过金点、未到暗点)+小金星走过去;最后一章天色转黄(K.CARD_DAWN_LAST=false 关);K.CARD_TINTS 各章偏色;K.cardToken(c,x,y,lt,t,moving,arriveAt) 走路的小星,可在 props.js 里整个覆盖成本书贯穿物(如筹码);K.subtitle(c,text,a) 整宽半透明深靛蓝底带(上下羽化,.78)+奶黄字深靛蓝描边 54px,y≈1482。",
"notes": "1) 用法套路:每镜 K.bg → 远景道具(空椅) → K.person(layer:'back') → K.table → 桌面物(筹码/书/杯) → K.person(layer:'front') → K.lamp → 字/图示 → K.finish。人坐椅上:const ch=K.chair(c,cx,gy,{s}); K.person(c,ch.seat[0]-8*s,gy,{s,pose:'sit'…}),gy 是地面 y。\n2) 性能:K.paint/K.stroke 是立即模式(贵),绝不放每帧路径里直接调;自己的新道具一律包进 K.sprite(key,box,fn) 再 K.blit。背景/道具/人物位图都在缓存里,每帧只贴图+画星闪、灯晕环、火苗、热气、指针、箭头、柱线。实测每镜每帧 8–37ms(无头 Chromium 软件光栅,保守值),冷启动首帧 0.6–1.1s(建背景缓存)。人物走路首个周期每个相位建一次(12 个,每个≈30ms)。\n3) 色板锁:钴蓝夜空 #1b2a78–#8fb6ee、灯黄赭金 #f6d84a/#e3ad38、赤陶地板 #b5553b、深靛蓝描边 #1c2458;人的衣色用 top/pants 在色板内换(砖红 #c8472f、赭黄 #d9a02a、钴蓝 #3a5fb4、奶白),别引入粉紫霓虹。章节情绪用 bg 的 chaos/dim/dawn/tint/pal 偏移,不换画风。\n4) 人:3/4 侧面成年人(头身约 1:5.5,手写多边形+笔触+深蓝补线),五官极简(一只眼+眉+鼻+嘴线,beard 时嘴被胡子盖住,要表情就别加 beard);不画写实脸、不画 Q 版。制作规范里「不画脸」对本套件放宽为:只用 K.person 的 mood。人群一律 K.crowd 剪影。\n5) 字:标题/字幕只用引擎自带 PuHui-Black/Heavy/Bold(GB2312);屏上字≥44px;字幕带 y1380–1560 的画面已被 K.finish 压暗,字幕本身有深靛蓝底带。\n6) 已知限制:相机推近 >1.4 倍时缓存位图(1× 分辨率)会略糊;K.person 只有 3/4 侧面(无正面/背面)、手不会抓握细物;bg 背景默认静止,只有星闪/灯晕环动(o.boil=2 才整幅沸腾,慎用,会读成闪烁);K.bg 同时只缓存 5 幅(≈8MB/幅);章节卡冷启动约 1s。",
"placeholder_bg": "K.bg(c, t, { preset: 'night' })"
}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: 196k | 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: 196k | 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: 196k | Updated | Claude CodeCodex | Verified | Install |