everything-claude-code-zh: Skill for Claude Code

.agents/skills/frontend-slides/SKILL.md

frontend-slides is a skill for Claude Code, Codex from xu-xiang/everything-claude-code-zh. It costs 91 tokens per session (2,048 once invoked), scanned A, original, MIT.

A method for creating animated presentation slides as self-contained HTML pages that run in a web browser. It also covers converting PowerPoint files into web presentations and improving existing HTML slides.

In plain words
What is it for?
Use it for pitch decks, talks, workshops, internal presentations, PowerPoint-to-HTML conversions, and visual exploration of presentation styles.
Why use it?
It lets developers build presentations that work without extra libraries while keeping each slide fitted to the viewer's screen.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: installed under .agents/ (shared by several agents).

This is xu-xiang/everything-claude-code-zh's own configuration. It tells Claude Code and Codex how to work on everything-claude-code-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 everything-claude-code-zh configures →

Part of the everything-claude-code-zh plugin — 17 skills, 26 commands, 13 agents shipped together

About the project

everything-claude-code-zh is a Chinese translation of a collection of configurations for Claude Code and other AI coding agents. It provides agents, skills, hooks, commands, rules, and MCP configurations intended to support development workflows such as memory persistence, security scanning, evaluation, and research-first work. The catalogue includes commands, skills, agents, instructions, and a plugin from this configuration set.

xu-xiang/everything-claude-code-zh · 1,935 stars · on GitHub · oneskill.one

Reuse

Borrowing it

Nothing to install: this file belongs to xu-xiang/everything-claude-code-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/xu-xiang/everything-claude-code-zh/main/.agents/skills/frontend-slides/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/xu-xiang/everything-claude-code-zh

Made for: Claude Code, Codex.

Or install everything-claude-code-zh, the plugin that ships this one along with the rest of its 17 skills, 26 commands, 13 agents.

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 frontend-slides

README.md
[![agentmods](https://agentmods.dev/badge/skills/xu-xiang/everything-claude-code-zh/frontend-slides/github.svg)](https://agentmods.dev/skills/xu-xiang/everything-claude-code-zh/frontend-slides)
Your own site
<a href="https://agentmods.dev/skills/xu-xiang/everything-claude-code-zh/frontend-slides"><img src="https://agentmods.dev/badge/skills/xu-xiang/everything-claude-code-zh/frontend-slides/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 frontend-slides

Your own site · 80×15
<a href="https://agentmods.dev/skills/xu-xiang/everything-claude-code-zh/frontend-slides"><img src="https://agentmods.dev/badge/skills/xu-xiang/everything-claude-code-zh/frontend-slides.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,048 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 original No closer match found 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.00091 $0.02048
Opus 5 $0.00046 $0.01024
Sonnet 5 $0.00018 $0.00410
Haiku 4.5 $0.00009 $0.00205

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

Security

Grade A, and why

frontend-slides 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.

.agents/skills/frontend-slides/SKILL.md · 185 lines

How it starts

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

前端幻灯片(Frontend Slides)

创建零依赖(Zero-dependency)、动画丰富的 HTML 演示文稿,完全在浏览器中运行。

灵感来源于 zarazhangrui 作品中所展示的视觉探索方法。

何时激活

  • 创建演讲文稿(Talk Deck)、路演文稿(Pitch Deck)、研讨会文稿或内部演示文稿
  • .ppt.pptx 幻灯片转换为 HTML 演示文稿
  • 改进现有 HTML 演示文稿的布局、动效或排版
  • 与尚不清楚设计偏好的用户一起探索演示风格

核心约束(Non-Negotiables)

  1. 零依赖(Zero dependencies):默认生成单个自包含的 HTML 文件,内联 CSS 和 JS。
  2. 必须适配视口(Viewport fit is mandatory):每张幻灯片必须完全填满一个视口,不得有内部滚动。
  3. 视觉先行(Show, don't tell):使用视觉预览而不是抽象的风格问卷。
  4. 独特的设计:避免使用通用的紫色渐变、白色背景上的 Inter 字体等模板化的设计。
  5. 生产级质量:保持代码注释清晰、具备无障碍性(Accessible)、响应式且性能良好。

在生成之前,请阅读 STYLE_PRESETS.md 以了解视口安全 CSS 基础、内容密度限制、预设目录和 CSS 注意事项。

工作流(Workflow)

1. 检测模式(Detect Mode)

选择一条路径:

  • 新演示文稿:用户有主题、笔记或完整草案
  • PPT 转换:用户持有 .ppt.pptx 文件
  • 增强:用户已有 HTML 幻灯片并希望进行改进

2. 内容探索(Discover Content)

仅询问最基本的需求:

  • 目的:路演、教学、会议演讲、内部更新
  • 长度:短(5-10 页)、中(10-20 页)、长(20 页以上)
  • 内容状态:已完成的文案、粗略笔记、仅有主题

如果用户已有内容,请要求他们在进行风格设计前粘贴内容。

3. 风格探索(Discover Style)

默认为视觉探索。

如果用户已经知道所需的预设,跳过预览并直接使用。

否则:

  1. 询问文稿应营造什么感觉:震撼、活力、专注、启发。
  2. .ecc-design/slide-previews/ 中生成 3 个单页预览文件
  3. 每个预览必须是自包含的,清晰展示排版/颜色/动效,且幻灯片内容保持在 100 行左右。
  4. 询问用户保留哪个预览,或者混合哪些元素。

在将情绪映射到风格时,请参考 STYLE_PRESETS.md 中的预设指南。

4. 构建演示文稿(Build the Presentation)

输出以下之一:

  • presentation.html
  • [presentation-name].html

仅当文稿包含提取的或用户提供的图像时,才使用 assets/ 文件夹。

要求结构:

  • 语义化的幻灯片部分(slide sections)
  • 来自 STYLE_PRESETS.md 的视口安全 CSS 基础
  • 用于主题值的 CSS 自定义属性(Variables)
  • 用于键盘、滚轮和触摸导航的演示控制器类
  • 用于显示动画的相交观察器(Intersection Observer)
  • 减弱动态效果(Reduced-motion)支持

5. 强制视口适配(Enforce Viewport Fit)

将其视为硬性关卡。

规则:

  • 每个 .slide 必须使用 height: 100vh; height: 100dvh; overflow: hidden;
  • 所有字体和间距必须使用 clamp() 进行缩放
  • 当内容放不下时,拆分为多张幻灯片
  • 绝不通过将文本缩小到不可读的大小来解决溢出问题
  • 绝不允许在幻灯片内部出现滚动条

使用 STYLE_PRESETS.md 中的密度限制和强制性 CSS 块。

6. 验证(Validate)

在以下尺寸下检查完成的文稿:

  • 1920x1080
  • 1280x720
  • 768x1024
  • 375x667
  • 667x375

如果浏览器自动化工具可用,使用它来验证没有幻灯片溢出,并且键盘导航正常工作。

7. 交付(Deliver)

在移交时:

  • 删除临时预览文件,除非用户想要保留它们
  • 在有用时,使用平台适用的命令打开文稿
  • 总结文件路径、使用的预设、幻灯片数量以及简单的方案自定义点

Read the full file on GitHub · 185 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 185 lines · 91 tokens per session scan A 139dbb51538c

Subscribe to this mod's changes

frontend-slides is a skill published in the GitHub repository xu-xiang/everything-claude-code-zh (1,935 stars, last pushed 6mo ago), licensed MIT. It adds 91 tokens to every session and 2,048 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

p5js

Use when users request: p5.js sketches, creative coding, generative art, interactive visualizations, canvas animations, browser-based visual art, data viz, shader effects, or any p5.js project.

NousResearch/hermes-agent · 20 tokens

ui-animation

Builds, reviews, and measures UI motion, including springs, gestures, scroll effects, and curve fitting from recordings. Use when asked to "add animation", "match this easing", "reverse engineer this motion", or find animation opportunities. For action semantics use product-design; for visual layout use ui-design.

mblode/agent-skills · 65 tokens

ui-design

Designs and builds React/Next/Tailwind UI and audits visual and interaction defects. Use when asked to "build a landing page", "extract our design system", "add dark mode", "make this responsive", "remove UI slop", or "audit this component". For product decisions use product-design; for browser measurements use…

mblode/agent-skills · 80 tokens

scaffold-nextjs

Scaffolds a Next.js turborepo with Blode UI, icons, Ultracite, workspace hooks, and GitHub/Vercel setup. Use when asked to "create a Next.js project", "bootstrap a turborepo", or "start a new web app". For a page in an existing app use ui-design; for a CLI use scaffold-cli.

mblode/agent-skills · 80 tokens

presentation-creator

Builds decks with a story spine, house visual system, setting-specific density, and speaker notes. Use when asked to "create a presentation", "write a pitch deck", or "turn this doc into slides". Defaults to Marp; use an available presentation tool for editable PowerPoint. For product UI use ui-design.

mblode/agent-skills · 69 tokens

typography-audit

Audits font loading, type scales, measure, spacing, OpenType, and rendered punctuation with 78 scoped rules. Use when asked to "audit typography", "fix the fonts", or "review my type system". For a new visual direction use ui-design Direction; for general UI defects use ui-design Audit.

mblode/agent-skills · 68 tokens