Presentation 技能同
- 作者仓库星标 56,229
- 作者仓库 claude-code-best-practice
Presentation Styling Skill
CSS classes and HTML patterns used in presentation/index.html.
CSS Component Classes
Layout
.two-col— 2-column grid layout with 24px gap.info-grid— 2-column grid for info cards.col-card— Card inside a column (add.goodfor green border,.badfor red border).info-card— Card in an info grid
Content Blocks
.trigger-box— Gray box with dark left border (for key concepts, prerequisites).how-to-trigger— Green box with green border (for "Try This" actions).warning-box— Orange box with warning border (for important warnings).code-block— Dark code display block with monospace font
Lists
.use-cases— Container for icon+text list items.use-case-item— Individual item with icon and text.feature-list— Simple bordered list
Tags & Badges
.matcher-tag— Gray inline pill tag.weight-badge— Green pill badge (auto-injected by JS for weighted slides)
Code Block Syntax Highlighting
Inside .code-block, use these spans for syntax coloring:
<div class="code-block">
<span class="comment"># This is a comment</span>
<span class="key">field_name</span>: <span class="string">value</span>
<span class="cmd">></span> command to run
</div>
.comment— Green (#6a9955) for comments.key— Blue (#9cdcfe) for property names/keys.string— Orange (#ce9178) for string values.cmd— Yellow (#dcdcaa) for commands/prompts
Slide Type Patterns
Content Slide with Two Columns (Good vs Bad)
<div class="slide" data-slide="N" data-weight="5">
<h1>Title</h1>
<div class="two-col">
<div class="col-card bad">
<h4>Before (Vibe Coding)</h4>
<!-- bad example -->
</div>
<div class="col-card good">
<h4>After (Agentic)</h4>
<!-- good example -->
</div>
</div>
</div>
Do not hardcode <span class="weight-badge"> in slide HTML. The presentation JavaScript injects and removes weight badges automatically.
Content Slide with Code Example
<div class="slide" data-slide="N">
<h1>Title</h1>
<div class="trigger-box">
<h4>Key Concept</h4>
<p>Description</p>
</div>
<div class="code-block"><span class="comment"># Example</span>
<span class="key">field</span>: <span class="string">value</span></div>
</div>
Icon List Pattern
<div class="use-cases">
<div class="use-case-item">
<span class="use-case-icon">EMOJI</span>
<div class="use-case-text">
<strong>Title</strong>
<span>Description text</span>
</div>
</div>
</div>
Journey Bar Specific
.journey-bar— Fixed bar below progress bar.journey-bar.hidden— Hidden on title slide- Journey bar color transitions from red (0%) to green (100%) via HSL interpolation
- Weight badges are auto-injected by JS into
h1elements of weighted slides
- 流狐分类
- 工程开发
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @shanraisshan · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
# Content Slide with Code Example
<div class="slide" data-slide="N">
<h1>Title</h1>
<div class="trigger-box">
<h4>Key Concept</h4>
<p>Description</p>
</div>
<div class="code-block"><span class="comment"># Example</span>
<span class="key">field</span>: <span class="string">value</span></div>
</div> CSS Component Classes
.two-col — 2-column grid layout with 24px gap .info-grid — 2-column grid for info cards .col-card — Card inside a column (add .good for green border, .bad for red border)
.trigger-box — Gray box with dark left border (for key concepts, prerequisites) .how-to-trigger — Green box with green border (for "Try This" actions) .warning-box — Orange box with warning border (for important warnings)
.use-cases — Container for icon+text list items .use-case-item — Individual item with icon and text .feature-list — Simple bordered list
.matcher-tag — Gray inline pill tag .weight-badge — Green pill badge (auto-injected by JS for weighted slides)
Inside .code-block, use these spans for syntax coloring: .comment — Green (6a9955) for comments .key — Blue (9cdcfe) for property names/keys
# Presentation Styling Skill
CSS classes and HTML patterns used in `presentation/index.html`.
## CSS Component Classes
### Layout
- `.two-col` — 2-column grid layout with 24px gap
- `.info-grid` — 2-column grid for info cards
- `.col-card` — Card inside a column (add `.good` for green border, `.bad` for red border)
- `.info-card` — Card in an info grid
### Content Blocks
- `.trigger-box` — Gray box with dark left border (for key concepts, prerequisites)
- `.how-to-trigger` — Green box with green border (for "Try This" actions)
- `.warning-box` — Orange box with warning border (for important warnings)
- `.code-block` — Dark code display block with monospace font
### Lists
- `.use-cases` — Container for icon+text list items
- `.use-case-item` — Individual item with icon and text
- `.feature-list` — Simple bordered list
### Tags & Badges
- `.matcher-tag` — Gray inline pill tag
- `.weight-badge` — Green pill badge (auto-injected by JS for weighted slides)
## Code Block Syntax Highlighting
Inside `.code-block`, use these spans for syntax coloring:
```html
<div class="code-block">
<span class="comment"># This is a comment</span>
<span class="key">field_name</span>: <span class="string">value</span>
<span class="cmd">></span> command to run
</div>
```
- `.comment` — Green (#6a9955) for comments
- `.key` — Blue (#9cdcfe) for property names/keys
- `.string` — Orange (#ce9178) for string values
- `.cmd` — Yellow (#dcdcaa) for commands/prompts
## Slide Type Patterns
### Content Slide with Two Columns (Good vs Bad)
```html
<div class="slide" data-slide="N" data-weight="5">
<h1>Title</h1>
<div class="two-col">
<div class="col-card bad">
<h4>Before (Vibe Coding)</h4>
<!-- bad example -->
</div>
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> CSS Component Classes → Layout → Content Blocks → Lists → Tags & Badges → Code Block Syntax Highlighting
要点 -> CSS classes and HTML patterns used in presentation/index.html. · Do not hardcode <span class="weight-badge"> in slide HTML.
文件/命令 -> presentation/index.html · .two-col · .info-grid · .col-card · .good · .bad · .info-card · .trigger-box
内容 SHA-256 -> fa55c1232d38
原文结构
适用与边界
原文中的明确线索
presentation/index.html、.two-col、.info-grid、.col-card、.good、.bad、.info-card、.trigger-box