SuperAPI AI Directory

web-shader-extractor

Frontend & websites

View repository

Updated 10-16 01:36

About this skill

web-shader-extractor (install-on-demand companion)

This is a thin wrapper. The upstream skill has no open license, so motion-anything cannot redistribute its code — it is fetched on demand instead. Everything below is motion-anything's own description; the implementation lives upstream.

What it does

Locks onto a page's rendering surface (WebGL/WebGPU/Canvas), records shader / resource / render-graph / timing / input evidence, builds an evidence-matched local baseline, then projectizes it into a standalone runnable. This is the right tool for the "复杂网页效果 (WebGL / 高斯泼溅)" need that our 2D compositor deliberately does not draw — see WEBGL.md.

How to invoke

  1. If not already installed, fetch it (one-time, needs network):
    npx skills add https://github.com/lixiaolin94/skills --skill web-shader-extractor
    
  2. Then follow that skill's flow against the target URL / effect.
  3. Bring the extracted effect back as a background layer in an HTML artifact; motion-anything adds the surrounding tasteful motion.

Note for maintainers

If lixiaolin94/skills adds a permissive license, vendor it here properly (like skills/web-clone) so it ships offline with the product. Until then, keep this wrapper. Upstream: https://github.com/lixiaolin94/skills