界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

moments-generator

moments-generator

【效率与协作】Generate a fake WeChat Moments (朋友圈) screenshot image. Use when user wants to simulate a social media post with avatar, text, images, likes, and comments.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: moments-generator description: Generate a fake WeChat Moments (朋友圈) screenshot image. Use when user wants to simulate a social media post with avatar, text, images, likes, and comments.

Moments Generator Skill

This skill generates a realistic-looking WeChat Moments screenshot.

Usage

  1. Prepare Resources:

    • Ensure the user's avatar and any content images are saved locally (e.g., using web_fetch or read).
  2. Create Configuration: Create a temporary JSON file (e.g., temp_moments_config.json) with the following structure:

    {
      "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. images can be empty. theme defaults to "light".

  3. Generate Image: Run the generation script:

    node /home/crishaocredits/.openclaw/workspace/skills/moments-generator/scripts/generate.js temp_moments_config.json output_moments.png
    
  4. Deliver: Send the resulting output_moments.png to the user.

Dependencies

  • Node.js
  • pureimage (Bundled)
  • Fonts (Bundled/System)
我的收藏