Token导航 LogoToken导航

Agent Skill · 前端设计

apple-bento-grid(Apple bento grid 命令行)

apple-bento-grid 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

apple-bento-grid 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 2,087。

总安装 2,916周安装 124GitHub Stars 163下载 1,022核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:apple-bento-grid(Apple bento grid 命令行)
来源仓库:https://github.com/hubeiqiao/apple-bento-grid
仓库路径:skills/apple-bento-grid
安装命令:
npx skills add https://github.com/hubeiqiao/apple-bento-grid --skill apple-bento-grid
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hubeiqiao/apple-bento-grid --skill apple-bento-grid

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

apple-bento-grid 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态进行整理。适用于生成 Apple 风格网格布局的 HTML 文件,用于截图导出和展示设计。

通过 npx skills add 命令从指定 GitHub 仓库安装,需确认主题模式和分辨率设置。安装前建议检查维护状态,避免触发不必要的文件生成或网络请求操作。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/apple-bento-grid

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/hubeiqiao/apple-bento-grid --skill apple-bento…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

apple-bento-grid 怎么安装?

在终端执行 npx skills add https://github.com/hubeiqiao/apple-bento-grid --skill apple-bento-grid。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

apple-bento-grid 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

apple-bento-grid 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

apple-bento-grid 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

apple-bento-grid 用的人多吗?

公开数据是累计安装 2,916 次,近一周安装 124 次,下载 1,022 次,GitHub 163 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

apple-bento-grid 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
apple-bento-grid

Apple bento grid 命令行 · 本页

2,916163操作浏览器未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Apple Bento Grid

Problem

Creating visually polished presentation graphics typically requires design tools like Figma or Keynote. This skill generates Apple-quality bento grid layouts as self-contained HTML files that screenshot into pixel-perfect images — no design tool needed.

Overview

Generate self-contained HTML files that render Apple-inspired bento card grids. Each output is a single HTML file with inline CSS — no dependencies except Google Fonts. Cards fill a tight CSS grid with minimal gaps, ready for Playwright screenshot export at 2x resolution. Both light and dark themes are available.

Workflow

  1. Read the design system selectively: Reference design-system.md as needed:

- Always read: Section 2 (Zero-Gap Grid) + Section 3 (Layout Templates) — the grid foundation - Read per card type: Section 5.1–5.7 as needed for the cards you're using - Read for theme: Section 1 (light tokens) or Section 9 (dark tokens) - Read once for first generation: Section 8 (HTML Skeleton) as a structural starting point

  1. Gather the user's content — what stats, milestones, categories, and quotes to showcase
  2. Choose a theme — suggest light, dark, or both based on the context (see Theme Selection below)
  3. Choose a layout — pick from the 3 layout templates based on card count and orientation
  4. Compose cards — select card types and fill with the user's content; prioritize density (no empty-feeling cards)
  5. Ask about logos/images — if the user has a logo or images, incorporate them (see Logos & Images below)
  6. Generate the HTML — produce a single self-contained HTML file
  7. Visual review — open the HTML in a browser and screenshot it to check for issues (see Visual Review below)
  8. Offer a vertical version — after generating a landscape grid, ask: "Want a vertical (portrait) version for social media?" and generate a Template C adaptation if yes
  9. Screenshot (optional) — use the Playwright script to capture PNGs at 2x

Visual Review

After generating the HTML, always view the output to catch visual issues before presenting to the user. Use Playwright, browser MCP tools, or open to render the file, then check for:

Orphan lines — A single pill tag or word wrapping alone to a new row. Fix by removing one pill so the remaining pills fill evenly, or add enough pills to fill two full rows.

Empty space — Cards that look sparse with too much whitespace. Fix by adding a subtitle, badge, or extra description text to fill the card.

Text overflow — Numbers or labels that are too long for their card width. Fix by reducing font-size or abbreviating (e.g., "$2.4M" not "$2,400,000").

Broken grid — Visible row gaps or misaligned cards. Check: no align-items: start, gap is exactly 6px, all grid cells are occupied.

Font fallback — Text rendering in system fonts instead of Sora/DM Sans. Ensure Google Fonts link is present and page has network access.

Screenshot clipping — Right or bottom edges of cards cut off in the exported PNG. Fix by ensuring viewport width matches the grid CSS width exactly and the clip uses box.x/box.y from boundingBox(), not x: 0, y: 0.

If any issues are found, fix the HTML and re-check. Do not present to the user until the output passes visual review.

Theme Selection

Suggest a theme based on context. When unsure, generate both.

ContextSuggested Theme
Slide deck / presentationDark — higher visual impact on projectors
Social media / portfolioDark — stands out in feeds
Report / document embedLight — matches white page backgrounds
Print / PDFLight — saves ink, better legibility
User says "Apple style"Light — Apple's signature look
User says "modern" or "sleek"Dark — contemporary feel
No preference statedBoth — generate two files, let user choose

See design-system.md Section 9 for complete dark theme tokens, or Section 1 for light theme tokens.

Output Format

Always produce a single self-contained HTML file with:

  • <!DOCTYPE html> + <html lang="en">
  • Google Fonts <link> tags in <head>
  • All CSS in a single <style> block
  • All content in <body> — no JavaScript needed

Card Types Available

CardUse ForKey Feature
HeroTaglines, headlinesGradient top-border, spans 2 rows
StatNumbers + labelsColor-coded accent per category
CategoryGrouped items (phases, teams, quarters)Color label + subtitle + pill tags
Bar ChartGrowth / comparison over timeGradient bars, header badge
BadgeTool attribution, featured calloutIcon pill + stat number
QuoteMission statement, testimonialDark bg, white text, green <em>
HighlightHero number (3x, 10x, 100%)Full-gradient background

Layout Templates

TemplateColumnsWidthAspect RatioBest For
A: Horizontal4-col1200px52/2512-16 cards, slides
B: Horizontal3-col1100px52/228-10 cards, focused
C: Vertical2-col600pxnone (content)8-14 cards, social

Critical: Zero-Gap Grid Rules

These 5 rules are mandatory for Apple-like appearance. See design-system.md Section 2 for details.

  1. NEVER set align-items: start — default stretch fills cells
  2. Use aspect-ratio on horizontal layouts to lock container shape
  3. Rows: 1fr for horizontal, auto for vertical
  4. Gap: 6px (not 8px)
  5. Every grid cell must be occupied — no empty cells

Screenshot Export

Use the Playwright script at scripts/screenshot.mjs to capture pixel-perfect PNGs.

cd scripts
npm install
npx playwright install chromium
node screenshot.mjs

Edit the pages array in screenshot.mjs to point to your HTML files. Each entry needs: file (HTML path), output (PNG path), viewportWidth (match grid width).

Critical: Viewport must match grid width. If the viewport is wider than the grid, the grid gets centered and the clip can cut off the right edge. Always set viewportWidth to the exact grid CSS width (1200 for 4-col, 1100 for 3-col, 600 for 2-col).

Critical: Clip must use element position. When clipping to the grid element, use box.x and box.y from boundingBox(), not x: 0, y: 0. If the grid is centered in a wider viewport, x: 0 will start the clip before the grid and cut off the right side.

After screenshotting, always view the output image to verify no edges are clipped. Check that the rightmost and bottommost cards are fully visible with their border-radius intact.

Logos & Images

Users can add their own logos or images to bento grid cards. Ask the user if they have any logos or images they'd like included.

Placement options:

LocationHowBest For
Hero card corner<img> with position: absolute; top: 20px; right: 20px; width: 40px;Company logo
Badge card iconReplace the SVG in .badge-pill with an <img> tag (width: 16px; height: 16px; border-radius: 4px;)Tool/framework logo
Full card backgroundbackground-image: url(...) with overlay gradient for text readabilityFeature screenshots
Standalone image card<img> filling the card with object-fit: cover; border-radius: 18px;Product photos

Guidelines:

  • Use <img src="path/to/file.png"> with a local file path — the HTML is for screenshot export, not hosting
  • Keep logos small (24–48px) so they don't dominate the card
  • For dark theme, ensure logos work on dark backgrounds (use white/light versions)
  • Always add alt text for accessibility

Content Adaptation

User's DataRecommended TemplateCard Mix
3–5 stats, no categoriesC (2-col vertical)1 Hero + 3–5 Stats + 1 Quote
6–8 stats, 1–2 categoriesB (3-col horizontal)1 Hero + 4–6 Stats + 1–2 Categories + 1 Chart
8–12 stats, 3+ categoriesA (4-col horizontal)Full mix: Hero, Stats, Categories, Chart, Badge, Quote, Highlight
Social / portrait formatC (2-col vertical)Any mix, smaller fonts

Density rule: Every card should feel full. If a card looks sparse, add a subtitle, badge, or pill tags. If the grid has visible empty space, either span a card across cells or add a supporting card.

Customization Checklist

  1. Gather content — stats, categories, milestones, quotes
  2. Choose theme — light, dark, or both
  3. Choose layout — 4-col, 3-col, or 2-col
  4. Name grid areas — readable names matching content
  5. Select card types — Hero, Stat, Category, Chart, Badge, Quote, Highlight
  6. Assign accent colors — one per category, max 3–4 accents
  7. Set dimensions — viewport width matches grid width
  8. Lock aspect ratio — horizontal only; omit for vertical
  9. Verify density — no empty-feeling cards, no unused grid cells, gap 6px
  10. Scale for orientation — vertical gets smaller fonts, padding, radius
  11. Screenshot — Playwright at 2x, viewport matches grid width

Verification

After generating a bento grid HTML file:

  1. Open in Chrome or Safari — verify all grid cells are filled with no visible row gaps
  2. Check font loading — Sora and DM Sans should render (not system fallback)
  3. For dark theme — verify card backgrounds are #1a1a1a, not #fff
  4. Screenshot at the correct viewport width (1200/1100/600) at 2x resolution
  5. Confirm density — no card should have excessive whitespace

Notes

  • Google Fonts requires internet access; grids fall back to system fonts offline
  • Playwright screenshot is optional; users can take manual browser screenshots
  • aspect-ratio is only for horizontal layouts; vertical layouts flow from content height
  • Maximum 3–4 accent colors per grid to maintain Apple-like restraint
  • This skill produces static HTML for screenshot export, not interactive dashboards
  • For grids with fewer than 6 data points, Template C (2-col vertical) usually works best

Reference Files

平台分布

Codex

37.34%
按下载量换算382

Claude

30.89%
按下载量换算316

Cursor

20.01%
按下载量换算205

Gemini CLI

9.52%
按下载量换算97

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills