---
name: shuangdian-analyze
description: Analyze text for Shuangdian (narrative satisfaction) patterns
---

# Shuangdian Analyze - Pattern Detection Skill

Analyzes your writing for satisfaction patterns (爽点) that make readers feel good.

## What It Does

1. Analyzes current chapter or selection
2. Detects 91 possible patterns across 20 archetypes
3. Calculates neural channel activation
4. Checks quadrant position
5. Provides pattern recommendations

## Usage

```bash
# Analyze current file
/shuangdian-analyze

# Analyze specific file
/shuangdian-analyze chapters/chapter-5.md

# Analyze with chapter context
/shuangdian-analyze --chapter 5
```

## Output

```markdown
## Shuangdian Analysis Results

### Detected Patterns (3)
1. **DOM-01** (Face-Slapping / 打脸) - 85% confidence
   - Coordinates: Control +0.8, Emotion +0.9, Personal scale
   - Quadrant: Power (爽文区)
   - Neural Channel: Dopamine

2. **REV-02** (Underdog Reversal / 反转) - 72% confidence
   - Coordinates: Control +0.6, Emotion +0.7, Group scale
   - Quadrant: Power
   - Neural Channel: Dopamine

3. **HEA-01** (Being Understood / 被理解) - 68% confidence
   - Coordinates: Control -0.3, Emotion +0.6, Personal scale
   - Quadrant: Chaos
   - Neural Channel: Oxytocin

### Statistics
- Word Count: 2,450
- Payoff Density: 0.61 (Medium)
- Pattern Diversity: 3 archetypes

### Neural Channels (Fatigue)
- Dopamine: 65% (Moderate fatigue)
- Adrenaline: 45% (Fresh)
- Oxytocin: 30% (Fresh)
- Endorphin: 25% (Fresh)
- Serotonin: 40% (Fresh)
- Vagal: 20% (Very fresh)

### Quadrant Distribution
- Power Zone: 2 patterns (66%)
- Chaos Zone: 1 pattern (33%)
- Void Zone: 0 patterns
- Mastery Zone: 0 patterns

### Recommendations

**Switch Channels**:
- ✅ Use Adrenaline (45% fatigue) - Try CRI-01 (Deadline Crisis)
- ✅ Use Oxytocin (30% fatigue) - Try HEA-02 (Shared Trauma Bonding)

**Quadrant Shift Bonus**:
- Move to Void zone (+30% bonus) - Try PHI-01 (Existential Reckoning)
- Move to Mastery zone (+30% bonus) - Try MAS-01 (Simple Elegant Solution)

**Avoid**:
- ❌ Dopamine patterns (65% fatigue) - Readers may feel numb
- ❌ Stay in Power zone (saturation risk)
```

## Pattern Archetypes

### Power (控制能量)
- **Dominance** (碾压型) - Direct suppression, face-slapping
- **Reversal** (反转型) - Disadvantage → Advantage
- **Mastery** (掌控型) - Rule/system control

### Tension (张力能量)
- **Crisis** (危机型) - High-risk edge stimulation
- **Chaos** (混沌型) - Order collapse pleasure
- **Forbidden** (禁忌型) - Boundary-breaking tension

### Emotion (情绪整合)
- **Healing** (治愈型) - Emotional repair/understanding
- **Cathartic** (痛感型) - Meaningful suffering
- **Resonance** (共鸣型) - Collective emotional contagion

### Cognitive (认知奖励)
- **Revelation** (揭示型) - Truth/identity reveals
- **Upgrade** (升级型) - Cognitive dimension upgrade
- **Exploit** (破解型) - System exploit

### Structure (结构美感)
- **Closure** (闭环型) - Foreshadowing payoff
- **Rhythm** (节奏型) - Rhythm shock
- **Symmetry** (对称型) - Structural symmetry beauty

### Existential (维度扩展)
- **Sacred** (神圣型) - Sublime/transcendence
- **Void** (空无型) - Release/emptiness
- **Philosophical** (哲学型) - Existential meaning

### Meta (叙事层奖励)
- **Self-Referential** (自指型) - Narrative self-awareness
- **Anti-Payoff** (反爽型) - Satisfaction denial

## How It Works

1. **Text Analysis**: Uses MCP server `analyze_shuangdian` tool
2. **Pattern Detection**: Keyword matching + semantic analysis
3. **Tolerance Tracking**: Calculates neural channel fatigue
4. **Recommendations**: AI-powered pattern suggestions

## Integration with Other Skills

```bash
# After analysis, use recommendations
/shuangdian-analyze
# See that CRI-01 recommended

# Generate with specific pattern
/generate "Continue the scene with a deadline crisis"

# Or use plot-next for more context
/plot-next
# Then brainstorm with Shuangdian awareness
```

## Reader Profiles

The analyzer can adapt to different reader preferences:

- **web_novel_reader**: High dopamine/adrenaline sensitivity
- **literary_reader**: High oxytocin/vagal sensitivity
- **balanced**: Equal sensitivity (default)

Configure in VSCode: `claude-novelist.readerProfile`

---

**Implementation Note**: This skill calls the MCP server's `analyze_shuangdian` tool. Ensure server is running.
