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/sketchnote_template.html
View on GitHub<!--
sketchnote_template.html — Brand-agnostic template for "sketchnote" (视觉笔记) mode
Placeholders:
{{TITLE}} — Article / concept title (appears in magazine head h1)
{{SUBTITLE}} — One-line summary / deck (italic lead below title)
{{CONTENT_HTML}} — Main body: narrative arc sections (feature, note, archive, cross, hero, closing)
{{CUSTOM_CSS}} — Per-card custom CSS overrides
{{LOGO}} — Brand logo image URL (40x40 circle; hidden if empty)
{{BRAND_NAME}} — Brand / author name displayed in colophon
{{SOURCE_LINE}} — Source attribution (optional, e.g. journal / paper reference)
CSS Variables (override in CUSTOM_CSS or inline):
--bg : Quiet Paper canvas (default #f5f0e8)
--surface-1 : Warm grouping surface (default #ebe3d6)
--surface-2 : Secondary quiet surface (default #f8f4eb)
--accent-1 : Muted ink accent (default #9b6048)
--accent-2 : Same-family accent (default #7b6d61)
--accent-3 : Soft rule accent (default #b39470)
--ink : Main text color (default #2c2418)
--ink-muted : Secondary / muted text (default #6b6050)
--hairline : Border / rule color (default #d8cdbc)
Layout classes (per spec):
.page — Main 1080px container
.magazine-head — Top masthead with title + deck
.note-card — Generic note / section card
.note-card.feature — Feature spread (station 1: opening)
.note-card.hero — Hero spread (station 5: insight)
.note-label — Card label / tag
.highlight-text — Key insight emphasis
.problem-block — Problem statement block
.failure-block — Failure / wrong approach block
.insight-block — Key insight / aha moment block
.naming-block — Concept naming block
.divider — Section divider
.quote-mark — Decorative opening quote mark
.colophon — Footer with brand + source
Font system (4 families):
Serif : DM Serif Display (Latin) + XiangcuiDengcusong (CJK)
Sans : DM Sans (Latin) + system CJK fallback
Mono : JetBrains Mono
Hand : Caveat + Kalam + Permanent Marker (Latin) + 楷体 (CJK)
-->
<!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;
}
/* ── CSS Variables ── */
:root {
/* Colors — quiet paper defaults (override per card) */
--bg: #f5f0e8;
--surface-1: #ebe3d6;
--surface-2: #f8f4eb;
--accent-1: #9b6048;
--accent-2: #7b6d61;
--accent-3: #b39470;
--accent-3-soft: #e9ddc9;
--ink: #2c2418;
--ink-muted: #6b6050;
--ink-strong: #2c2418;
--ink-fade: #9a9186;
--hairline: #d8cdbc;
/* Font families */
--serif: 'DM Serif Display', 'XiangcuiDengcusong', 'Songti SC', Georgia, serif;
--sans: 'DM Sans', 'PingFang SC', system-ui, sans-serif;
--mono: 'JetBrains Mono', 'SF Mono', 'Menlo', monospace;
--hand: 'Caveat', 'Kalam', 'Permanent Marker', '楷体', 'STKaiti', cursive;
}
/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
width: 1080px;
background:
radial-gradient(circle at 50% 0%, rgba(44, 36, 24, 0.035), transparent 42%),
var(--bg);
}
/* ── Page Container ── */
.page {
width: 1080px;
background:
radial-gradient(circle at 50% 0%, rgba(44, 36, 24, 0.025), transparent 46%),
var(--bg);
position: relative;
overflow: hidden;
}
/* Grain texture overlay */
.page > .grain {
position: absolute;
inset: 0;
filter: url(#noise);
opacity: 0.025;
pointer-events: none;
z-index: 100;
}
/* ── Magazine Head (Masthead) ── */
.magazine-head {
padding: 44px 64px 30px;
border-bottom: 1px solid var(--hairline);
position: relative;
}
.magazine-head::after {
content: '';
position: absolute;
left: 64px; right: 64px; bottom: -8px;
height: 1px;
background: var(--accent-1);
}
.magazine-head .top-bar {
display: flex;
justify-content: space-between;
align-items: center;
font: 600 36px/1.1 var(--mono);
color: var(--ink-muted);
letter-spacing: 0.22em;
text-transform: uppercase;
margin-bottom: 24px;
padding-bottom: 12px;
border-bottom: 1px solid var(--hairline);
}
.magazine-head .top-bar .left { display: flex; align-items: center; gap: 18px; }
.magazine-head .top-bar .badge {
background: var(--ink-strong);
color: var(--bg);
padding: 5px 11px;
letter-spacing: 0.18em;
}
.magazine-head h1 {
font: 900 110px/0.98 var(--serif);
color: var(--ink-strong);
letter-spacing: 0;
margin-bottom: 24px;
}
.magazine-head .deck {
font: 400 36px/1.35 var(--serif);
color: var(--ink-muted);
max-width: 820px;
border-left: 3px solid var(--ink-strong);
padding-left: 20px;
}
/* ── Shared Components ── */
.kicker {
font: 600 24px/1.1 var(--mono);
color: var(--ink-muted);
text-transform: uppercase;
letter-spacing: 0.22em;
display: inline-flex;
align-items: center;
gap: 12px;
}
.kicker .num {
background: var(--accent-1);
color: var(--bg);
padding: 5px 10px 4px;
font-weight: 700;
letter-spacing: 0.12em;
}
.kicker .rule {
width: 36px;
height: 1px;
background: var(--ink-strong);
}
.head-serif {
font: 700 56px/1.05 var(--serif);
margin: 12px 0 16px;
letter-spacing: 0;
color: var(--ink-strong);
}
.head-sans {
font: 900 40px/1.12 var(--sans);
margin: 10px 0 12px;
letter-spacing: 0;
color: var(--ink-strong);
}
.body-serif p { font: 400 36px/1.45 var(--serif); color: var(--ink); }
.body-serif p + p { margin-top: 8px; }
.body-sans p { font: 400 36px/1.45 var(--sans); color: var(--ink); }
.body-sans p + p { margin-top: 6px; }
.body em { font-style: normal; font-weight: 700; color: var(--ink-strong); }
.ask {
font: 600 30px/1.3 var(--hand);
color: var(--accent-1);
margin-top: 14px;
display: block;
}
.drop-cap > p:first-child::first-letter {
float: left;
font: 700 84px/0.84 var(--serif);
color: var(--ink-strong);
margin: 4px 12px -4px 0;
}
mark {
background: var(--accent-3-soft);
color: inherit;
padding: 4px 8px;
}
/* ── Note Card (generic section card) ── */
.note-card {
border-top: 1px solid var(--hairline);
}
/* ── Feature (Station 1: Opening) ── */
.note-card.feature {
padding: 38px 64px 44px;
background: var(--surface-1);
border-bottom: 1px solid var(--hairline);
display: grid;
grid-template-columns: 6fr 6fr;
gap: 32px;
align-items: start;
}
.note-card.feature .lead {
font: 400 36px/1.35 var(--serif);
margin-bottom: 16px;
padding: 0 0 0 18px;
border-left: 2px solid var(--accent-1);
}
/* ── Note (Station 2: Failure — margin note with sidekick + paper) ── */
.note-card.note {
margin: 24px 64px 0;
display: grid;
grid-template-columns: 1fr 540px;
gap: 32px;
align-items: start;
padding-top: 6px;
}
/* Sidekick (left column of note — doodle / formula / arrow) */
.note-card.note .sidekick {
align-self: stretch;
display: flex;
flex-direction: column;
justify-content: center;
gap: 14px;
padding: 8px 4px 8px 0;
}
.note-card.note .sidekick svg {
display: block;
max-width: 100%;
height: auto;
}
.note-card.note .sidekick .formula {
font: 600 36px/1.3 var(--hand);
color: var(--ink);
padding: 8px 14px;
border-left: 2px dashed var(--ink-fade);
transform: rotate(-1deg);
}
.note-card.note .sidekick .formula em {
color: var(--accent-1);
font-style: normal;
font-weight: 700;
}
.note-card.note .sidekick .arrow {
font: 600 36px/1.1 var(--hand);
color: var(--accent-1);
transform: rotate(6deg);
align-self: flex-end;
margin-right: -4px;
}
.note-card.note .sidekick .doodle-caption {
font: 400 24px/1.4 var(--serif);
color: var(--ink-muted);
margin-top: 4px;
}
/* Paper (right column — sticky note) */
.note-card.note .paper {
padding: 22px 26px 22px 28px;
background: var(--surface-2);
border: 1px solid rgba(120,110,80,0.32);
border-left: 2px solid var(--accent-1);
box-shadow: none;
position: relative;
transform: rotate(0.5deg);
transform-origin: top right;
}
.note-card.note .paper::before {
content: '';
position: absolute;
top: -1px; left: -1px; right: -1px; height: 4px;
background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(120,110,80,0.18) 6px 8px);
}
.note-card.note .paper .strike {
text-decoration: line-through;
text-decoration-color: var(--accent-1);
text-decoration-thickness: 2.5px;
color: var(--ink-fade);
}
.note-card.note .paper .scribble {
position: absolute;
right: -8px; top: 28px;
font: 600 30px/1.15 var(--hand);
color: var(--accent-1);
transform: rotate(6deg);
background: var(--surface-2);
padding: 6px 12px 4px;
border: 1px solid var(--hairline);
white-space: nowrap;
}
.note-card.note .paper .footnote {
margin-top: 14px;
padding-top: 12px;
border-top: 1px dashed rgba(120,110,80,0.4);
font: 500 24px/1.35 var(--mono);
color: var(--ink-muted);
display: flex;
gap: 8px;
}
.note-card.note .paper .footnote .mark {
color: var(--accent-1);
font-weight: 700;
}
/* ── Archive (Station 3: Failure — archive label with stamp) ── */
.note-card.archive {
margin: 24px 64px 0;
background: var(--bg);
border-top: 2px solid var(--ink-strong);
border-bottom: 1px solid var(--hairline);
display: grid;
grid-template-columns: 156px 1fr;
align-items: stretch;
}
.note-card.archive .stamp {
background: var(--ink-strong);
color: var(--bg);
padding: 22px 16px;
font: 700 24px/1.3 var(--mono);
letter-spacing: 0.16em;
text-transform: uppercase;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
gap: 8px;
}
.note-card.archive .stamp .label {
border: 1px solid rgba(255,255,255,0.45);
padding: 4px 6px;
}
.note-card.archive .stamp .x {
font: 700 56px/1 var(--serif);
color: var(--accent-1);
}
.note-card.archive .body-area {
padding: 22px 28px 24px;
}
.note-card.archive .verdict {
margin-top: 12px;
padding-top: 10px;
border-top: 1px dashed var(--hairline);
font: 600 30px/1.35 var(--serif);
color: var(--accent-1);
}
/* ── Cross (Station 4: Turning point — mega headline) ── */
.note-card.cross {
padding: 64px 64px 60px;
border-top: 1px solid var(--hairline);
border-bottom: 1px solid var(--hairline);
margin-top: 30px;
}
.note-card.cross .mega {
font: 900 180px/0.88 var(--serif);
color: var(--ink-strong);
letter-spacing: 0;
}
.note-card.cross .mega .em {
background: linear-gradient(180deg, transparent 60%, var(--accent-3-soft, #D7A85A) 60%, var(--accent-3-soft, #D7A85A) 90%, transparent 90%);
padding: 0 6px;
}
.note-card.cross .grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 36px;
align-items: end;
margin-top: 18px;
}
.note-card.cross .left,
.note-card.cross .right {
border-top: 2px solid var(--ink-strong);
padding-top: 16px;
}
.note-card.cross .right .caption {
font: 400 24px/1.4 var(--serif);
color: var(--ink-muted);
margin-top: 10px;
padding-left: 10px;
border-left: 2px solid var(--accent-3);
}
/* ── Hero (Station 5: Insight) ── */
.note-card.hero {
padding: 52px 64px 48px;
border-top: 1px solid var(--hairline);
margin-top: 32px;
position: relative;
}
.note-card.hero .layout {
display: grid;
grid-template-columns: 7fr 5fr;
gap: 32px;
align-items: start;
}
.note-card.hero .visual .caption {
font: 400 24px/1.4 var(--serif);
color: var(--ink-muted);
margin-top: 10px;
padding-left: 12px;
border-left: 2px solid var(--accent-2);
}
.note-card.hero .pull-quote {
font: 700 42px/1.22 var(--serif);
color: var(--accent-2);
margin: 12px 0 18px;
padding: 6px 0 6px 22px;
border-left: 2px solid var(--accent-2);
position: relative;
}
.note-card.hero .pull-quote::before {
content: '\201C';
position: absolute;
left: 4px; top: -36px;
font: 700 88px/1 var(--serif);
color: var(--accent-2);
opacity: 0.35;
}
/* ── Closing (Station 6: Naming) ── */
.note-card.closing {
padding: 60px 64px 64px;
background: var(--surface-1);
border-top: 1px solid var(--hairline);
margin-top: 32px;
text-align: center;
}
.note-card.closing .approach {
font: 400 36px/1.35 var(--serif);
color: var(--ink-muted);
margin-bottom: 24px;
}
.note-card.closing .mega-name {
font: 900 144px/0.95 var(--serif);
color: var(--ink-strong);
letter-spacing: 0;
margin-bottom: 14px;
}
.note-card.closing .en-name {
font: 500 36px/1 var(--sans);
color: var(--ink-muted);
letter-spacing: 0.04em;
margin-bottom: 28px;
}
.note-card.closing .byline {
display: flex;
justify-content: center;
align-items: baseline;
gap: 22px;
font: 600 14px/1.2 var(--mono);
color: var(--ink-muted);
letter-spacing: 0.18em;
text-transform: uppercase;
padding: 18px 0;
margin: 0 auto 24px;
max-width: 820px;
border-top: 1px solid var(--ink-strong);
border-bottom: 1px solid var(--ink-strong);
flex-wrap: wrap;
}
.note-card.closing .byline strong {
color: var(--ink-strong);
font-weight: 700;
letter-spacing: 0.12em;
}
.note-card.closing .byline .sep {
color: var(--ink-fade);
font-weight: 400;
}
.note-card.closing .closing-body {
font: 400 36px/1.45 var(--serif);
max-width: 760px;
margin: 0 auto 22px;
text-align: left;
}
.note-card.closing .epilogue {
font: 500 36px/1.35 var(--serif);
color: var(--ink-strong);
margin-top: 18px;
}
.note-card.closing .epilogue::before {
content: '\2014 ';
color: var(--accent-1);
font-weight: 700;
}
/* ── Semantic Blocks ── */
.problem-block {
padding: 28px 32px;
background: var(--surface-1);
border-left: 2px solid var(--accent-1);
margin: 20px 0;
}
.failure-block {
padding: 24px 28px;
background: var(--surface-2);
border: 1px solid var(--hairline);
margin: 20px 0;
position: relative;
}
.insight-block {
padding: 28px 32px;
background: var(--surface-1);
border-left: 2px solid var(--accent-2);
margin: 20px 0;
}
.naming-block {
padding: 36px 32px;
background: var(--surface-1);
border-top: 4px double var(--ink-strong);
margin: 20px 0;
text-align: center;
}
/* ── Utility Classes ── */
.note-label {
display: inline-block;
font: 600 24px/1.1 var(--mono);
letter-spacing: 0.2em;
text-transform: uppercase;
padding: 4px 12px;
background: var(--ink-strong);
color: var(--bg);
}
.highlight-text {
font: 700 38px/1.15 var(--serif);
color: var(--ink-strong);
}
.divider {
border: none;
border-top: 1px solid var(--hairline);
margin: 32px 64px;
}
.quote-mark {
font: 700 120px/0.8 var(--serif);
color: var(--accent-2);
opacity: 0.2;
display: block;
margin-bottom: -30px;
user-select: none;
}
/* ── Colophon (Footer) ── */
.colophon {
display: flex;
align-items: center;
justify-content: space-between;
padding: 28px 60px 36px;
border-top: 1px solid var(--hairline);
}
.colophon .who {
display: flex;
align-items: center;
gap: 14px;
}
.colophon .who img {
width: 40px; height: 40px;
border-radius: 50%;
object-fit: cover;
}
.colophon .who img[src=""] { display: none; }
.colophon .who span {
font: 400 24px/1 var(--sans);
color: var(--ink-muted);
}
.colophon .info-source {
font: 400 24px/1 var(--mono);
color: var(--ink-muted);
}
/* ── Custom CSS Slot ── */
{{CUSTOM_CSS}}
</style>
</head>
<body>
<!-- SVG noise filter for grain texture -->
<svg width="0" height="0" style="position:absolute">
<filter id="noise">
<feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/>
<feColorMatrix type="saturate" values="0"/>
</filter>
</svg>
<div class="page">
<div class="grain"></div>
{{CONTENT_HTML}}
<div class="colophon">
<div class="who">
<img src="{{LOGO}}" alt="">
<span>{{BRAND_NAME}}</span>
</div>
{{SOURCE_LINE}}
</div>
</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 |