card

GitHub

指导卡片布局的设计、优化与审计,涵盖卡片结构、类型及响应式网格实现。适用于博客、产品、模板等内容的展示设计,确保内容可扫描且视觉一致。

skills/components/layout/card/SKILL.md kostja94/marketing-skills

Trigger Scenarios

设计或优化卡片布局 提及 card layout, product cards, template cards 审计卡片组件

Install

npx skills add kostja94/marketing-skills --skill card -g -y
More Options

Non-standard path

npx skills add https://github.com/kostja94/marketing-skills/tree/main/skills/components/layout/card -g -y

Use without installing

npx skills use kostja94/marketing-skills@card

指定 Agent (Claude Code)

npx skills add kostja94/marketing-skills --skill card -a claude-code -g -y

安装 repo 全部 skill

npx skills add kostja94/marketing-skills --all -g -y

预览 repo 内 skill

npx skills add kostja94/marketing-skills --list

SKILL.md

Frontmatter
{
    "name": "card",
    "metadata": {
        "version": "1.1.1"
    },
    "description": "When the user wants to design, optimize, or audit card layouts for content display. Also use when the user mentions \"card layout,\" \"card component,\" \"card grid,\" \"product cards,\" \"template cards,\" \"tool cards,\" \"feature cards,\" \"gallery cards,\" \"integration cards,\" or \"card design.\" For grids, use grid."
}

Components: Card Layout

Guides card layout design for scannable, responsive content display. Cards are self-contained containers that group related content; used in grids for blog posts, products, templates, tools, features, galleries, and integrations.

When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.

Card Anatomy

Element Purpose
Container Border, background, shadow; consistent padding
Image / Thumbnail Visual anchor; consistent aspect ratio (1:1, 4:3 common)
Title Clear; keyword-rich where relevant
Description / Metadata Supporting text; date, author, category
CTA Action button or link; "View," "Use," "Connect," etc.

Principle: One card = one topic. Keep each card focused for scannability.

Card Types by Use Case

Type Typical Elements Page Skill
Product card Image, name, price, CTA (Add to cart, View) products-page-generator
Template card Thumbnail, name, short description, "Use" or "Preview" CTA template-page-generator
Tool card Name, one-line benefit, CTA to tool page tools-page-generator
Feature card Name, benefit, optional screenshot features-page-generator
Gallery / Showcase item Thumbnail, title, creator, link showcase-page-generator
Integration card Logo, name, short description, "Connect" or "Install" integrations-page-generator
Blog / Article card Cover image, title, excerpt, date, author blog-page-generator, article-page-generator
Resource card Thumbnail, title, format (guide, webinar), CTA resources-page-generator

Layout & Responsiveness

  • Grid: CSS Grid repeat(auto-fill, minmax()) or Flexbox; columns adapt to viewport
  • Mobile: Single column on small screens; 2–4 columns on desktop
  • Consistency: Same padding, spacing, and aspect ratios across cards
  • Hover: Subtle elevation (shadow, translate-y); avoid scale that causes layout shift (CLS)

Design Principles

Principle Practice
Visual hierarchy Title > description > CTA; clear flow
Scannability Minimal text; benefit-led copy
Consistency Same structure across all cards in a grid
Action clarity One primary CTA per card; avoid choice overload

SEO & Schema

  • Cards themselves: No specific schema; layout is UI
  • Content in cards: Use appropriate schema for the page (Product, Article, ItemList, etc.); see schema-markup
  • Images: Alt text on thumbnails; see image-optimization
  • Links: Descriptive anchor text; internal linking; see internal-links

Grid vs List vs Masonry vs Carousel

Layout Best for Skill
Grid Visual content (products, templates, gallery); equal emphasis grid
List Text-heavy (blog index, docs); compact; scan by title list
Masonry Varying heights; image gallery, portfolio masonry
Carousel Limited space; testimonials, logos, featured rotation carousel

Related Skills

  • products-page-generator: Product cards, grid layout, category pages
  • template-page-generator: Template cards, gallery structure
  • tools-page-generator: Tool cards, toolkit hub
  • features-page-generator: Feature grid/list
  • showcase-page-generator: Gallery grid, per-item format
  • integrations-page-generator: Catalog grid, integration cards
  • category-page-generator: Product grid, consistent layout
  • grid: Grid layout for card display; when to use grid
  • list: List layout; cards in list format
  • masonry: Masonry for varying-height cards (gallery)
  • carousel: Carousel for card slides (testimonials, featured)
  • hero-generator: Hero vs card—hero is single above-fold; cards are repeated units
  • brand-visual-generator: Typography, spacing, visual consistency
  • image-optimization: Card thumbnail optimization, alt text, LCP

Version History

  • 70987ba Current 2026-07-06 00:04

Same Skill Collection

skills/analytics/seo/seo-monitoring/SKILL.md
skills/analytics/sources/ai-traffic/SKILL.md
skills/analytics/sources/traffic/SKILL.md
skills/analytics/tracking/SKILL.md
skills/channels/community/community-forum/SKILL.md
skills/channels/community/product-hunt-launch/SKILL.md
skills/channels/distribution/distribution-channels/SKILL.md
skills/channels/owned/email-marketing/SKILL.md
skills/channels/owned/employee-generated-content/SKILL.md
skills/channels/partnerships/affiliate-marketing/SKILL.md
skills/channels/partnerships/creator-program/SKILL.md
skills/channels/partnerships/education-program/SKILL.md
skills/channels/partnerships/influencer-marketing/SKILL.md
skills/channels/partnerships/public-relations/SKILL.md
skills/channels/partnerships/referral-program/SKILL.md
skills/components/branding/favicon/SKILL.md
skills/components/branding/hero/SKILL.md
skills/components/branding/logo/SKILL.md
skills/components/content/tab-accordion/SKILL.md
skills/components/conversion/cta/SKILL.md
skills/components/conversion/newsletter-signup/SKILL.md
skills/components/conversion/popup/SKILL.md
skills/components/conversion/testimonials/SKILL.md
skills/components/conversion/trust-badges/SKILL.md
skills/components/layout/carousel/SKILL.md
skills/components/layout/grid/SKILL.md
skills/components/layout/list/SKILL.md
skills/components/layout/masonry/SKILL.md
skills/components/navigation/breadcrumb/SKILL.md
skills/components/navigation/footer/SKILL.md
skills/components/navigation/navigation-menu/SKILL.md
skills/components/navigation/sidebar/SKILL.md
skills/components/navigation/toc/SKILL.md
skills/components/utility/social-share/SKILL.md
skills/components/utility/top-banner/SKILL.md
skills/components/utility/url-slug/SKILL.md
skills/content/copywriting/SKILL.md
skills/content/podcast/SKILL.md
skills/content/translation/SKILL.md
skills/content/video/SKILL.md
skills/content/visual-content/SKILL.md
skills/pages/brand/about/SKILL.md
skills/pages/brand/contact/SKILL.md
skills/pages/brand/home/SKILL.md
skills/pages/content/api/SKILL.md
skills/pages/content/article/SKILL.md
skills/pages/content/blog/SKILL.md
skills/pages/content/docs/SKILL.md
skills/pages/content/faq/SKILL.md

Metadata

Files
0
Version
70987ba
Hash
ce98d67c
Indexed
2026-07-06 00:04

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-05 07:48
浙ICP备14020137号-1 $Гость$