Light Spotlight Render
Workflow
- Collect the animation parameters:
label_textswing_angle_degreesswing_cycle_secondslamp_scaleglow_opacitymask_colortext_colorbackground_colorvideo_widthvideo_height- optional
output
- Resolve the installed skill directory and run
scripts/render_light_spotlight.py. - Return the final absolute HTML path printed by the script.
Command
Installed Skill Resolution
Use the installed skill copy, not the source repo checkout:
Behavior
- Read
assets/light_spotlight_template.html. - Replace template placeholders with sanitized parameter values.
- Keep the SVG spotlight animation self-contained in one HTML file.
- Default output name is derived from
label_text. - Preserve the top-vertex lamp scale pivot so the spotlight grows from the lamp tip rather than the swing axis.
- Allow
background_color=transparentfor transparent-background workflows.
Output
- Primary output: a standalone
.htmlanimation file. - Tell the user to open the HTML file in a browser to preview the animation.
- If the user wants video output after generating the HTML, suggest rendering it with another tool or browser capture flow rather than rewriting the skill.

