Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

marp-deck-visual-designer马普甲板视觉设计师

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

792

周安装

33

GitHub Stars

公开资料未说明

下载量

264
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:marp-deck-visual-designer(马普甲板视觉设计师)
来源仓库:https://github.com/raffaelecamanzo/skills
仓库路径:skills/marp-deck-visual-designer
安装命令:
npx skills add https://github.com/raffaelecamanzo/skills --skill marp-deck-visual-designer
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/raffaelecamanzo/skills --skill marp-deck-visual-designer

简介

marp-deck-visual-designer 用于界面设计与视觉规范优化,支持排版与布局调整。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中整理页面结构、生成 UI 方案或改进组件层级时使用。
  • 使用时需结合现有品牌与设计系统,避免仅堆砌装饰元素;涉及真实页面改动时应通过截图验证表现。
  • 涉及文本溢出或响应式问题时,建议通过浏览器预览检查实际效果。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Marp Visual Designer

Purpose

Translate an existing presentation plan into visual and layout execution for a MARP deck.

This skill:

  • Preserves slide intent and ordering
  • Defines concrete layouts drawn from the deck template's full pattern library
  • Materializes planned visuals as Mermaid diagrams or Excalidraw drawings, choosing the best fit for each visual

This skill must not:

  • Re-plan the deck
  • Modify key messages
  • Add or remove slides
  • Introduce new concepts

The presentation plan is authoritative.


Inputs

  • planning/deck-plan.md — produced by marp-deck-planner
  • .marp/references/deck-template.mdmandatory reference: defines every available layout pattern, class name, HTML structure, and content budget. Read this in full before assigning any layout.

Output format

Produce a single Markdown file saved as: planning/deck-visual-design.md

Use -- as a separator between slides, mirroring the plan order exactly.


Slide structure

For each slide, output:

  • ## Title
  • ## Layout
  • ## Content placement
  • *(optional)* ## Image

Section divider slides must contain only:

  • ## Section
  • ## Layout

Workflow

0. Read the deck template (mandatory first step)

Before making any layout decisions, read .marp/references/deck-template.md in full.

This document is the authoritative source for:

  • Every available CSS class and layout pattern
  • Valid class token combinations
  • HTML structure required for each pattern
  • Content budgets per pattern (bullets, cards, columns)

Bullet lists are the layout of last resort. Only use a single-column bullet list when no pattern in the deck template fits the content. For every slide, actively look for a richer match:

Content typePreferred pattern
4 parallel findings / insightsinsight-cards (2×2 grid)
3 items with number + label + descnumbered-cards
3–5 horizontal stepstimeline-steps
3 sequential phases with connectorsphase-cards
4–6 stacked label + description rowsfeature-layers
Table of contentstoc-rows
2 contrasting blockscolumns two-col duo or columns compare split-panels
Text + diagram / imagevisual-split
Text + supporting stat or quotehighlight-layout with highlight-box
Large single callouthero with impact-list
Data grid / comparison tableHTML <table>
6 focus areaslabs-grid

When a richer pattern fits, use it — do not fall back to bullets.


1. Preserve structure and sequence

  • Follow the exact slide order from the plan
  • Do not rename, merge, or split slides
  • Section slides remain section slides

2. Define layout explicitly

In ## Layout, specify:

  • Slide class tokens first (required), using this exact line format:

- Slide class: content... (e.g., Slide class: content visual-split no-top-accent)

  • Layout type drawn from the deck template (not freeform description)
  • Relative proportions where applicable (e.g. 60/40 split)
  • Visual hierarchy (primary vs secondary areas)

Use concrete, MARP-compatible class names from .marp/references/deck-template.md.

Avoid abstract or aesthetic-only language.


3. Place content intentionally

In ## Content placement, describe:

  • Which deck-template pattern is used and its HTML container class
  • Where each content block is placed within that pattern
  • Grouping of items into cards, rows, columns, or callouts
  • Emphasis rules (highlight, takeaway, footer note)

Do not rewrite or extend content.


4. Materialize visuals

If the corresponding slide in the plan includes a ## Image section:

4.1 Decide visual realization

Before creating any file, choose the format using this rubric:

Use Mermaid when:

  • The visual is a sequential flow, process, or state machine
  • The structure maps cleanly to flowchart/graph node-edge semantics
  • Hierarchical or directional relationships are the core meaning
  • Examples: pipeline steps, architecture dependency graphs, sequence diagrams

Use Excalidraw when:

  • The visual is a hub-and-spoke or organic network without a dominant direction
  • Ideas don't map to Mermaid's defined diagram types (no clean source→target edges)
  • Spatial arrangement or grouping conveys meaning (e.g., clusters, proximity)
  • Freeform sketch aesthetic matches the content better than a strict graph
  • Examples: team/lab organization charts, ecosystem maps, conceptual overviews

4.2 Generate Mermaid diagrams (when applicable)

If the planned visual is best represented as a diagram:

  • Create a Mermaid diagram source file: diagrams/<diagram-name>.mmd
  • The diagram must directly reflect the planned visual description
  • Keep diagrams minimal and readable

Mermaid styling (mandatory)

All Mermaid renders use the shared deck config:

  • .marp/references/mermaid-config.json

Rules:

  • Do not rely on Mermaid default colors.
  • Keep diagrams mostly neutral with a single accent (the config sets this).
  • Use additional classDef styling only when needed for meaning, and keep it consistent with the mermaid config palette:

- Primary border / line color: #da291c (SO accent / red-500) - Text: #3d3935 (merlin) - Muted: #716b5d (merlin-600)

Diagram rules (mandatory)

  • Choose the slide class first, then design the diagram to fit:

- Default: visual-split - If the rendered PNG aspect ratio is > 2.8: add image-wide - If the rendered PNG aspect ratio is < 0.8: add image-tall

  • Target diagram aspect ratio around 1.1 to 2.6 when possible (easiest fit in visual-split).
  • Keep one diagram/image per slide unless a grid layout is explicitly planned.
  • Keep labels short:

- Aim for <= 4 words per line - Force line breaks for long text (use <br/> in Mermaid labels)

  • Flow direction:

- Prefer flowchart TB for 4+ nodes - Use LR only when left-to-right meaning is essential

  • Avoid long single-lane chains; split into compact groups/subgraphs to reduce extreme width.
  • For loop diagrams, use compact cyclic shapes instead of stretched horizontal loops.

After writing the .mmd file:

  • Render the diagram:

- Prefer: task mermaid-file FILE=diagrams/<diagram-name>.mmd - Or rebuild all diagrams: task mermaid

  • Validate the rendered PNG dimensions before deck render:

- task mermaid-check-file FILE=diagrams/<diagram-name>.mmd - If the diagram is too flat/tall, adjust the .mmd structure first (direction, grouping, label breaks), then re-render.

  • Reference the generated image in ## Image as: images/<diagram-name>.png

Rules:

  • Diagram names must be deterministic and descriptive
  • One diagram per slide unless explicitly required
  • Do not generate diagrams for decorative purposes

If the visual is not diagrammatic, describe it without generating files.


4.3 Generate Excalidraw drawings (when applicable)

If the decision rubric in 4.1 selects Excalidraw:

File naming

  • Create: diagrams/<diagram-name>.excalidraw
  • Name must be deterministic and descriptive (lowercase, hyphens)

Export tool

task excalidraw-file renders with node.marp/scripts/render-excalidraw.js using @napi-rs/canvas (Node 18+). No Docker dependency.

Prerequisite — package.json must exist in the project root. task excalidraw-file runs npm install before every render. If the project has no package.json, the install silently fails (exit 254) and no PNG is produced. Before running task excalidraw-file for the first time, check for the file: ``bash ls package.json 2>/dev/null || echo "missing" ` If missing, create it: `json { "name": "deck-builder", "version": "1.0.0", "private": true, "dependencies": { "@napi-rs/canvas": "^0.1.65" } } ` Then run npm install once manually before invoking the task. Subsequent task excalidraw-file` calls will reuse the installed module.

Valid JSON structure

The .excalidraw file must be valid JSON matching schema version 2:

{
  "type": "excalidraw",
  "version": 2,
  "source": "marp-visual-designer",
  "elements": [ ... ],
  "appState": {
    "gridSize": 20,
    "gridStep": 5,
    "gridModeEnabled": false,
    "viewBackgroundColor": "#ffffff"
  },
  "files": {}
}

Element authoring rules

Shapes — use rectangle for most nodes; use ellipse only when the node is a true radial hub with spokes going in all directions.

Required properties for both: id, type, x, y, width, height, angle: 0, strokeColor, backgroundColor, fillStyle: "solid", strokeWidth, roughness: 0, opacity: 100, groupIds: [], isDeleted: false, boundElements: [...], locked: false

Text labels — one text element per shape, with containerId pointing to the parent:

  • x, y, width, height must exactly match the parent shape
  • Required extra: text, fontSize: 14, fontFamily: 1, textAlign: "center", verticalAlign: "middle", containerId: "<shape-id>", originalText: "<same as text>", lineHeight: 1.25
  • The parent shape's boundElements must include {"type": "text", "id": "<text-id>"}
  • Multi-line text: use a literal newline character \n in the JSON string value

Arrows — for static export, always use null bindings with explicit coordinate points:

  • startBinding: null, endBinding: null
  • startArrowhead: null, endArrowhead: "triangle_outline"
  • points is an array of [dx, dy] offsets relative to the arrow's own x, y — the first point is always [0, 0]
  • For a straight arrow from A-right to B-left: set arrow x, y to A's right-center; points: [[0, 0], [gap, 0]]
  • For an elbowed connector (e.g. row-wrap): use a 4-point path: points: [[0, 0], [0, down], [left_offset, down], [left_offset, down + drop]] where down is the midpoint vertical and left_offset is negative (moving left)

Required properties: id, type, x, y, width, height, angle: 0, strokeColor, backgroundColor: "transparent", fillStyle: "solid", strokeWidth: 2, roughness: 0, opacity: 100, groupIds: [], isDeleted: false, boundElements: [], locked: false, points, startBinding, endBinding, startArrowhead, endArrowhead

Grouping: assign same string to groupIds array for all elements in a logical group

Brand color palette (must follow)

UseColor
Primary hub / main conceptstroke #da291c, fill #ffffff, strokeWidth 3
Secondary nodes / cardsstroke #716b5d, fill #f4f4f2, strokeWidth 2
Accent element (e.g. terminal / outcome node)stroke #e35205, fill #ffffff, strokeWidth 2
Text#3d3935
Flow arrows (same-row)stroke #3d3935
Elbowed inter-row connectorstroke #da291c
Background#ffffff

Aspect-ratio prediction (use before exporting)

.marp/scripts/render-excalidraw.js uses fixed PADDING = 24px each side and scale = 2×. Use these exact formulas to predict the exported PNG size before you export:

content_width  = max(element.x + element.width)  − min(element.x)   [all non-arrow elements]
content_height = max(element.y + element.height) − min(element.y)    [all non-arrow elements]

exported_width  = (content_width  + 48) × 2   [exact: PADDING=24 each side, 2× scale]
exported_height = (content_height + 48) × 2   [exact: same]

predicted_ratio = (content_width + 48) / (content_height + 48)
                  [the ×2 cancels; ratio is scale-independent]

Design rule: target predicted_ratio in 1.8–2.4 for a comfortable visual-split fit (well inside the 1.1–2.6 safe band). The formula is exact — no rounding error. With the recommended inter_row_gap ≈ 1.4 × node_height starting point, a 3+3 two-row layout at 150×75 px nodes naturally produces ratio ≈ 1.81, which is within the target band on the first attempt.

Spatial layout guidance

  • Single-row chain (up to 4 nodes): place nodes left-to-right with 20–30px gaps; straight arrows between them.
  • Multi-row chain (5+ nodes or when single-row ratio would be > 2.6): split into 2 rows of equal or near-equal length.

- Row 1: y = 30; row 2: y = 30 + node_height + inter_row_gap - Choose inter_row_gap so predicted_ratio lands in 1.8–2.4: inter_row_gap ≈ (1.4 × node_height) is a reliable starting point - Connect row 1 last node to row 2 first node with a red elbowed arrow: - Start at bottom-center of last node in row 1 - End at top-center of first node in row 2 - Midpoint: down = inter_row_gap / 2 from the start - Center row 2 horizontally when it has fewer nodes than row 1

  • Hub-and-spoke: place hub at center; spokes radiate to ~160px radius; use ellipse for the hub.
  • Allocate 140–160px width × 70–80px height per node as baseline.

Export and validation

After writing the .excalidraw file:

  1. Predict the ratio using the formula above; adjust layout if needed before exporting.
  2. Export: task excalidraw-file FILE=diagrams/<diagram-name>.excalidraw
  3. Validate actual PNG dimensions: task mermaid-check-file FILE=diagrams/<diagram-name>.excalidraw

- The validation script reads PNG IHDR bytes regardless of source format.

  1. If actual ratio is outside target: adjust inter_row_gap or node positions, then re-export.

Reference the generated image in ## Image as: images/<diagram-name>.png

Rules:

  • Diagram names must be deterministic and descriptive
  • One diagram per slide unless explicitly required
  • Do not generate diagrams for decorative purposes

5. Respect MARP constraints

All layouts and visuals must be compatible with:

  • Static Markdown slides
  • CSS-based theming
  • PDF / HTML export

Avoid:

  • animations
  • interactivity
  • layered or dynamic visuals

Section divider slides

For section slides:

  • Provide only minimal layout guidance, such as:
  • "Centered section title, full slide"
  • "Minimal divider, no additional elements"

No visuals or diagrams for section slides.


Quality checks (mandatory)

Before finalizing:

  • .marp/references/deck-template.md was read before any layout was assigned
  • No slide uses a bullet list where a deck-template pattern would fit better
  • Mermaid vs Excalidraw decision is justified by content structure, not preference
  • Slide order exactly matches the plan
  • No new information or interpretation is introduced
  • Diagrams strictly reflect planned visuals
  • All generated diagrams are referenced correctly
  • Output is immediately usable for MARP deck production
  • PDF QA: if labels are hard to read at normal zoom, fix diagram structure first (not only CSS)

The result must be execution-ready, not exploratory.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.6%
按下载量换算91

Claude

29.68%
按下载量换算78

Cursor

16.93%
按下载量换算45

Gemini CLI

8.89%
按下载量换算23

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills