Eileenes/creative-skills / skills/x-profile-3d-promo
x-profile-3d-promo
Verified把一个社交媒体主页(X / 小红书 / 公众号等)的截图做成"3D 主页介绍片":暗色主页斜放在 3D 空间、头像里跳出 3D 小人、置顶内容立起展示 + 数字滚动、撕纸拼贴墙、Logo 收尾卡,带配乐音效。用户给出主页链接和/或参考视频、要求做"个人主页介绍片 / 账号宣传片 / 类似风格视频"时使用。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.7 KB |
| scripts/chroma_key.py | script | 600 B |
| scripts/grab_x_profile.js | script | 1.5 KB |
| scripts/make_audio.py | script | 2.5 KB |
| template/render.cjs | script | 1.6 KB |
| template/src/Root.tsx | other | 240 B |
| template/src/Video.tsx | other | 23.4 KB |
| template/src/index.ts | script | 88 B |
| template/tsconfig.json | config | 163 B |
scripts/grab_x_profile.js
View on GitHubconst { chromium } = require('playwright');
(async () => {
const b = await chromium.connectOverCDP(process.env.AGENT_BROWSER_CDP);
const ctx = await b.newContext({viewport:{width:1400,height:1000},deviceScaleFactor:2});
await ctx.addCookies([{name:'night_mode',value:'2',domain:'.x.com',path:'/'}]);
const p = await ctx.newPage();
await p.goto('https://x.com/Eileeness160708',{waitUntil:'domcontentloaded'});
await p.waitForTimeout(9000);
const hide = async()=>p.evaluate(()=>{ for(const e of document.querySelectorAll('*')){ if(e.children.length<40 && /See Soren’s full profile/.test(e.innerText||'') && e.getBoundingClientRect().height<400){ let x=e; while(x.parentElement && /See Soren’s full profile/.test(x.parentElement.innerText||'') && x.parentElement.getBoundingClientRect().height<500) x=x.parentElement; x.style.display='none'; break; } } });
await hide(); await p.waitForTimeout(500);
const tw = p.locator('article');
for (const i of [0,5]){ await tw.nth(i).scrollIntoViewIfNeeded(); await p.waitForTimeout(1500); await hide(); await p.evaluate(()=>{for(const e of document.querySelectorAll("*")){const s=getComputedStyle(e); if((s.position==="fixed"||s.position==="sticky") && /full profile|Continue to X/.test(e.innerText||"")) e.style.display="none";}}); await p.waitForTimeout(400); await tw.nth(i).screenshot({path:`xv/public/tweet${i}.png`}); }
await p.close(); await ctx.close(); process.exit(0);
})().catch(e=>{console.error(e);process.exit(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: 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 |