KKenny0/card-skill / plugins/card-skill/skills/card-skill
card-skill
UnverifiedTurn supplied text or evidence into PNG cards, article covers, and explanatory illustrations. Use for content-to-image requests, including card series and reading-note visuals.
assets/poster_template.html
View on GitHub<!--
══════════════════════════════════════════════════════════════════════
Poster Template (Single Card) — card-skill "多卡海报" mode
══════════════════════════════════════════════════════════════════════
Poster mode produces ONE HTML FILE PER CARD. A multi-slide poster is
a set of separate 1080x1440 HTML files that share this template.
Placeholders (replaced before rendering):
─────────────────────────────────────────────────────────────────────
{{BG_COLOR}} — background / canvas color (sets --bg)
{{ACCENT_COLOR}} — accent color (sets --accent)
LOGO / BRAND_NAME — optional active-markup substitutions; placeholders
are intentionally omitted from this comment block
{{HEADER_BLOCK}} — shared running header HTML (empty for a single card):
<div class="header">
<span class="running-title">…</span>
<span class="page-indicator">2 / 4</span>
</div>
{{TITLE_BLOCK}} — title area HTML (empty for continuation cards):
<div class="title-area">…</div>
{{BODY_HTML}} — card body content (paragraphs, items,
highlights, dividers, data-rows, etc.)
{{CARD_CLASS}} — optional card modifier class, including leading space
{{PAGE_INFO}} — "1 / N" page indicator text; empty for single-card
{{COLOPHON_BLOCK}} — colophon HTML (last card only, empty for others):
<div class="colophon">…</div>
══════════════════════════════════════════════════════════════════════
-->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<style>
/* ── Fonts ──────────────────────────────────────────────────────── */
@import url('file://{{FONT_BASE}}/local-fonts.css');
@font-face {
font-family: 'XiangcuiDengcusong';
src: url('file://{{FONT_BASE}}/XiangcuiDengcusong.ttf') format('truetype');
font-weight: normal;
}
/* ── Design tokens (brand-agnostic, overridden per card) ───────── */
:root {
--bg: {{BG_COLOR}};
--surface-1: #fbfaf6;
--surface-2: #e9e1d4;
--accent: {{ACCENT_COLOR}};
--ink: #2c2418;
--ink-muted: #6b6050;
--hairline: #d8cdbc;
--radius: 6px;
/* type system */
--sans: 'DM Sans', -apple-system, system-ui, sans-serif;
--zh-serif: 'XiangcuiDengcusong', Georgia, serif;
--mono: 'JetBrains Mono', 'SF Mono', 'Menlo', monospace;
}
/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
width: 1080px;
height: 1440px;
background:
radial-gradient(ellipse at 30% 18%, rgba(255, 248, 232, 0.32), transparent 58%),
var(--bg);
}
body {
font-family: var(--sans);
color: var(--ink);
-webkit-font-smoothing: antialiased;
}
/* ── Card container ────────────────────────────────────────────── */
.card {
width: 1080px;
height: 1440px;
background: transparent;
position: relative;
overflow: hidden;
padding: 90px 80px;
display: flex;
flex-direction: column;
}
/* ── Running header (continuation cards) ───────────────────────── */
.header {
display: flex;
align-items: center;
justify-content: space-between;
padding-bottom: 28px;
border-bottom: 1px solid var(--hairline);
margin-bottom: 48px;
}
.running-title {
font: 500 24px/1 var(--sans);
color: var(--ink-muted);
letter-spacing: 0.01em;
}
.page-indicator {
font: 500 24px/1 var(--mono);
color: var(--ink-muted);
letter-spacing: 0.02em;
}
/* ── Title area (title card only) ──────────────────────────────── */
.title-area {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
}
.title-area h1 {
font-family: var(--zh-serif);
font-size: 92px;
font-weight: 400;
line-height: 1.15;
color: var(--ink);
letter-spacing: 0;
text-wrap: balance;
margin-bottom: 24px;
}
.title-area .subtitle {
font: 400 36px/1.5 var(--zh-serif);
color: var(--ink-muted);
letter-spacing: -0.01em;
}
.title-area .topic-tag {
display: inline-block;
margin-top: 32px;
padding: 10px 24px;
background: var(--surface-1);
border: 1px solid var(--hairline);
border-radius: 4px;
font: 500 24px/1 var(--mono);
color: var(--ink-muted);
letter-spacing: 0.02em;
}
.subtitle-tag {
display: inline-block;
padding: 6px 16px;
background: var(--surface-2);
border-radius: 4px;
font: 500 22px/1 var(--mono);
color: var(--ink-muted);
letter-spacing: 0.02em;
margin-bottom: 24px;
}
/* ── Body content ──────────────────────────────────────────────── */
.body-content {
flex: 1;
display: flex;
flex-direction: column;
}
.body-content h2 {
font: 400 52px/1.2 var(--zh-serif);
color: var(--ink);
letter-spacing: 0;
text-wrap: balance;
margin-bottom: 40px;
}
.body-content p {
font: 400 36px/1.68 var(--zh-serif);
color: var(--ink);
letter-spacing: 0;
margin-bottom: 24px;
}
/* Sparse series cards use the canvas deliberately instead of looking empty. */
.card.sparse-poster {
justify-content: center;
}
/* Evidence and process cards use compact series chrome so the proof owns the canvas. */
.card.evidence-poster .title-area,
.card.process-poster .title-area {
flex: 0 0 auto;
justify-content: flex-start;
padding-bottom: 28px;
margin-bottom: 34px;
border-bottom: 1px solid var(--hairline);
}
.card.evidence-poster .title-area h1,
.card.process-poster .title-area h1 {
max-width: 880px;
font-size: 64px !important;
line-height: 1.12;
margin-bottom: 12px;
}
.card.evidence-poster .title-area .subtitle,
.card.process-poster .title-area .subtitle {
font-size: 30px;
line-height: 1.4;
}
.card.evidence-poster .header,
.card.process-poster .header {
margin-bottom: 34px;
}
.card.evidence-poster .body-content,
.card.process-poster .body-content {
min-height: 0;
}
.evidence-media {
width: 100%;
flex: 1 1 auto;
min-height: 0;
margin: 0 0 38px;
display: flex;
flex-direction: column;
}
.evidence-media img {
display: block;
width: 100%;
height: 0;
min-height: 360px;
flex: 1 1 auto;
border: 0;
border-radius: 0;
background: transparent;
}
.card.media-only-poster .evidence-media { margin-bottom: 0; }
/* When explanation follows evidence, size the image from its intrinsic
aspect ratio so the visual and copy read as one editorial group. */
.card.media-with-copy-poster .evidence-media {
flex: 0 0 auto;
margin-bottom: 28px;
}
.card.media-with-copy-poster .body-content {
justify-content: safe center;
}
.card.media-with-copy-poster .evidence-media.fit-contain img {
align-self: center;
width: 100%;
height: auto;
min-height: 0;
max-height: 660px;
}
.card.media-with-copy-poster .evidence-media.fit-cover img {
height: 520px;
min-height: 0;
flex: 0 0 auto;
}
/* Dense evidence cards preserve the shared series chrome while reserving
enough vertical budget for explanatory copy. */
.card.media-copy-dense .body-content { justify-content: flex-start; }
.card.media-copy-dense .body-content h2 { margin-bottom: 28px; }
.card.media-copy-dense .evidence-media { margin-bottom: 20px; }
.card.media-copy-dense .evidence-media.fit-contain img { max-height: 500px; }
.card.media-copy-dense .evidence-media.fit-cover img { height: 440px; }
.card.media-copy-dense .body-content > p { margin-bottom: 16px; }
.card.media-copy-dense .highlight { margin: 16px 0; padding: 24px 28px; }
.card.media-copy-dense .item { padding: 20px 0; }
.card.media-copy-dense .data-row { padding: 14px 0; }
.evidence-media.fit-cover img { object-fit: cover; }
.evidence-media.fit-contain img { object-fit: contain; }
.evidence-media.position-center img { object-position: center; }
.evidence-media.position-top img { object-position: top; }
.evidence-media.position-bottom img { object-position: bottom; }
.evidence-media.position-left img { object-position: left; }
.evidence-media.position-right img { object-position: right; }
.evidence-media figcaption {
padding-top: 14px;
font: 500 24px/1.35 var(--sans);
color: var(--ink-muted);
}
.native-process {
list-style: none;
min-height: 820px;
flex: 0 0 auto;
display: flex;
flex-direction: column;
border-top: 1px solid var(--hairline);
border-bottom: 1px solid var(--hairline);
}
.card.single-poster.process-poster .native-process { min-height: 900px; }
.card.process-only-poster .native-process {
min-height: 0;
flex: 1 1 auto;
}
.process-step {
position: relative;
flex: 1 1 0;
min-height: 150px;
display: grid;
grid-template-columns: 104px minmax(0, 1fr);
align-items: center;
column-gap: 30px;
padding: 26px 8px;
}
.process-step + .process-step { border-top: 1px solid var(--hairline); }
.process-step::before {
content: '';
position: absolute;
left: 47px;
top: -1px;
bottom: -1px;
width: 1px;
background: var(--hairline);
}
.process-index {
position: relative;
z-index: 1;
width: 70px;
height: 70px;
display: grid;
place-items: center;
border: 1px solid var(--accent);
border-radius: 50%;
background: var(--bg);
font: 600 24px/1 var(--mono);
color: var(--accent);
letter-spacing: 0.02em;
}
.process-copy { min-width: 0; }
.process-copy h3 {
font: 400 44px/1.18 var(--zh-serif);
color: var(--ink);
}
.process-copy p {
margin: 10px 0 0;
font: 400 36px/1.42 var(--zh-serif);
color: var(--ink-muted);
}
.card.sparse-poster .title-area {
flex: 0 0 auto;
justify-content: flex-start;
padding-bottom: 32px;
margin-bottom: 40px;
border-bottom: 2px solid var(--accent);
}
.card.sparse-poster .body-content {
flex: 0 0 auto;
justify-content: flex-start;
}
.card.sparse-poster .body-content h2 {
font-size: 84px;
color: var(--accent);
margin-bottom: 44px;
}
.card.sparse-poster .highlight {
padding: 46px 48px;
border-left-width: 8px;
}
.card.sparse-poster .highlight p {
font-size: 54px;
line-height: 1.42;
}
/* ── Reading notes variant ────────────────────────────────────── */
.reading-card-title {
font: 400 48px/1.22 var(--zh-serif) !important;
margin-bottom: 28px !important;
}
.reading-unit {
padding: 28px 0;
}
.reading-card-title + .reading-unit,
.reading-unit:first-child {
padding-top: 0;
}
.reading-unit + .reading-unit {
border-top: 1px solid var(--hairline);
}
.reading-label {
font: 500 24px/1.2 var(--mono);
color: var(--accent);
letter-spacing: 0.04em;
margin-bottom: 12px;
}
.reading-quote blockquote {
padding-left: 24px;
border-left: 2px solid var(--accent);
}
.reading-quote p,
.reading-thought p {
font: 400 36px/1.62 var(--zh-serif);
margin-bottom: 0;
}
.reading-thought {
margin-top: 24px;
padding: 22px 24px;
background: var(--surface-1);
border: 1px solid var(--hairline);
border-radius: var(--radius);
}
.reading-thought .reading-label {
color: var(--ink-muted);
}
/* ── Highlight (golden sentence) ───────────────────────────────── */
.highlight {
padding: 28px 32px;
border-left: 3px solid var(--accent);
background: var(--surface-1);
border-radius: var(--radius);
margin: 24px 0;
}
.highlight p {
font: 400 36px/1.62 var(--zh-serif);
color: var(--ink);
letter-spacing: 0;
margin-bottom: 0;
}
/* ── Labeled items ─────────────────────────────────────────────── */
.item {
padding: 28px 0;
}
.item + .item {
border-top: 1px solid var(--hairline);
}
.item .label {
font: 500 28px/1.3 var(--mono);
color: var(--accent);
text-transform: uppercase;
letter-spacing: 0.04em;
margin-bottom: 8px;
}
.item p:last-child {
font: 400 36px/1.62 var(--zh-serif);
color: var(--ink);
margin-bottom: 0;
}
/* ── Section divider ───────────────────────────────────────────── */
.divider {
width: 60px;
height: 1px;
background: var(--hairline);
margin: 36px 0;
}
/* ── Data row (key-value display) ──────────────────────────────── */
.data-row {
display: flex;
justify-content: space-between;
align-items: baseline;
padding: 20px 0;
}
.data-row + .data-row {
border-top: 1px solid var(--hairline);
}
.data-row .key {
font: 500 28px/1.3 var(--sans);
color: var(--ink-muted);
}
.data-row .value {
font: 500 36px/1.3 var(--sans);
color: var(--ink);
text-align: right;
}
/* ── Colophon (last card footer) ───────────────────────────────── */
.colophon {
margin-top: auto;
padding-top: 28px;
border-top: 1px solid var(--hairline);
display: flex;
align-items: center;
justify-content: space-between;
}
.colophon .colophon-meta {
min-width: 0;
display: flex;
align-items: center;
gap: 22px;
}
.colophon .source-mark {
max-width: 680px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font: 500 24px/1.25 var(--sans);
color: var(--ink-muted);
letter-spacing: 0.02em;
}
.colophon .brand-mark {
display: flex;
align-items: center;
gap: 12px;
}
.colophon .brand-mark .stripe-bar {
width: 36px;
height: 4px;
background: var(--accent);
border-radius: 2px;
}
.colophon .brand-mark span {
font: 500 24px/1 var(--sans);
color: var(--accent);
letter-spacing: 0.06em;
text-transform: uppercase;
}
.colophon .logo-mark {
height: 32px;
width: auto;
opacity: 0.5;
}
.colophon .endmark {
flex: 0 0 auto;
font: 500 24px/1 var(--mono);
color: var(--ink-muted);
letter-spacing: 0.1em;
}
/* Personal field notes: semantic grouping is planned before rendering. */
html:has(.field-notes), body:has(.field-notes) { background: var(--bg); }
.card.field-notes { padding:76px 76px 76px 90px; }
.field-notes::before { content:''; position:absolute; left:42px; top:80px; width:10px; height:28px; background:var(--accent); clip-path:polygon(0 0,100% 15%,100% 100%,0 85%); }
.field-notes .header { padding-bottom:22px; margin-bottom:40px; }
.field-notes .page-indicator { color:var(--accent); }
.field-notes .title-area { flex:0; padding:18px 0 34px; }
.field-notes .title-area h1 { line-height:1.22; }
.field-notes .title-area .subtitle { font-size:28px; }
.field-notes .body-content { flex:0 0 auto; display:flex; flex-direction:column; }
.field-notes .body-content h2 { font-size:44px; line-height:1.35; margin-bottom:32px; text-wrap:initial; }
.field-notes .body-content > h2:not(:first-child) { margin-top:24px; }
.field-notes .body-content > p { font-size:38px; line-height:1.65; margin:0 0 28px; }
.field-notes .item { flex:0 0 auto; display:grid; grid-template-columns:156px minmax(0,1fr); gap:20px; align-items:start; padding:34px 0; margin:0; border:0; }
.field-notes .item .label { font-family:var(--zh-serif); font-size:36px; line-height:1.55; color:var(--ink-muted); letter-spacing:0; padding:0; text-transform:none; }
.field-notes .item p:last-child { font-size:38px; line-height:1.55; margin:0; padding-left:24px; border-left:1px solid var(--hairline); white-space:pre-line; }
.field-notes .highlight { background:transparent; border-left:3px solid var(--accent); padding:14px 0 14px 26px; margin:30px 0 0; }
.field-notes .highlight p { font-size:38px; line-height:1.55; margin:0; }
.field-notes .body-content:has(.highlight) .item { padding:28px 0; }
.field-notes:not(:has(.title-area)) .body-content:has(.highlight) .item { padding:32px 0; }
/* Content capabilities share the same field-notes reading surface. */
.field-notes .reading-label { font:400 36px/1.4 var(--zh-serif); letter-spacing:0; }
.field-notes .reading-quote p, .field-notes .reading-thought p { font-size:38px; line-height:1.55; }
.field-notes .reading-thought { background:transparent; border:0; border-left:1px solid var(--hairline); border-radius:0; padding:0 0 0 24px; }
.field-notes .data-row { gap:24px; align-items:start; }
.field-notes .data-row .key { font:400 36px/1.55 var(--zh-serif); flex:0 0 156px; }
.field-notes .data-row .value { font:400 38px/1.55 var(--zh-serif); white-space:pre-line; overflow-wrap:anywhere; min-width:0; }
.field-notes .process-copy h3 { font-size:38px; }
.field-notes .process-copy p { font-size:38px; line-height:1.55; }
.field-notes .process-index, .field-notes .evidence-media figcaption { font-size:36px; }
</style>
</head>
<body>
<div class="card{{CARD_CLASS}}" data-card-mode="poster">
{{HEADER_BLOCK}}
{{TITLE_BLOCK}}
<div class="body-content">
{{BODY_HTML}}
</div>
{{COLOPHON_BLOCK}}
</div>
</body>
</html>
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |