---
name: dialogue-components-standardizer
description: A unified skill for standardizing the production and review of 6 dialogue interaction components. Core logic is fixed; optimizations are handled via branch files and scripts for repeatability. Enter skill only when components change dynamically.
---



## 文本输出规范（强制执行）

所有输出的文本内容（台词、题目、选项、解析、音频文本、阅读文章等）必须遵守以下规则：

1. 禁止 Markdown 标记：禁止使用 ** * __ _ 等加粗/斜体标识，也禁止使用 # > - 等块级 Markdown 语法。所有文本纯文本输出。
2. 英式拼写优先：单词涉及英美式拼写差异时（如 colour/color、centre/center、travelling/traveling），统一选择英式拼写。
3. 标点符号规范：严格区分全角/半角符号。中文内容使用全角标点（，。！？），英文内容使用半角标点（. , ! ?），不得混用。

# Dialogue Components Standardizer

## Overview

This skill provides a modular structure for standardizing dialogue components:
- **Core (Fixed)**: Component types, workflows, and policies (defined here).
- **Branch Files**: `component_configs.yaml` for component-specific details (modify for optimizations).
- **Scripts**: Automated execution for repeatable tasks (e.g., generation, review).
- **Dynamic Entry**: Use skill for component changes; otherwise, rely on scripts.

## Core Structure

### Component Types (Fixed)
The 6 components are predefined:
1. dialogue_reading
2. dialogue_expression
3. dialogue_selective_reading
4. dialogue_selection
5. dialogue_sentence_building
6. dialogue_fill_in_the_blanks

### Workflows (Fixed)
- **Production**: Generate configs via script.
- **Review**: Validate via script.
- **Optimization**: Update `component_configs.yaml` for details.

## Branch Files
- `component_configs.yaml`: Contains format, config, and validation rules per component. Modify this for optimizations without altering core.

## Scripts
- `scripts/generate_component.py`: Generates component configs (repeatable).
- `scripts/review_component.py`: Reviews and validates configs (repeatable).

## Usage
1. For standard production: Run scripts directly.
2. For component changes: Enter skill to update core or branch files.
3. Optimize details: Edit `component_configs.yaml`.

## Examples
- Generate: `python3 scripts/generate_component.py --type dialogue_reading --output config.json`
- Review: `python3 scripts/review_component.py --file config.json`
- "Rewrite this paragraph to sound more professional."
  Route: `low_compute_model`
- "Design the data-cleaning approach, then process the CSV."
  Route: `high_compute_model`, then `python_script`

## Resources

- Use [route_request.py](business_production/组件生产/skills/task-router/scripts/route_request.py) as the first-pass classifier and execution planner.
