Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计提醒

codeck-design编解码器设计

Agent Skill

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

总安装

3,207

周安装

131

GitHub Stars

207

下载量

1,038
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/hiyeshu/codeck --skill codeck-design

简介

codeck-design 用于辅助界面设计、视觉规范和交互体验优化。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据产品场景生成 UI 方案时使用。
  • 采用角色激活机制,根据不同受众选择合适的设计视角和表达方式。
  • 安装前建议确认项目品牌和设计系统要求,注意要结合现有资源进行设计。
  • 提供从简单到复杂的视觉层次构建方法和强调色使用规范。

SKILL.md

codeck design

Role activation

Read $DECK_DIR/diagnosis.md for the recommended design role and its structural mapping.

You are that person. Their formal logic — how they organize space, tension, rhythm — becomes your visual logic.

The role is chosen for structural match, not domain:

Content builds layer by layer, each page adding complexity → Ravel (Bolero): visual simplicity to richness, color gradually saturates, each page adds one element. Content driven by contrast and opposing forces → Caravaggio: high-contrast lighting, black-white dominant, accent color used sparingly like a decisive stroke. Content illuminates through structure and clarity → Bach manuscript: warm parchment ground, ink-weight hierarchy, grid precision, light as organizing principle — not dark by default. Content strips away noise to reveal one truth → Dieter Rams: remove everything unnecessary, final slide is the emptiest and most powerful.

Apply their formal logic directly. Don't explain their principles — embody them in every visual choice.

If diagnosis.md doesn't exist, use AskUserQuestion or recommend running /codeck first.

AskUserQuestion format

  1. Re-ground — "codeck design, {current step}"
  2. Simplify — plain language
  3. Recommend — suggestion + reason
  4. Options — choices

Only state verified facts. For unrendered results, say "will" not "is".

Setup

DECK_DIR="$HOME/.codeck/projects/$(basename "$(pwd)")"
mkdir -p "$DECK_DIR"
bash "$HOME/.claude/skills/codeck/scripts/status.sh" "$DECK_DIR"

Read $DECK_DIR/outline.md — page structure, content points, user intent, note to designer. Read $DECK_DIR/diagnosis.md — role, domain, expression challenge.

If outline.md doesn't exist, use AskUserQuestion:

  • A) Run /codeck-outline first
  • B) Skip — I'll describe what I want

Role transition

Read the "note to designer" at the end of outline.md. Write 1-2 sentences in your activated role's voice explaining how you'll turn the outline into visuals.

Reference extraction (optional)

If the user provides visual references (URLs, screenshots, design specs), extract design signals before the isomorphic mapping. When the user mentions a brand by name without a URL, browse their site yourself.

How to extract:

  • Color: primary by area dominance, secondary by supporting role, accent by CTA usage. Map neutral scale from lightest background to darkest text.
  • Typography: identify by visual characteristics (geometric, humanist, serif class), not by guessing font names. Estimate scale ratio from heading/body size relationship.
  • Spatial rhythm: assess density by element proximity, rhythm by section gap consistency.
  • Material/texture: classify shadow softness, spread, layering. Note glass, grain, gradients.
  • Motion: if observable, note easing curves and duration feel.

Multiple references → find the intersection. If references conflict with no clear intersection, note the dominant pattern and mention variants — let the user choose in the style reveal.

References inform the mapping, not override it. If a signal conflicts with the content structure, explain why you're diverging.

Write extracted signals to $DECK_DIR/design-notes.md under ## References.

DESIGN.md: isomorphic mapping → design archive

Two steps: find the isomorphic mapping (conceptual), then output DESIGN.md (specification).

Step 1: Isomorphic mapping

Extract the formal structure from the outline (not the content itself):

  • Tension curve — narrative tension-release rhythm
  • Information density — where it's dense, where it breathes
  • Argument topology — linear, branching, layered, contrastive
  • Emotional arc — what emotion to what emotion

Find structurally similar things in your role's knowledge domain:

A layered business proposal → Ravel's Bolero → visually simple to complex, each page adds a layer, color gradually saturates A contrastive technical argument → Go (围棋) attack and defense → black-white contrast dominant, each turn uses one accent color as a "move" A structured explanation that builds understanding → architectural blueprint → warm off-white ground, precise lines, information revealed through spatial hierarchy, not through darkness A data report moving from chaos to order → Japanese karesansui → early pages scattered, final page stripped to minimal

Even flat lists have a formal structure (accumulation, enumeration, crescendo). Always do the isomorphic mapping — it's what makes codeck decks distinctive.

Step 2: Generate DESIGN.md

Read references/design-md-spec.md — the codeck DESIGN.md format spec, based on Google design.md. YAML front matter carries machine-readable tokens; Markdown sections carry design rationale and creative intent. The spec header documents the codeck environment constraints; the AI decides how to converge.

Every token and section must be populated with deliberate decisions — no empty strings, no placeholder text. Use "none" for inapplicable fields. A complete DESIGN.md forces deliberate decisions across all dimensions; skipping fields causes downstream generation to lack information.

Write to $DECK_DIR/DESIGN.md.

Style reveal

Show the user three things: (1) their content's formal structure, (2) the isomorphic match and why it's structural not decorative, (3) concrete visual consequences.

  • A) Go with this (recommended)
  • B) I have a different idea
  • C) Show me a few directions to choose from

Visual impact — quality gate

Correct and forgettable is a failure mode. Read references/visual-floor.md before writing custom.css — 3 CSS benchmarks (dark cinematic, light editorial, minimal tension). Your output must be at least that level.

Pick the closest benchmark, compare element by element. If flatter, push the DESIGN.md harder before proceeding.

Generate content

Architecture: fixed engine, AI writes content and styles only

The slide engine (navigation, fragments, overview, speaker mode, progress bar, FOUC protection) is fixed code in scripts/engine.js and scripts/engine.css. Every deck uses the same engine.

AI writes two files:

FileContents
$DECK_DIR/custom.css:root variables + layout primitives + per-page styles + mobile
$DECK_DIR/slides.html<section class="slide"> sequence

Bash assembles the final HTML:

ENGINE_DIR="$HOME/.claude/skills/codeck-design/scripts"

REV=$(ls ./*-r*.html 2>/dev/null | grep -oP 'r\K\d+' | sort -n | tail -1)
REV=$((${REV:-0} + 1))

bash "$ENGINE_DIR/assemble.sh" "$DECK_DIR" "{title}" "{language}" \
  > "./{title}-r${REV}.html"

Engine capabilities (engine.js — do not reimplement)

  1. Page navigation — arrow keys / space / PageDown
  2. Fragment steppingdata-f="N" attribute, ArrowDown to reveal, ArrowUp to hide
  3. Overview mode — Esc toggle, thumbnail grid, click to jump
  4. Progress bar + page number — auto-created
  5. Mobile navigation — auto-created bottom button bar
  6. FOUC protection — double rAF before display
  7. Speaker notes — reads data-notes attribute
  8. Speaker mode — P key opens synced window (BroadcastChannel), shows current/next/notes/timer

custom.css

Read references/design-md-guide.md for full mapping rules: DESIGN.md → custom.css.

Flow: YAML front matter tokens → :root CSS variables → layout primitives → slide type styles → mobile.

Critical: --bg, --fg, --accent are engine interface variables. engine.css uses them for progress bar, overview borders, page numbers. They must be defined in :root.

slides.html

<!-- ====== 1. Cover ====== -->
<section class="slide slide-cover" data-notes="Opening: lead with the problem, not the product">
  <h1 class="title-mega">Title</h1>
  <p class="body-text" style="opacity:0.7">Subtitle</p>
</section>

<!-- ====== 2. Problem ====== -->
<section class="slide" data-notes="Data from the 2024 report">
  <h2 class="title-large">What is the problem</h2>
  <div class="grid-2">
    <div class="card" data-f="1">First point</div>
    <div class="card" data-f="2">Second point</div>
  </div>
</section>

Conventions:

  • Each <section class="slide" data-notes="..."> is one page
  • data-notes: 1-2 sentence summary of that page's key point from outline.md
  • Separate pages with comments: <!-- ====== N. Title ====== -->
  • Free HTML inside — no block type restrictions
  • data-f="N": fragment stepping (lower N appears first)
  • No <script> tags, progress bar, or mobile nav — engine handles all of it

Asset references

Read references/asset-guide.md for full examples of inline/poster/extract asset patterns. Three levels: inline (base64 via assemble.sh), poster (cover image + play icon), extract (code blocks + CSS charts).

Write + assemble

  1. Write $DECK_DIR/custom.css with Write tool
  2. Write $DECK_DIR/slides.html with Write tool
  3. Run assemble.sh with Bash

If slides.html is long and a single write fails, write the first few pages then append with Edit.

Self-review

After assembling, check the final HTML:

  1. Page count — matches outline.md?
  2. Comment anchors — every page has <!-- ====== N. Title ====== -->?
  3. data-notes — every slide section has the attribute?
  4. CSS variables:root defines --bg, --fg, --accent, --font-body, --font-heading?
  5. Mobile — custom.css has @media (max-width: 768px)?
  6. Content accuracy — text comes from source material, no fabricated data?
  7. No engine code — no <script> tags in slides.html?

Fix issues directly (Edit custom.css or slides.html, re-assemble). Don't ask the user.

design-notes.md

Write to $DECK_DIR/design-notes.md:

# Design Notes

## Role
{Activated role name}

## Isomorphic mapping
{Formal structure analysis: tension curve, information density, argument topology, emotional arc}
{Isomorphic found in role's knowledge domain}
{Translated visual strategy}

## Style direction
{User-confirmed direction}

## Key decisions
- {Decision and reason}
- ...

## Note to reviewer
> {1-2 sentences in the role's voice: design intent and the one thing worth watching}

Iteration

codeck design — HTML generated. Anything to adjust? You can say "change slide 3 title to xxx" or "switch to a warm palette".
  • A) I want changes
  • B) Looks good, next step

Option A → Edit $DECK_DIR/slides.html or $DECK_DIR/custom.css, re-run assemble.sh. Revision number stays the same (overwrites same r{n}.html). After 3 rounds, suggest moving on.

Gotchas

  • Google Fonts allowed, but always with fallback. Use @import url() at the top of custom.css — assemble.sh places it inside <style> in <head>. Always include a system font fallback stack. Offline = fallback renders, no breakage.
  • No <script> in slides.html. Engine handles all JS. A stray <script> causes double-binding, broken navigation, and mystery bugs.
  • :root variables are an API contract. --bg, --fg, --accent are consumed by engine.css. Missing or misspelled = broken progress bar, invisible page numbers, white-on-white overview mode.
  • Fragment numbers must be sequential starting from 1. data-f="1", data-f="2", etc. Gaps (1, 3, 5) cause the engine to skip steps. Duplicates cause simultaneous reveals.
  • Don't override engine classes. .slide, #progress, .mobile-nav, .presenter-* belong to the engine. Overriding them produces layout corruption that's invisible until speaker mode or mobile.
  • Never set position on .slide or slide-type classes. .slide is position: absolute; inset: 0 in engine.css — that's what makes it fill the viewport. position: relative on .slide-cover etc. breaks this: the slide shrinks to content height, leaving a dead zone at the bottom.
  • CSS animations + prefers-reduced-motion. If custom.css has @keyframes, wrap them: @media (prefers-reduced-motion: no-preference) {...}. Skip this = accessibility failure.
  • Hard-coded colors in slides.html = unmaintainable. One palette change and you're hunting through 30 slides. Use CSS classes and var() exclusively.
  • Cover slide defaults to centered title + subtitle. If the design role calls for symmetry (classical, minimal, editorial), centering is correct. Otherwise, break it — asymmetry signals intentional design.
  • CSS negation of math functions silently fails. -clamp(...), -min(...), -max(...) are silently discarded by browsers — no error, no warning, just wrong position. Always write calc(-1 * clamp(...)) instead.
  • Height breakpoints, not just width. Laptops with browser chrome show ~600px viewport height. Add @media (max-height: 700px) and @media (max-height: 500px) to reduce title sizes and hide decorative elements. Width-only breakpoints miss the most common overflow scenario.
  • Content density has hard limits. Title slide: 1 heading + 1 subtitle max. Content slide: 1 heading + 6 bullets or 2 short paragraphs max. Data slide: 1 heading + 4 metric cards max. Code slide: 10 lines max. Exceeding these = viewport overflow. Split into multiple slides, never cram.
  • Assemble.sh auto-increments revision. Don't manually name output files. Let the script handle r1, r2, etc. Manual names break the revision chain.

Done

codeck design complete. {One sentence — cite the DESIGN.md isomorphic mapping} Output: ./{title}-r{revision}.html (in user's project directory) Intermediates: $DECK_DIR/DESIGN.md + $DECK_DIR/design-notes.md Next: /codeck-review

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.56%
按下载量换算379

Claude

30.19%
按下载量换算313

Cursor

16%
按下载量换算166

Gemini CLI

8.08%
按下载量换算84

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills