Moments Generator Skill
This skill generates a realistic-looking WeChat Moments screenshot.
Usage
- •
Prepare Resources:
- •Ensure the user's avatar and any content images are saved locally (e.g., using
web_fetchorread).
- •Ensure the user's avatar and any content images are saved locally (e.g., using
- •
Create Configuration: Create a temporary JSON file (e.g.,
temp_moments_config.json) with the following structure:json{ "avatar": "/path/to/avatar.png", "name": "User Name", "content": "This is the text of the moment.", "images": [ "/path/to/image1.jpg", "/path/to/image2.jpg" ], "likes": ["Friend A", "Friend B"], "comments": [ { "name": "Friend C", "text": "Nice photo!" }, { "name": "Me", "text": "Thanks!" } ], "theme": "dark" }Note: Supports 1-9 images.
imagescan be empty.themedefaults to "light". - •
Generate Image: Run the generation script:
bashnode /home/crishaocredits/.openclaw/workspace/skills/moments-generator/scripts/generate.js temp_moments_config.json output_moments.png
- •
Deliver: Send the resulting
output_moments.pngto the user.
Dependencies
- •Node.js
- •pureimage (Bundled)
- •Fonts (Bundled/System)