Agent skill

slides-generator

Generate interactive presentation slides using React + Tailwind. Triggers on keywords like "slides", "presentation", "PPT", "demo", "benchmark".

Stars 47
Forks 14

Install this agent skill to your Project

npx add-skill https://github.com/NanmiCoder/claude-code-skills/tree/main/plugins/slides-generator/skills/slides-generator

SKILL.md

Slides Generator

Generate professional presentation slides through parallel subagent execution.

Workflow

Step 1: 收集需求 + 确认大纲
Step 2: 创建项目 + 并行生成 slides
Step 3: 组装 + 启动

Step 1: 收集需求 + 确认大纲

Ask questions to understand:

  • Content: Title, number of slides, key points per slide
  • Style preference: Tech / Professional / Vibrant / Minimal

Recommend a theme from palettes.md based on style keywords.

Quick recommendations:

User says Recommend
"Tech", "Modern" dark-sapphire-blue (glass)
"Cyberpunk", "Neon" cyberpunk (glass)
"Natural", "Organic" summer-meadow (flat)
"Minimal", "Clean" black-and-white (flat)
"Professional" minimal-modern-light (flat)

Present outline for confirmation:

markdown
## Presentation Outline

**Title**: Model Engineering Capability Benchmark
**Theme**: dark-sapphire-blue (glass style)
**Output**: ./model-benchmark (reply with path to change)

**Slides**:
1. Hero - Title and overview
2. Framework - Evaluation dimensions
3. Task 1 - Backend development
4. Summary - Conclusions

**Confirm to generate?**

Step 2: 创建项目 + 并行生成 slides

2a. Create project skeleton

bash
# 1. Copy template
cp -r <skill-path>/assets/template <output-dir>
cd <output-dir>

# 2. Update tailwind.config.js with theme colors
# 3. Update index.html title
# 4. Ensure src/slides/ directory exists

2b. Dispatch parallel subagents

For each slide, dispatch a subagent. Read design-guide.md first, then include its content in each subagent prompt.

Subagent prompt template:

You are generating slide ${number} for a presentation.

## Design Guide
${designGuideContent}

## Theme Colors (use these Tailwind variables, not hardcoded colors)
- primary-50 to primary-950, accent-50 to accent-950
- bg-base, bg-card, bg-elevated
- text-primary, text-secondary, text-muted
- border-default, border-subtle

## Style: ${style}
${style === 'glass' ?
  'Use glassmorphism: glass class or bg-white/10 backdrop-blur-md border-white/20' :
  'Use flat design: bg-bg-card shadow-sm border-border-default'}

## Slide Content
Type: ${slideType}
Title: ${title}
Key Points:
${keyPoints}

## Output
Write a complete JSX file to: src/slides/${filename}
- React function component with default export
- Import icons from lucide-react, animations from framer-motion
- Follow slide-page / slide-content structure from the design guide

${firstSlideCode ? `
## Reference (match this style)
\`\`\`jsx
${firstSlideCode}
\`\`\`` : ''}

Execution: Dispatch all subagents in parallel. After slide 01 is generated, pass its code as reference to subsequent slides.

Step 3: 组装 + 启动

After all subagents complete:

  1. Update App.jsx with slide imports:
jsx
import Slide01 from './slides/01-hero';
import Slide02 from './slides/02-framework';
// ...

const SLIDES = [Slide01, Slide02, ...];

const NAV_ITEMS = [
  { slideIndex: 0, label: 'Hero' },
  { slideIndex: 1, label: 'Framework' },
  // ...
];
  1. Install and start:
bash
npm install && npm run dev

Theme System

Themes are defined in palettes.md. Each theme has:

  • ID: Unique identifier
  • Tags: Keywords for matching user preferences
  • Style: glass or flat
  • Colors: 5 base colors that expand to full palette

Design Reference

See design-guide.md for layout rules, animation patterns, typography, and style conventions. This file should be included in every subagent prompt.

Project Structure

output-dir/
├── package.json
├── vite.config.js
├── tailwind.config.js      ← Theme colors
├── index.html              ← Title
├── src/
│   ├── main.jsx
│   ├── App.jsx             ← Slide imports & navigation
│   ├── index.css
│   ├── components/
│   │   └── Navigation.jsx
│   └── slides/
│       ├── 01-hero.jsx
│       ├── 02-framework.jsx
│       └── ...

Expand your agent's capabilities with these related and highly-rated skills.

NanmiCoder/claude-code-skills

news-extractor

新闻站点内容提取。支持微信公众号、今日头条、网易新闻、搜狐新闻、腾讯新闻。当用户需要提取新闻内容、抓取公众号文章、爬取新闻、或获取新闻JSON/Markdown时激活。

47 14
Explore
NanmiCoder/claude-code-skills

langchain-use

LangChain 1.0 使用指南。提供 Agent、Tool、Memory、Middleware 等核心概念的快速参考。当用户需要创建 AI Agent、集成 LangChain、或解决 LangChain 相关问题时激活。

47 14
Explore
NanmiCoder/claude-code-skills

srt-to-structured-data

将 SRT 字幕文件转换为结构化 JSON 数据。 触发场景: (1) 需要解析 SRT 字幕文件 (2) 需要将字幕转为 JSON/结构化格式 (3) 需要提取字幕时间码和文本 (4) 视频字幕数据处理和分析 (5) 生成字幕纯文本或统计信息

47 14
Explore
NanmiCoder/claude-code-skills

feishu:access

Manage Feishu channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Feishu channel.

47 14
Explore
NanmiCoder/claude-code-skills

feishu:configure

Set up the Feishu channel — save the bot credentials and check connection status. Use when the user pastes Feishu app credentials, asks to configure Feishu, or wants to check channel status.

47 14
Explore
NanmiCoder/claude-code-skills

agent-team-orchestrator

Agent Teams 智能编排决策引擎。自动分析任务复杂度,判断使用 Subagent 还是 Agent Teams。 触发场景: (1) 任务涉及多角度并行分析(如代码审查、竞争假说调试) (2) 需要成员之间互相通信、质疑、协作 (3) 跨层开发(前端/后端/测试各自负责) (4) 用户明确要求"创建团队"、"用 agent teams" (5) 任务描述包含"并行"、"同时"、"多人"、"协作"等关键词 (6) 使用 /team 命令

47 14
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results