anbeime/skill / skills/RuiC-card-skill/RuiC-card-skill
RuiC-card-skill
UnverifiedGenerate interactive 3D holographic collectible-card websites from a user description or reference image, using layered artwork, Blender and Three.js. Includes project-local Blender installation, reusable parallax materials and browser verification. Host-agnostic — any harness that runs a multimodal model can use it, since the model draws the layer artwork and inspects the rendered frames. Use when the user asks for 全息闪卡, 镭射卡, 3D 卡牌网页, a holographic collectible card site, or an editable card.blend.
scripts/export_web.py
View on GitHubimport bpy,sys,json
from pathlib import Path
args=sys.argv[sys.argv.index('--')+1:] if '--' in sys.argv else []
root=Path(args[0]) if args else Path(__file__).resolve().parent
blend=next((p for p in [root/'card.blend'] if p.exists()),None)
if blend is None: raise FileNotFoundError('Missing card.blend')
bpy.ops.wm.open_mainfile(filepath=str(blend))
pivot=bpy.data.objects['转卡控制 · 播放时间线预览']; pivot.animation_data_clear(); pivot.rotation_euler=(0,0,0)
materials={}
for role in ['front','edge','back','text','gold','subject','effects']:
m=bpy.data.materials.new('web_'+role); m.diffuse_color=(.7,.5,.2,1); m.use_nodes=True; materials[role]=m
cardcol=bpy.data.collections['卡牌 · 可复用成品']
relief=any('Relief' in o.name for o in cardcol.objects)
bpy.ops.object.select_all(action='DESELECT')
for ob in list(cardcol.objects):
if ob.type!='MESH': continue
if 'Relief subject' in ob.name:
ob.data.materials.clear(); ob.data.materials.append(materials['subject']); ob.select_set(True); continue
if 'Relief effects' in ob.name:
ob.data.materials.clear(); ob.data.materials.append(materials['effects']); ob.select_set(True); continue
if '文字平面' in ob.name:
if not relief: ob.hide_render=True; continue
ob.data.materials.clear(); ob.data.materials.append(materials['text']); ob.select_set(True); continue
if '主体平面' in ob.name:
old_indices=[p.material_index for p in ob.data.polygons]
ob.data.materials.clear()
for role in ['front','edge','back']: ob.data.materials.append(materials[role])
for p,i in zip(ob.data.polygons,old_indices): p.material_index=i
ob.select_set(True); continue
role='gold' if '古金' in ob.name else 'edge'; ob.data.materials.clear(); ob.data.materials.append(materials[role]); ob.select_set(True)
pivot.select_set(True)
output=root/'web'/'assets'/'card.glb'; output.parent.mkdir(parents=True,exist_ok=True)
bpy.ops.export_scene.gltf(filepath=str(output),export_format='GLB',use_selection=True,export_materials='EXPORT',export_animations=False,export_cameras=False,export_lights=False,export_yup=True)
print('EXPORTED',output,'relief' if relief else 'composite')
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |