anbeime/skill / skills/cy-carousel-skill/cy-carousel-skill
cy-carousel
Verified制作 AI 科技类小红书图文轮播(封面+10张内页,1440×1920,暗底或浅色纸底,电子青强调色):讲一个 AI 概念、一篇论文或一个产品,体裁是「AI 学习笔记」。查证一手出处、找开放授权素材(论文原文、真实截图、人物照),用 scripts/手排.py 照 ELIZA 的做法逐页手排(毛笔双色标题、原文纸条放大加红圈、电子青大数字、问句贴条),再用 render.py 渲染、check_all.py 检查、package.py 打包。用户要做 AI/科技/论文/产品类图文,或复用、精修这类轮播时使用。
scripts/验证留白.py
View on GitHub"""历史暗色篇留白统计;浅色篇使用浅色排版.blank_paper。"""
from pathlib import Path
from PIL import Image
import numpy as np
from 图像等比 import cover_cell
import argparse,json
def measure(path):
with Image.open(path) as image:a=np.asarray(cover_cell(image,(360,480)).convert('L'),dtype=float)
best=cur=0
for empty in (a.max(1)-a.min(1)<18):cur=cur+1 if empty else 0;best=max(best,cur)
tiles=[a[y:y+30,x:x+30] for y in range(0,480,30) for x in range(0,360,30)]
return round(sum(v.max()-v.min()<18 for v in tiles)/len(tiles)*100),round(best/480*100)
def check(paths):
rows=[dict(page=i,empty_tiles=t,empty_band=b) for i,(t,b) in enumerate(map(measure,paths),1)]
errors=[];mean=sum(r['empty_tiles'] for r in rows)/max(1,len(rows))
if not rows:errors.append('没有传入内页')
if mean>20:errors.append(f'暗篇空格子均值{mean:.1f}%>20%')
if sum(r['empty_tiles']>22 for r in rows)>4:errors.append('空格子>22%的页面超过4页')
errors.extend(f'P{r["page"]:02}连续空带{r["empty_band"]}%>12%' for r in rows if r['empty_band']>12)
return {'passed':not errors,'mean_empty_tiles':mean,'pages':rows,'errors':errors}
if __name__=='__main__':
ap=argparse.ArgumentParser();ap.add_argument('images',type=Path,nargs='+');a=ap.parse_args();r=check(a.images)
print(json.dumps(r,ensure_ascii=False,indent=2));raise SystemExit(0 if r['passed'] else 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 |