---
name: easy_to_hard.aiconfig
description: 先易后难难度曲线配置封包 - 关卡难度线性递增的参数配置，适合引导新玩家的休闲游戏
triggers: 难度曲线,difficulty,先易后难,easy_to_hard,关卡,level,配置,config,递增,progressive
---

# easy_to_hard.aiconfig

先易后难难度曲线配置封包。配置关卡从简单到困难线性递增，适合给新玩家良好的上手体验。

## Recipe

- **配置方式**：参数化（parametric）
- **核心参数**：
  - `difficultyMode`: `"easy_to_hard"`
  - `initialMoves`: 30（第一关步数）
  - `finalMoves`: 15（最后一关步数）
  - `progressionSteps`: 10（关卡总数）
- **可 fork 变体**：
  - 更快递增：`progressionSteps: 5`，更快进入高难度
  - 超宽松入门：`initialMoves: 50`，给更多初始步数
  - 逆序（先难后易）：将 `initialMoves` 和 `finalMoves` 互换

**配置步骤：**
1. 读取 Prefab 容器的 `game/config.json`
2. 将 `difficulty.curve` 键写入 `"easy_to_hard"`
3. 写入对应步数参数（`difficulty.initialMoves`、`difficulty.finalMoves`）
4. 更新 manifest

## Result

- **产物**：修改 `game/config.json` 的参数键值
- **格式**：JSON patch
- **目标键**：`difficulty.curve`

## Binding

- **Binding Role**：`gameConfig`
- **挂载目标**：`game/config.json`
- **引用类型**：`config-key-value`
- **约束**：key=`difficulty.curve`

## Skill Definition

tools:
  - read
  - write
prompt_extension: |
  You are configuring a difficulty progression curve for a casual match-3 game.
  Follow the Recipe to write the difficulty parameters to game/config.json.
  Use easy_to_hard mode: start with generous moves and gradually decrease over levels.
  Apply the Binding to ensure the config key is correctly set.
