---
name: consistency-checker
description: Consistency checker for series content. Use this skill when you need to verify that new episode content maintains consistency with global settings, character profiles, and historical plotlines across multiple episodes of a series.
---

# Consistency Checker

## Overview

This skill checks new episode content against global settings and historical context to ensure multi-episode consistency in series creation.

## Core Principles

### What This Skill Does

The Consistency Checker reviews content for:

- **Character consistency** - Personality, speech style, status remain true to established profiles
- **Scene consistency** - Environment descriptions match established settings
- **Plot logic** - Story developments follow logical cause-and-effect relationships
- **Foreshadowing tracking** - New plot threads are recorded and existing ones are resolved

## Check Dimensions

### 1. Character Setting Consistency

Check if character personality, speech style, and status match their established profiles:

- Does personality match the character biography description?
- Is speech style consistent (e.g., an outspoken character shouldn't suddenly become tactful)?
- Are there contradictions in status (e.g., a commoner suddenly using royal language)?

### 2. Scene Setting Consistency

Check if scene descriptions match established settings:

- Do environment descriptions match the setting?
- Are scene transitions reasonable and natural?
- Are descriptions of the same scene across different episodes consistent?

### 3. Plot Logic Consistency

Check if plot developments are reasonable:

- Any contradictions with previous plotlines?
- Is the timeline reasonable?
- Do cause-and-effect relationships hold?

### 4. Foreshadowing Management

Check foreshadowing setup and follow-through:

- Are new foreshadowing elements recorded?
- Are existing foreshadowing threads followed up?
- Any contradictions in foreshadowing?

## Output Format

Return results in the following JSON format:

```json
{
  "passed": true,
  "score": 85,
  "issues": [
    {
      "type": "character_inconsistency",
      "dimension": "Character Consistency",
      "severity": "high",
      "location": {
        "episode": 3,
        "scene": 5,
        "line": 12
      },
      "description": "Li Yunfei's speech became overly literary, inconsistent with his character",
      "original_text": "Li Yunfei: This... this seems rather inappropriate",
      "suggestion": "Suggested change: Li Yunfei: This isn't right!",
      "auto_fix_available": true
    }
  ],
  "new_foreshadowing": [
    {
      "episode": 3,
      "scene": 2,
      "description": "Wan'er mentions 'a pouch left by mother'",
      "importance": "high"
    }
  ],
  "resolved_threads": [
    {
      "thread": "Emperor's wariness of the Chancellor",
      "resolved_in": "EP03",
      "resolution": "Chancellor once held the late Emperor's edict"
    }
  ]
}
```

## Available Tools

This skill can reference the following tools and context:

- `readCharacterProfile(characterId)` - Read character biography
- `readSceneSetting(sceneId)` - Read scene settings
- `readMemory(episodeRange)` - Read historical memory
