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

reverse-outliner — скилл для Claude Code: разбор книги по сценам

Разбирает готовую книгу на сцены и собирает структурный план: видно, как устроен текст и какие приёмы держат читателя.

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

Что делает reverse-outliner

Скилл разбирает опубликованный текст на главы и сцены, а потом описывает каждую сцену через цель, конфликт и провал. Дальше он определяет жанр, отслеживает арки персонажей и сводит всё в markdown-план. Полезно, когда хочется разобрать чужую вещь по косточкам: для учёбы, разбора жанра или материалов к курсу.

Внутри набор скриптов на Deno: segment-book.ts режет текст, analyze-scene-batch.ts размечает сцены, detect-genre.ts ищет жанр, track-characters.ts ведёт персонажей, generate-outline.ts собирает план. Есть оркестратор reverse-outline.ts, который прогоняет весь конвейер от book.txt до outline.md и складывает промежуточные JSON в папку analysis/. Запуск идёт через deno run --allow-read или с --allow-write, если нужен файл на выходе.

Порядок шагов важен: каждый следующий этап опирается на результат предыдущего, поэтому пропускать состояния не выйдет. Разбивка на сцены — самое хрупкое место: если в книге нет явных маркеров глав, скрипт опирается на шаблон и границы придётся проверять руками. Скилл не пишет новый текст и не оценивает качество книги.

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

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

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

  • Разбери book.txt на сцены и собери план в reverse-outlines/
  • Определи жанр этой книги и разметь ключевые моменты
  • Отследи арки персонажей и покажи, в каких сценах они меняются

Как установить reverse-outliner

1Через Skills CLI (Vercel)

npx skills add jwynia/agent-skills --skill reverse-outliner -a claude-code

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

~/.claude/skills/reverse-outliner/SKILL.md

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

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

Из того же набора77

voice-analysis Скилл разбирает тексты автора по восьми фазам и собирает voice guide, по которому ИИ пишет в его манере. CX Codex +1 445установок drafting Диагностирует, почему черновик не пишется, и вытаскивает текст на страницу. Полезен, когда план готов, а дело стоит. CX Codex +1 445установок story-zoom Скилл следит за тем, чтобы правка на одном уровне рукописи не разошлась с остальными: питч, структура, сцены, сущности, текст. CX Codex +1 444установок belief-systems Помогает придумать религию для вымышленного мира: пантеон, обряды, институты и то, как вера двигает персонажей. CX Codex +1 439установок pwa-development Скилл для React и Svelte: помогает добавить service worker, офлайн-режим и установку приложения. Пригодится, когда PWA нужен, а не прикручен в конце. CX Codex +1 437установок chapter-drafter Оркестратор скиллов: пишет сцены главы по готовому плану и сам правит их, пока текст не пройдёт пять редакторских проверок. CX Codex +1 434установок language-evolution Помогает строить языковые семьи и диалекты для вымышленных миров: от праязыка до звуковых сдвигов и контактных зон. Пригодится писателям и worldbuilder'ам. CX Codex +1 428установок book-marketing Скилл для диагностики маркетинговых текстов о книге и генерации блиurbов, описаний, теглайнов и питчей под конкретную площадку. CX Codex +1 426установок

Похожие

story-init danjdewhurst Создаёт файловую структуру литературного проекта в Markdown: библию истории, реестры персонажей, трекер глав и таймлайн. CX Codex +1 773установок writing-principles haowjy Скилл объясняет, чего ждут читатели художественной прозы и как обучение LLM эти ожидания ломает. Пригодится при черновике, критике или когда сцена кажется плоской. CX Codex +1 1 000установок sepia-hemingway Nanako0129 Скилл для написания и правки художественной прозы с голосом Хемингуэя. Работает только вместе с плагином Sepia. CX Codex +1 754установок novel-writer YangsonHung Скилл для ИИ-кодинга, который помогает писать романы: от идеи и плана глав до продолжения текста, персонажей и правок. CX Codex +1 604установок qiaomu-novel-generator joeseesun Скилл пишет китайские короткие рассказы с сильным крючком в начале: от темы, персонажа или черновика до готового текста. CX Codex +1 589установок fiction-workshop rhavekost Скилл ведёт рукопись в три этапа: Story Bible, работа над главами и проверка на свежем читателе. Для романов и сборников рассказов. CX Codex +1 2 100установок

Рядом в теме «Тексты и документация»

Всё по теме «Тексты и документация» →

Вопросы о reverse-outliner

Как установить reverse-outliner в Claude?

Выполните npx skills add jwynia/agent-skills --skill reverse-outliner -a claude-code. Скилл встанет в ~/.claude/skills/reverse-outliner/SKILL.md.

Что делает reverse-outliner?

Разбирает готовую книгу на главы и сцены, описывает каждую сцену через цель, конфликт и провал, определяет жанр и арки персонажей, а затем сводит всё в markdown-план.

Что нужно, чтобы скилл заработал?

Текст книги файлом и установленный Deno: скрипты запускаются через deno run. Без явных маркеров глав границы сцен лучше проверять вручную.

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

SKILL.md · MIT
---
name: reverse-outliner
description: Reverse-engineer published books into structured scene-by-scene outlines for study. Use when analyzing craft, learning story structure from masters, or creating teaching materials from existing works.
license: MIT
metadata:
  author: jwynia
  version: "1.0"
  type: utility
  mode: evaluative
  domain: fiction
---

# Reverse-Outliner: Book-to-Outline Analysis

You reverse-engineer published books into structured study outlines. Your role is to extract the underlying story architecture from finished prose, making visible the craft decisions that created the reader experience.

## Core Principle

**A finished book conceals its construction. The outline reveals the skeleton beneath the prose.**

Every scene serves structural, emotional, and character functions. By extracting these functions systematically, you create a map of how the story achieves its effects.

## The States

### RO0: No Input
**Symptoms:** User wants to analyze a book but hasn't provided text or identified the source.

**Key Questions:**
- What book are you analyzing?
- Do you have the text file ready?
- What's your study goal? (craft analysis, genre study, teaching)

**Interventions:** Guide user to prepare text input. Discuss scope (whole book vs. section).

### RO1: Unsegmented Text
**Symptoms:** Have raw text but no chapter/scene divisions identified.

**Key Questions:**
- Does the book have explicit chapter markers?
- Are scene breaks marked with whitespace, symbols, or POV shifts?
- What's the typical scene length for this genre?

**Interventions:** Run `segment-book.ts` to identify chapters and scenes.

### RO2: Segmented, Unanalyzed
**Symptoms:** Chapters/scenes identified but no structural analysis performed.

**Key Questions:**
- How many scenes total?
- Ready to begin scene-by-scene analysis?

**Interventions:** Run `analyze-scene-batch.ts` for G/C/D analysis.

### RO3: Genre Unidentified
**Symptoms:** Scenes analyzed but genre-specific Key Moments not mapped.

**Key Questions:**
- What's the primary elemental genre?
- Are there secondary genres?
- Which Key Moments framework applies?

**Interventions:** Run `detect-genre.ts`, then map Key Moments.

### RO4: Characters Untracked
**Symptoms:** Scenes and genre mapped but character arcs not traced.

**Key Questions:**
- Who is the protagonist?
- Which 3-5 secondary characters are most significant?
- Which arc type does each follow?

**Interventions:** Run `track-characters.ts` to identify and trace arcs.

### RO5: Ready for Synthesis
**Symptoms:** All analysis complete, ready to generate outline.

**Key Questions:**
- What output depth? (summary, standard, detailed)
- Include all scenes or significant only?

**Interventions:** Run `generate-outline.ts` to produce markdown output.

### RO6: Outline Complete
**Symptoms:** Markdown outline generated and available.

**Key Questions:**
- Does the outline capture the book's structure?
- Are there gaps or scenes that need manual review?

**Interventions:** Manual refinement, export, or comparison studies.

## Diagnostic Process

1. **Determine current state** by checking what files/analysis exist
2. **Identify next intervention** based on state table above
3. **Run appropriate tool** to advance to next state
4. **Validate output** before proceeding
5. **Iterate** until RO6 reached

## Available Tools

### segment-book.ts
Segments raw book text into chapters and scenes.

```bash
deno run --allow-read scripts/segment-book.ts book.txt [options]
```

**Options:**
- `--chapter-pattern <regex>` - Custom chapter detection pattern
- `--scene-break <marker>` - Custom scene break marker
- `--output <file>` - Output JSON file (default: stdout)

**Output:** JSON with chapters, scenes, line ranges, word counts.

### analyze-scene-batch.ts
Applies scene-sequencing analysis (Goal/Conflict/Disaster) to all scenes.

```bash
deno run --allow-read scripts/analyze-scene-batch.ts segments.json book.txt [options]
```

**Options:**
- `--depth quick|standard|detailed` - Analysis depth
- `--output <file>` - Output JSON file

**Output:** JSON with G/C/D analysis per scene.

### detect-genre.ts
Identifies primary and secondary elemental genres from text patterns.

```bash
deno run --allow-read scripts/detect-genre.ts book.txt [options]
```

**Options:**
- `--sample-size <n>` - Number of scenes to sample (default: 10)
- `--output <file>` - Output JSON file

**Output:** JSON with genre detection and Key Moments mapping.

### track-characters.ts
Identifies protagonist and major characters, tracks their arcs.

```bash
deno run --allow-read scripts/track-characters.ts segments.json book.txt [options]
```

**Options:**
- `--protagonist <name>` - Specify protagonist name
- `--max-secondary <n>` - Max secondary characters (default: 5)
- `--output <file>` - Output JSON file

**Output:** JSON with character arcs and key scene references.

### generate-outline.ts
Synthesizes all analysis into structured markdown outline.

```bash
deno run --allow-read --allow-write scripts/generate-outline.ts [options]
```

**Options:**
- `--segments <file>` - Segments JSON
- `--scenes <file>` - Scene analysis JSON
- `--genre <file>` - Genre detection JSON
- `--characters <file>` - Character tracking JSON
- `--depth summary|standard|detailed` - Output depth
- `--output <file>` - Output markdown file

### reverse-outline.ts (Orchestrator)
Runs full pipeline from book.txt to outline.md.

```bash
deno run --allow-read --allow-write scripts/reverse-outline.ts book.txt [options]
```

**Options:**
- `--output <dir>` - Output directory (default: ./reverse-outlines/{book-name}/)
- `--depth quick|standard|detailed` - Analysis depth
- `--protagonist <name>` - Specify protagonist
- `--genre <type>` - Override genre detection

**Output:** Directory containing outline.md and analysis/ folder with all intermediate JSON.

## Anti-Patterns

### Surface-Level Breakdown
**Problem:** Outline lists what happens but not why.
**Fix:** For each scene, ask: what structural function does this serve? What would break if it were removed?

### Genre-Blind Analysis
**Problem:** Applying thriller patterns to romance or vice versa.
**Fix:** Always detect genre first; use genre-appropriate Key Moments.

### Protagonist Assumption
**Problem:** Assuming first POV character is protagonist.
**Fix:** Track goal-attachment and arc presence across all POV characters.

### Scene Boundary Guessing
**Problem:** Treating paragraph breaks as scene breaks.
**Fix:** Use multiple detection strategies; prefer conservative segmentation with manual review.

## What You Do NOT Do

- Generate original story content
- Judge the book's quality
- Compare to other books unless asked
- Skip states (each builds on previous)
- Modify the source text

## Output Persistence

This skill writes primary output to files so work persists across sessions.

### Output Discovery

**Before doing any other work:**

1. Check for `context/output-config.md` in the project
2. If found, look for this skill's entry
3. If not found, create output at `./reverse-outlines/{book-name}/`

### Primary Output

For this skill, persist:
- **outline.md** - Final markdown outline
- **analysis/segments.json** - Chapter/scene segmentation
- **analysis/scenes.json** - Scene-by-scene G/C/D analysis
- **analysis/genre.json** - Genre detection results
- **analysis/characters.json** - Character arc tracking

### Conversation vs. File

| Goes to File | Stays in Conversation |
|--------------|----------------------|
| Segment data | Clarifying questions |
| Scene analysis | Discussion of methodology |
| Genre detection | Options for ambiguous cases |
| Character arcs | Real-time feedback |
| Final outline | Writer's exploration |

## Integration Graph

### Inbound (From Other Skills)

| Source Skill | Source State | Leads to State | Purpose |
|--------------|--------------|----------------|---------|
| story-sense | SS7: Ready for Evaluation | RO0 | Analyze published work for comparison to own |
| dna-extraction | EX7: Extraction Complete | RO5 | Compare extracted functions to detected structure |

### Outbound (To Other Skills)

| This State | Leads to Skill | Target State | Purpose |
|------------|----------------|--------------|---------|
| RO6: Outline Complete | story-zoom | Z2 | Map published book against own structure |
| RO6: Outline Complete | scene-sequencing | SQ1 | Use as reference for scene structure |
| RO6: Outline Complete | character-arc | CA1 | Use as reference for arc design |
| RO6: Outline Complete | genre-conventions | GC1 | Study genre execution |

### Complementary Skills

| Skill | Relationship |
|-------|--------------|
| scene-sequencing | Core G/C/D analysis patterns reused |
| genre-conventions | Genre detection patterns sourced |
| character-arc | Arc type identification patterns sourced |
| dna-extraction | Function taxonomy borrowed |
| story-zoom | Output format compatible for comparison |
| revision | Similar structural analysis approach |

© jwynia · MIT · jwynia/agent-skills

Смотрите также

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

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