← 返回 Skills 市场
limoxt

Bento Grid Generator

作者 limoxt · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
368
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install bento-grid
功能描述
Generate beautiful bento grid layouts for social media posts. Create Instagram/Twitter cards with statistics, calendars, music visualization, and custom layo...
使用说明 (SKILL.md)

Bento Grid Generator

Generate beautiful bento-style grid layouts for social media (Twitter/X, Instagram, LinkedIn).

When to Use

  • User wants to create "bento" style social media posts
  • User wants to visualize statistics, calendars, or data as cards
  • User wants to create music listening cards (Spotify-style)
  • User wants to create aesthetic grid layouts

Commands

create-bento-grid

Generate a bento grid with customizable cells.

python3 -c "
from PIL import Image, ImageDraw, ImageFont, ImageFilter
import random

def create_bento():
    w, h = 1200, 1200
    bg = (15, 15, 20)
    img = Image.new('RGB', (w, h), bg)
    draw = ImageDraw.Draw(img)
    
    cells = [
        {'r':0,'c':0,'rs':2,'cs':2,'clr':(255,99,71),'txt':'2024'},
        {'r':0,'c':2,'rs':1,'cs':1,'clr':(100,149,237),'txt':'Q1'},
        {'r':1,'c':2,'rs':1,'cs':1,'clr':(144,238,144),'txt':'Q2'},
        {'r':0,'c':3,'rs':2,'cs':1,'clr':(255,218,185),'txt':'Goals'},
        {'r':2,'c':0,'rs':1,'cs':2,'clr':(221,160,221),'txt':'Q3'},
        {'r':2,'c':2,'rs':1,'cs':2,'clr':(175,238,238),'txt':'Q4'},
    ]
    
    gap, cr = 10, 20
    cw = (w - gap*5) / 4
    ch = (h - gap*5) / 3
    
    for c in cells:
        x = c['c']*(cw+gap) + gap
        y = c['r']*(ch+gap) + gap
        wdt = c['cs']*cw + (c['cs']-1)*gap
        hgt = c['rs']*ch + (c['rs']-1)*gap
        draw.rounded_rectangle([x, y, x+wdt, y+hgt], radius=cr, fill=c['clr'])
        
        try: font = ImageFont.truetype('/System/Library/Fonts/Helvetica.ttc', 36)
        except: font = ImageFont.load_default()
        bbox = draw.textbbox((0,0), c['txt'], font=font)
        tw, th = bbox[2]-bbox[0], bbox[3]-bbox[1]
        draw.text((x+(wdt-tw)/2, y+(hgt-th)/2), c['txt'], fill=(255,255,255), font=font)
    
    img.save('/tmp/bento_grid.png')
    print('Created: /tmp/bento_grid.png')

create_bento()
"

create-stats-card

Create a statistics card with customizable metrics.

python3 -c "
from PIL import Image, ImageDraw, ImageFont

def stats_card():
    w, h = 800, 400
    img = Image.new('RGB', (w, h), (30, 30, 40))
    draw = ImageDraw.Draw(img)
    
    try:
        tf = ImageFont.truetype('/System/Library/Fonts/Helvetica.ttc', 28)
        vf = ImageFont.truetype('/System/Library/Fonts/Helvetica.ttc', 36)
        lf = ImageFont.truetype('/System/Library/Fonts/Helvetica.ttc', 16)
    except:
        tf = vf = lf = ImageFont.load_default()
    
    draw.text((30, 30), 'My Stats', fill=(255,255,255), font=tf)
    
    metrics = [('Followers','12.5K'),('Posts','248'),('Likes','45.2K')]
    for i,(lbl,val) in enumerate(metrics):
        x = 30 + i * 250
        draw.rounded_rectangle([x,80,x+220,h-30], radius=15, fill=(50,50,65))
        draw.text((x+20, 100), val, fill=(255,255,255), font=vf)
        draw.text((x+20, 160), lbl, fill=(180,180,180), font=lf)
    
    img.save('/tmp/stats_card.png')
    print('Created: /tmp/stats_card.png')

stats_card()
"

create-music-card

Create a Spotify-style music listening card.

python3 -c "
from PIL import Image, ImageDraw, ImageFont

def music_card():
    w, h = 600, 200
    img = Image.new('RGB', (w, h), (30, 30, 35))
    draw = ImageDraw.Draw(img)
    
    for i in range(h):
        draw.line([(0,i),(w,i)], fill=(30+i//5,30+i//2,35+i//3))
    
    draw.rounded_rectangle([20,20,160,180], radius=10, fill=(80,80,100))
    draw.text((60,80), '♪', fill=(200,200,200))
    
    try:
        tf = ImageFont.truetype('/System/Library/Fonts/Helvetica.ttc', 24)
        af = ImageFont.truetype('/System/Library/Fonts/Helvetica.ttc', 18)
    except: tf = af = ImageFont.load_default()
    
    draw.text((190, 50), 'Song Title', fill=(255,255,255), font=tf)
    draw.text((190, 90), 'Artist Name', fill=(180,180,180), font=af)
    draw.rounded_rectangle([190,150,500,155], radius=2, fill=(80,80,90))
    draw.rounded_rectangle([190,150,350,155], radius=2, fill=(0,200,100))
    
    img.save('/tmp/music_card.png')
    print('Created: /tmp/music_card.png')

music_card()
"

Output

All images saved to /tmp/: bento_grid.png, stats_card.png, music_card.png

Notes

  • Optimized for Twitter/X (1200x1200 works best)
  • Use gradients and rounded corners for modern aesthetic
安全使用建议
This skill appears coherent and low-risk for typical use: it runs local Python+Pillow code to produce images and saves them to /tmp. Before installing, ensure you are comfortable with the agent executing Python commands locally and that your runtime has Python3 and the Pillow package available (the SKILL.md references Pillow). Note the scripts try to use a macOS font path and fall back to a default font on other systems. Also be aware that files written to /tmp on multi-user systems may be accessible to other users — if that matters, change the output path. No credentials or network access are required by the skill. If you want extra caution, review the SKILL.md code yourself and run the snippets in a sandbox or isolated environment first.
功能分析
Type: OpenClaw Skill Name: bento-grid Version: 1.0.0 The skill bundle is benign. All Python code snippets in SKILL.md utilize the Pillow library to generate image files (bento grids, stats cards, music cards) with hardcoded content and save them to the `/tmp/` directory. There is no evidence of data exfiltration, malicious execution, persistence mechanisms, or prompt injection attempts against the agent. The code's behavior is entirely consistent with its stated purpose of creating social media image layouts.
能力评估
Purpose & Capability
The name/description (bento-style social-media images) aligns with the actual instructions and required runtime (python3 + Pillow). The requested binary (python3) and dependency (Pillow) are appropriate for image generation.
Instruction Scope
The SKILL.md contains explicit python -c snippets that create images and save them to /tmp (bento_grid.png, stats_card.png, music_card.png). The scripts do not call external network endpoints, read arbitrary user files, or access environment variables. They attempt to load a macOS system font (/System/Library/Fonts/Helvetica.ttc) with a fallback to Pillow's default font — on non-macOS systems the fallback will be used. Writing to /tmp is expected but may be visible to other local users on multi-user systems.
Install Mechanism
This is an instruction-only skill (no install spec, no downloaded code). The SKILL.md metadata lists Pillow under pip requirements, which is reasonable, but there is no remote installer or archive fetching. Risk is low provided the runtime has Python+Pillow available.
Credentials
No environment variables, credentials, or config paths are requested. The scripts do not reference secrets or unrelated system configuration.
Persistence & Privilege
The skill does not request always: true, does not modify other skills or system-wide settings, and has no persistent installation behavior described.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bento-grid
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bento-grid 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Generate bento grid layouts for social media
元数据
Slug bento-grid
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Bento Grid Generator 是什么?

Generate beautiful bento grid layouts for social media posts. Create Instagram/Twitter cards with statistics, calendars, music visualization, and custom layo... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 368 次。

如何安装 Bento Grid Generator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bento-grid」即可一键安装,无需额外配置。

Bento Grid Generator 是免费的吗?

是的,Bento Grid Generator 完全免费(开源免费),可自由下载、安装和使用。

Bento Grid Generator 支持哪些平台?

Bento Grid Generator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Bento Grid Generator?

由 limoxt(@limoxt)开发并维护,当前版本 v1.0.0。

💬 留言讨论