Token导航 LogoToken导航

Agent Skill · 前端设计

editorial-card-screenshot(编辑卡截图)

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

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

总安装 1,576周安装 65GitHub Stars 377下载 515核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/shaom/infocard-skills --skill editorial-card-screenshot

这个 Skill 是做什么的

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

用于将文本转化为高密度信息卡片并生成截图。适合在 Codex、Claude、Cursor、Gemini CLI 中制作社交媒体素材。输出三阶段:密度评估、HTML/CSS 生成、自检防裁剪。需确保 body 高度稳定,避免动态内容导致截图不一致。

editorial-card-screenshot 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/editorial-card-screenshot

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

editorial-card-screenshot 怎么安装?

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

editorial-card-screenshot 支持哪些 AI 工具?

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

editorial-card-screenshot 需要什么权限?

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

editorial-card-screenshot 是免费的吗?

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

editorial-card-screenshot 用的人多吗?

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

editorial-card-screenshot 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

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

值得选的地方

  • 同时适配 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只读未明确通过
editorial-card-screenshot

编辑卡截图 · 本页

1,576377操作浏览器未明确有提醒

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

SKILL.md 原文

Editorial Card Screenshot

Overview

Turn source text into a compact, high-contrast HTML information card that follows the user's editorial prompt, then render a screenshot in one of the supported aspect ratios. The goal is not just density but editorial quality: clear hierarchy, strong visual anchors, and screenshot-stable rendering without accidental cropping or dead space.

Always preserve three output stages unless the user explicitly asks to skip one:

  1. Write one sentence judging the information density as high, medium, or low.
  2. Output the complete HTML with embedded CSS.
  3. Self-check that body text remains readable on mobile.

Workflow

1. Analyze Content Density

Choose layout strategy from the content itself:

  • Use "big-character" composition when content is sparse and a single phrase, number, or hook can carry the page.
  • Use a two-column or three-column editorial grid when content is dense and needs stronger hierarchy.
  • Use oversized numbers, heavy rules, tinted blocks, and pull-quote scale to avoid dead space.
  • Do not force dense content into evenly weighted tiles. Build primary blocks, secondary blocks, and lighter supporting blocks.
  • Match structure to content type:

- Ranking / recommendation content: allow asymmetric hero + structured list. - Tutorial / analysis / interpretation content: group into overview, core judgment, interpretation, boundary, and conclusion.

Before compressing content, first change the layout skeleton.

  • Ratio changes should primarily change reading path, hierarchy, and module arrangement.
  • Do not treat ratio changes as a reason to delete content by default.
  • Only compress, group, or summarize when the current ratio cannot hold the content clearly after layout has already been restructured.

2. Apply the Stored Editorial Rules

Use these defaults unless the user overrides them:

  • Import Google Fonts: <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@700;900&family=Noto+Sans+SC:wght@400;500;700&family=Oswald:wght@500;700&family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
  • Keep body text at 18px to 20px on a 900px-wide composition.
  • Keep meta/tag text at 13px minimum.
  • Use compact spacing: container padding 40px to 50px, component gaps 30px to 40px, line-height 1.5 to 1.6.
  • Add visual weight with 4px to 6px accent rules, subtle gray planes, and 4% noise overlays.
  • Favor #f5f3ed or similar warm-paper backgrounds unless the user supplies another palette.
  • Preserve breathing room. Do not shrink outer margins so much that the card loses composure.
  • For title zones, prefer larger line-height and clearer separation from subtitle / summary blocks.
  • In dense right-side modules, reduce font weight slightly so the page stays clear without feeling heavy.
  • Use stronger internal structure inside blocks: subheads, bullets, numbered lines, compare rows, or secondary labels.
  • Avoid equal-weight boxes when the card is dense. At least one module should feel visually heavier than the others.
  • Avoid making every module use the exact same visual language. Differentiate at least one or two areas through tone, scale, background treatment, or typographic weight.
  • Default to a calm editorial mode with selective highlights. If the user asks for stronger expression, you may push toward:

- Bold: more cover-like, stronger anchors, larger weak-background text, heavier accents. - Refined: lighter contrast, quieter accents, more restrained paper-like atmosphere. - Hybrid: the recommended default when style is not specified; refined overall with a few bold anchor moments.

  • Keep Google Fonts imports, but always provide local fallback stacks so the rendered PNG stays structurally stable when remote fonts fail to load.
  • If the user explicitly provides a title, use that exact title as the main headline by default. Only compress or reinterpret it when the user asks or when the ratio cannot hold it clearly after layout changes.
  • Put interpretation, summary, and framing in the subtitle / deck / summary fields instead of silently rewriting the main title.
  • Do not hard-code personal signatures, creator avatars, or account handles into reusable cards unless the user explicitly asks for branding.

3. Choose the Right Layout Skeleton

Pick ratio-specific structure before writing final copy.

4:3
  • Best for full analytical spread or ranked lists.
  • Prefer: hero + summary band + dense two-column list + stronger footer.
  • Use one main judgment block before the list so the page does not become a flat wall of 10 equal items.
  • Recommended reusable skeleton:

- left heavy primary module for the main process / sequence / framework - right narrower stack for takeaways, pitfalls, or judgments - a light but intentional source / core-judgment strip at the bottom

  • Avoid making 4:3 a symmetrical two-column newspaper wall from top to bottom.
3:4
  • Keep the same information ambition, but change the reading path.
  • Prefer: title band + insight row + mixed large/small body modules.
  • Use mixed scales: one heavy primary block, one or two medium blocks, and smaller support blocks.
  • Do not let the whole portrait card collapse into a long single column.
  • Recommended reusable skeleton:

- strong cover-style title zone - compact stat strip or insight strip - one large primary module - one medium judgment module - two smaller lower modules for takeaways / pitfalls / examples

  • Avoid lower-half layouts that become two large empty boxes with only a few lines of copy.
1:1
  • Best for ability map, grouped comparison, or balanced editorial overview.
  • Prefer: strong hero + one heavier quadrant + three supporting quadrants + dense footer strip.
  • Square layouts should feel centered and modular, not evenly tiled.
  • Do not treat 1:1 as the default skeleton for every card. Pick it only when the output ratio is actually square.
  • Recommended reusable skeleton:

- strong title / subtitle hero across the top - one compact stat strip - one heavy left module for the main framework or sequence - one upper-right judgment module - one lower-right split for takeaways / pitfalls or compare blocks - one thin source / core-judgment strip at the bottom

  • Avoid four equal quadrants and avoid tiny typography spread across too many boxes.
Wide covers (3:1, 5:2, 2.35:1)
  • Reduce paragraph length aggressively.
  • Use fewer but larger blocks, stronger headlines, and short support lines.

4. Build HTML for Rendering

When HTML will be screenshotted, design the page as a fixed-size canvas instead of a responsive webpage:

  • Match the exact pixel dimensions of the selected ratio preset from references/ratios.md.
  • Treat the card as a design board with explicit width and height, not as a fluid 100vw / 100vh layout.
  • Remove browser-default margins with html, body {margin: 0;}.
  • Make the card itself fill the screenshot viewport exactly.
  • Avoid interactions, sticky headers, or long scrolling sections.
  • Use fixed pixel wrappers, for example: .frame {width: 2000px; height: 1500px;}.card {width: 100%; height: 100%; padding: 48px; background: #f5f3ed;}

Do not rely on 100vw, 100vh, or responsive container widths as the primary design size for screenshot output.

If the user asks only for HTML, still make the layout screenshot-ready.

At the same time, preserve basic browser preview behavior:

  • In screenshot mode, html, body, and the outer frame should match the target canvas size exactly.
  • In mobile / narrow-width preview mode, add a media-query fallback that returns the page to normal flow so the HTML is still readable outside the screenshot workflow.

Use these structural heuristics when composing the card:

  • Fill the proportion intentionally. Rebalance layout according to width / height instead of scaling one static template.
  • In 4:3 landscape, asymmetric left-right layouts often work best for dense analytical content.
  • In 3:4 portrait, use portrait-friendly mixed grids rather than a single narrow column.
  • Keep title, subtitle, summary, and modules separated by explicit rows or bands so they do not collide.
  • When the user supplied the title, protect it as a first-class anchor. Expand the layout around it before you consider shortening or paraphrasing it.
  • If using numbered modules, keep numbers visually weak enough that they never collide with titles.
  • If a section becomes visually monotonous, introduce contrast through hierarchy changes rather than decorative clutter.
  • Let big modules carry richer copy than small modules. Do not give every block the same amount of text.
  • Do not use 1fr rows or columns in ways that can create large accidental voids near the footer or push important content to the canvas edge.
  • If the lower half feels empty, first rebalance module hierarchy or add a stronger bottom band before shrinking text or stretching containers.
  • If a lower module is visually large, give it enough internal structure or a secondary judgment line so it earns the area it occupies.

5. Capture the Screenshot

Use the bundled shell script when the user wants a PNG output:

./scripts/capture_card.sh input.html output.png 3:4

Supported ratios and render sizes live in references/ratios.md.

The rendering helper requires a local Chrome or Chromium binary. It first respects CHROME_BIN when set, then falls back to common binary names and a macOS Chrome app path.

Before running the script:

  • Save the generated HTML to a local file.
  • Ensure the page is self-contained except for fonts.
  • If you keep the default font imports, rendering will request Google Fonts over the network.
  • Ensure the HTML uses a fixed-size design canvas that matches the chosen ratio preset.
  • Ensure the viewport composition already matches the requested ratio.
  • Ensure fallback fonts are declared so layout remains stable even if font downloads fail during headless rendering.

If the screenshot still has bottom whitespace after layout has already been improved:

  • Keep the default ratio-specific screenshot as the primary output.
  • Only when the user explicitly accepts a slight aspect-ratio deviation, run the optional trim helper after rendering.
  • Treat trimming as a post-process fix, not as the default rendering behavior.

6. Ratio Policy

Accept only these ratio presets:

  • 3:4
  • 4:3
  • 1:1
  • 16:9
  • 9:16
  • 2.35:1
  • 3:1
  • 5:2

If the user gives a ratio outside this set, ask them to map it to the nearest supported preset rather than inventing a new one.

Output Contract

When responding to a card-generation request:

  • Start with exactly one sentence describing information density.
  • Then output complete HTML in one code block.
  • If the user also requested an image, state the ratio used and the screenshot command after the HTML.
  • Keep prose short; the HTML is the deliverable.

Resources

references/ratios.md

Open this when you need the exact preset names or capture dimensions.

references/editorial-card-prompt.md

Use this as the canonical prompt spec when the user wants the latest validated editorial-card behavior.

references/recommended-skeletons.md

Use this when you want ratio-specific reusable skeletons rather than one-off composition ideas.

scripts/capture_card.sh

Run this to capture a PNG from a local HTML file using a supported ratio preset. It requires a local Chrome or Chromium binary or an explicit CHROME_BIN override.

scripts/trim_card_bottom.sh

Run this only as an optional post-process when the user accepts a slightly shorter final image in exchange for removing bottom whitespace.

assets/card-template.html

Use this as a starting shell when you want a minimal ratio-ready HTML canvas before filling in real content. The template syncs its canvas size to the active viewport during capture, while still falling back to readable normal flow on narrower browser widths.

Failure Checks

Before finalizing HTML or PNG, explicitly reject the result if any of these happen:

  • A user-provided title was silently rewritten even though the ratio could have held it with a better layout.
  • The title overlaps, visually collides with, or blocks summary/body content.
  • The title becomes a narrow vertical strip when more horizontal width is available.
  • Dense cards are split into too many equal-weight boxes.
  • Large blocks contain too little copy and read like empty containers.
  • The canvas shows large areas of dead space that could be filled by stronger hierarchy, richer block content, or a heavier main module.
  • The PNG feels meaningfully emptier than the HTML layout intent.
  • The rendered PNG uses a different reading rhythm than the HTML because remote fonts failed and no local fallback stack was provided.
  • The footer or bottom band is cropped, or a large bottom whitespace strip appears because the grid sizing pushed content away from the lower edge.

平台分布

Codex

34.25%
按下载量换算176

Claude

30.48%
按下载量换算157

Cursor

20.84%
按下载量换算107

Gemini CLI

10.1%
按下载量换算52

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

操作浏览器

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

安装前确认

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

继续浏览同类 Skills