К основному содержанию
скилл CX Codex

felo-slides — скилл для Claude Code: что делает и как установить

Генерирует презентации по текстовым описаниям, локальным изображениям и PDF через Felo API. Пригодится, когда нужно быстро получить готовую ссылку на слайды прямо из терминала.

Установить в Claude Code · Через Skills CLI (Vercel) Все способы и платформы ↓
npx skills add Felo-Inc/felo-skills --skill felo-slides -a claude-code
Открыть на GitHub

Что делает felo-slides

Скилл создаёт слайды по текстовому описанию или готовым материалам. В презентацию можно передать локальный PDF или изображение. На выходе агент возвращает ссылку на слайды.

Под капотом работает встроенный скрипт Node.js. Он отправляет запрос к Felo PPT Task API и отслеживает статус генерации. Утилита jq для работы не нужна. Скрипт умеет подключать оформление по идентификатору темы и возобновлять прерванные задачи.

Перед стартом требуется настроить переменную окружения FELO_API_KEY, без неё скрипт сразу завершит работу с ошибкой. Для обычного поиска в сети инструмент не годится. В таких случаях авторы рекомендуют вызывать felo-search.

Какие задачи решает

  • создать презентацию по текстовому описанию или плану
  • превратить локальный PDF или заметки в готовые слайды
  • встроить исходное изображение напрямую в презентацию
  • получить прямую ссылку на сгенерированный слайд-дек
  • возобновить зависшую задачу генерации по её идентификатору

Примеры запросов агенту

  • /felo-slides Создай презентацию по архитектуре проекта на основе прикреплённого документа
  • Сделай слайды из файла notes.pdf и вставь оригинальную диаграмму
  • /felo-slides продолжи опрос задачи с идентификатором TASK_ID

Как установить felo-slides

1Через Skills CLI (Vercel)

npx skills add Felo-Inc/felo-skills --skill felo-slides -a claude-code

2Вручную: положить файлы

~/.claude/skills/felo-slides/SKILL.md

Папка скилла целиком; для одного проекта — .claude/skills/felo-slides/

По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов

Вопросы о felo-slides

Как установить felo-slides в Claude Code?

Выполните команду npx skills add Felo-Inc/felo-skills --skill felo-slides -a claude-code. После этого скилл появится в конфигурации окружения.

Что нужно настроить для работы скилла?

Требуется получить ключ в настройках на сайте felo.ai и записать его в переменную окружения FELO_API_KEY. Если переменная не задана, скрипт прервёт выполнение до обращения к сервису.

Что делать, если генерация слайдов завершилась по таймауту?

Возобновите процесс, передав сохранённый идентификатор задачи через параметр --task-id. Это позволит дождаться результата без создания повторной презентации.

Исходный текст

SKILL.md · MIT
---
name: felo-slides
description: "Generate PPT/slides from prompts, local images, PDFs, and other files with the Felo PPT Task API. Use when users ask to create, make, generate, or export presentations or slide decks; turn an attached/local file into slides; include an original image in a PPT; or explicitly invoke /felo-slides. Handles file upload, API key checks, task creation, polling, and final ppt_url output."
---

# Felo Slides Skill

## When to Use

Trigger this skill for requests about creating presentation files:

- Create/generate slides from a topic or outline
- Turn notes into a PPT deck
- Build slides from a local image, PDF, or document
- Put an uploaded original image into the generated PPT
- Build a presentation with a page count requirement
- Export presentation content into a shareable slide link

Trigger keywords:

- Chinese prompts about making slides or presentations
- English: slides, PPT, presentation deck, generate presentation
- Explicit commands: `/felo-slides`, "use felo slides"

Do NOT use this skill for:

- Real-time information lookup (use `felo-search`)
- Questions about local codebase files
- Pure text tasks that do not require slide generation

## Setup

### 1. Get API key

1. Visit [felo.ai](https://felo.ai)
2. Open Settings -> API Keys
3. Create and copy your API key

### 2. Configure environment variable

Linux/macOS:

```bash
export FELO_API_KEY="your-api-key-here"
```

Windows PowerShell:

```powershell
$env:FELO_API_KEY="your-api-key-here"
```

## How to Execute

Use Bash tool commands and follow this workflow exactly.

### Step 1: Precheck API key

```bash
if [ -z "$FELO_API_KEY" ]; then
  echo "ERROR: FELO_API_KEY not set"
  exit 1
fi
```

If key is missing, stop and return setup instructions.

### Step 2: Run Node Script (create + poll)

Use the bundled script (no `jq` dependency):

```bash
node felo-slides/scripts/run_ppt_task.mjs \
  --query "USER_PROMPT_HERE" \
  --interval 10 \
  --max-wait 1800 \
  --timeout 60
```

When the user provides a local image or file, pass its absolute path with
`--file`. Include the desired use of the original asset in the prompt. For
example:

```bash
node felo-slides/scripts/run_ppt_task.mjs \
  --query "Create exactly 2 slides and place the uploaded original image directly in the PPT" \
  --file "/absolute/path/to/source.jpg" \
  --interval 10 \
  --max-wait 1800 \
  --timeout 60
```

Do not replace `--file` with a textual description when the user explicitly
wants the original file or image used in the PPT.

To apply a specific theme, first list available themes with `felo ppt-themes`, then pass the theme ID:

```bash
node felo-slides/scripts/run_ppt_task.mjs \
  --query "USER_PROMPT_HERE" \
  --theme "THEME_ID_HERE" \
  --interval 10 \
  --max-wait 1800 \
  --timeout 60
```

Script behavior:

- Creates task via `POST https://openapi.felo.ai/v2/ppts`
- Supports optional `--file <path>` to upload one local file with `multipart/form-data`
- Supports optional `--theme <id>` to apply a PPT theme (sends `ppt_config.ai_theme_id`)
- Supports optional `--livedoc-id <id>` to reuse an existing LiveDoc instead of auto-creating a new one
- Supports optional `--task-id <id>` to resume polling an existing task (skips creation)
- Polls via `GET https://openapi.felo.ai/v2/tasks/{task_id}/historical`
- Treats `COMPLETED`/`SUCCESS` as success terminal (case-insensitive)
- Treats `FAILED`/`ERROR` as failure terminal
- Stops polling immediately on terminal status
- Prints `ppt_url` on success (fallback: `live_doc_url`)

Optional debug output:

```bash
node felo-slides/scripts/run_ppt_task.mjs \
  --query "USER_PROMPT_HERE" \
  --interval 10 \
  --max-wait 1800 \
  --json \
  --verbose
```

This outputs structured JSON including:

- `task_id`
- `task_status`
- `ppt_url`
- `live_doc_url`
- `livedoc_short_id`
- `ppt_business_id`
- `error_message`

### Step 3: Confirm terminal status

The script polls the historical endpoint automatically. Wait for it to exit
before responding:

- Success: terminal status is `COMPLETED` or `SUCCESS`, and the script prints
  `ppt_url` (fallback: `live_doc_url`)
- Failure: terminal status is `FAILED` or `ERROR`; return the error format below
- Timeout: include the `task_id` and tell the user to resume with `--task-id`
  instead of creating a duplicate PPT task

### Step 4: Return structured result

On success, return:

- `ppt_url` immediately (script default output, fallback `live_doc_url`)
- if `--json` is used, also include `task_id`, terminal status, and optional metadata

## Output Format

Use this response structure:

```markdown
## PPT Generation Result

- Task ID: <task_id>
- Status: <status>
- PPT URL: <ppt_url>
- Live Doc URL: <live_doc_url or N/A>

## Notes

- livedoc_short_id: <value or N/A>
- ppt_business_id: <value or N/A>
```

Error format:

```markdown
## PPT Generation Failed

- Error Type: <error code or category>
- Message: <readable message>
- Suggested Action: <next step>
```

## Error Handling

Known API error codes:

- `INVALID_API_KEY` (401): key invalid or revoked
- `PPT_TASK_CREATE_FAILED` (502): create task downstream failed
- `PPT_TASK_QUERY_FAILED` (502): query task downstream failed

Timeout handling:

- If timeout reached, return last known status and instruct user to retry later
- Include `task_id` so user can query again
- **IMPORTANT**: To resume a timed-out task, use `--task-id` instead of `--query` to avoid creating a duplicate PPT:

```bash
node felo-slides/scripts/run_ppt_task.mjs \
  --task-id "TASK_ID_HERE" \
  --interval 10 \
  --max-wait 1800
```

## Important Notes

- Always execute this skill when user intent is slide generation.
- Always return `task_id` so follow-up queries can continue from the same task.
- Do not claim completion without a terminal status.
- Keep API calls minimal: create once, then poll.

## References

- [Felo PPT Task API](https://openapi.felo.ai/docs/api-reference/ppt-tasks)
- [Felo Open Platform](https://openapi.felo.ai/docs/)

© Felo-Inc · MIT · Felo-Inc/felo-skills

Похожие скиллы

Всё по теме «Документы и офис» →
scientific-slides K-Dense-AI Помогает готовить презентации для научных конференций, семинаров и защиты диссертаций. Поддерживает сборку слайдов в PowerPoint и LaTeX Beamer с контролем структуры и стиля. CX Codex +1 2 200установок frontend-slides-editable archlizheng Создаёт одностраничные HTML-презентации со встроенным редактором в браузере. Подходит, когда слайды нужно менять после генерации. CX Codex +1 536установок academic-slides EvoScientist Помогает собрать структуру научного доклада, разложить статью на слайды и сгенерировать файл .pptx для защиты или конференции. CX Codex +1 481установок presentation-design jwynia Скилл проектирует презентации вокруг аудитории: структура, визуальная ясность, когнитивная нагрузка. Пригодится перед подготовкой доклада или разбором готовых слайдов. CX Codex +1 2 500установок slides-generator hummingbot Собирает презентацию в PDF из markdown-файла: титульный слайд, разделы, таблицы, код и диаграммы Mermaid. Пригодится, когда нужен доклад или техническая документация без ручной вёрстки. CX Codex +1 371установок ai-slides claude-office-skills Скилл превращает тему, план или черновые заметки в готовую презентацию со структурой, содержанием и подсказками по визуалу. Пригодится, когда слайды нужны к утру, а не через неделю. CX Codex +1 4 900установок

Спонсоры проекта

Компании, которые помогают держать аналитику открытой