claude-code-best-practice-zh: Skill for Claude Code

.claude/skills/presentation/presentation-styling/SKILL.md

presentation-styling is a skill for Claude Code from rongxinzy/claude-code-best-practice-zh. It costs 23 tokens per session (978 once invoked), scanned A, a copy of presentation-styling, MIT.

A reference for CSS classes, layout patterns, content blocks, lists, badges, and code highlighting used in a presentation. CSS is the language that controls how web content looks.

In plain words
What is it for?
Use it when building or editing presentation slides with two-column layouts, cards, warnings, code blocks, lists, or syntax highlighting.
Why use it?
It helps keep presentation slides consistent without having to rediscover the available styling patterns.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is rongxinzy/claude-code-best-practice-zh's own configuration. It tells Claude Code how to work on claude-code-best-practice-zh itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-best-practice-zh configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rongxinzy/claude-code-best-practice-zh. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rongxinzy/claude-code-best-practice-zh/main/.claude/skills/presentation/presentation-styling/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/rongxinzy/claude-code-best-practice-zh

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for presentation-styling

README.md
[![agentmods](https://agentmods.dev/badge/skills/rongxinzy/claude-code-best-practice-zh/presentation-styling/github.svg)](https://agentmods.dev/skills/rongxinzy/claude-code-best-practice-zh/presentation-styling)
Your own site
<a href="https://agentmods.dev/skills/rongxinzy/claude-code-best-practice-zh/presentation-styling"><img src="https://agentmods.dev/badge/skills/rongxinzy/claude-code-best-practice-zh/presentation-styling/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for presentation-styling

Your own site · 80×15
<a href="https://agentmods.dev/skills/rongxinzy/claude-code-best-practice-zh/presentation-styling"><img src="https://agentmods.dev/badge/skills/rongxinzy/claude-code-best-practice-zh/presentation-styling.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 978 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.00978
Opus 5 $0.00012 $0.00489
Sonnet 5 $0.00005 $0.00196
Haiku 4.5 $0.00002 $0.00098

Measured 9d ago against content hash c62075e1408b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

presentation-styling scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

88% identical to presentation-styling — 74 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/skills/presentation/presentation-styling/SKILL.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

演示样式技能

presentation/index.html 中使用的 CSS 类和 HTML 模式。

CSS 组件类

布局

  • .two-col —— 2 列网格布局,间距 24px
  • .info-grid —— 用于信息卡片的 2 列网格
  • .col-card —— 列内的卡片(添加 .good 显示绿色边框,.bad 显示红色边框)
  • .info-card —— 信息网格中的卡片

内容块

  • .trigger-box —— 灰色背景、深色左边框的方框(用于关键概念、前置要求)
  • .how-to-trigger —— 绿色背景、绿色边框的方框(用于"尝试此操作")
  • .warning-box —— 橙色背景、警告边框的方框(用于重要警告)
  • .code-block —— 深色代码显示块,等宽字体

列表

  • .use-cases —— 图标+文本列表项的容器
  • .use-case-item —— 带有图标和文本的单个项目
  • .feature-list —— 简单的带边框列表

标签和徽章

  • .matcher-tag —— 灰色内联胶囊标签
  • .weight-badge —— 绿色胶囊徽章(由 JS 为带权重的幻灯片自动注入)

代码块语法高亮

.code-block 内,使用以下 span 进行语法着色:

<div class="code-block">
<span class="comment"># 这是一条注释</span>
<span class="key">字段名</span>: <span class="string">值</span>
<span class="cmd">&gt;</span> 要运行的命令
</div>
  • .comment —— 绿色 (#6a9955),用于注释
  • .key —— 蓝色 (#9cdcfe),用于属性名/键
  • .string —— 橙色 (#ce9178),用于字符串值
  • .cmd —— 黄色 (#dcdcaa),用于命令/提示符

幻灯片类型模式

两列内容幻灯片(好与坏对比)

<div class="slide" data-slide="N" data-weight="5">
    <h1>标题</h1>
    <div class="two-col">
        <div class="col-card bad">
            <h4>之前(Vibe 编码)</h4>
            <!-- 不好的示例 -->
        </div>
        <div class="col-card good">
            <h4>之后(智能体)</h4>
            <!-- 好的示例 -->
        </div>
    </div>
</div>

请勿在幻灯片 HTML 中硬编码 <span class="weight-badge">。演示文稿 JavaScript 会自动注入和移除权重徽章。

带代码示例的内容幻灯片

<div class="slide" data-slide="N">
    <h1>标题</h1>
    <div class="trigger-box">
        <h4>关键概念</h4>
        <p>描述</p>
    </div>
    <div class="code-block"><span class="comment"># 示例</span>
<span class="key">字段</span>: <span class="string">值</span></div>
</div>

图标列表模式

<div class="use-cases">
    <div class="use-case-item">
        <span class="use-case-icon">表情</span>
        <div class="use-case-text">
            <strong>标题</strong>
            <span>描述文本</span>
        </div>
    </div>
</div>

旅程栏专用

  • .journey-bar —— 固定在进度栏下方的进度条
  • .journey-bar.hidden —— 在标题幻灯片上隐藏
  • 旅程栏颜色通过 HSL 插值从红色(0%)过渡到绿色(100%)
  • 权重徽章由 JS 自动注入到带权重幻灯片的 h1 元素中

Read the full file on GitHub · 107 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 107 lines · 23 tokens per session scan A c62075e1408b

Subscribe to this mod's changes

presentation-styling is a skill published in the GitHub repository rongxinzy/claude-code-best-practice-zh (6 stars, last pushed 5mo ago), licensed MIT. It adds 23 tokens to every session and 978 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to presentation-styling, differing in 74 lines, and is treated as a copy.

Related

Other skills, from other repositories

chakra-ui-builder

Build responsive, accessible UI components and layouts using Chakra UI v3, install or configure Chakra UI in new and existing projects, and design scalable themes using tokens, semantic tokens, recipes, and slot recipes. Use this skill whenever a user asks to build, create, or generate any UI component, page, form…

chakra-ui/chakra-ui · 214 tokens

visual-ralph

Visual Ralph orchestration for frontend UI from generated references, static references, or live URL targets, using $ralph with built-in visual verdict and pixel-diff evidence until the implementation matches and leaves a reproducible design system.

Yeachan-Heo/oh-my-codex · 50 tokens

frontend-ui-dark-ts

Build dark-themed React applications using Tailwind CSS with custom theming, glassmorphism effects, and Framer Motion animations. Use when creating dashboards, admin panels, or data-rich interfaces with a refined dark aesthetic.

microsoft/skills · 48 tokens

reveal-hover-effect

Build cursor-following spotlight reveals that expose a second aligned image through a soft radial mask. Use for hover-to-color, before-and-after, x-ray, material, texture, product-detail, and illustrated hero effects where a desaturated or embossed base image should remain visible while another treatment follows an…

MengTo/Skills · 66 tokens

frontend-visual-qa

Audits already-rendered web, landing-page, HTML deck/slide, browser tool/game, dashboard/admin, design-system, and desktop UIs using real-browser or native-app journeys, inspected screenshots, DOM geometry, responsive or projection viewports, and a bundled Playwright sweep. Use after UI implementation to find…

daymade/claude-code-skills · 145 tokens

prototype-web

A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.

nexu-io/html-anything · 24 tokens