yii2-param-rules

Installation
SKILL.md

Execution Contract

If this skill is triggered, the assistant MUST begin the response with:

=== USING SKILL: yii2-param-rules ===


When to Use This Skill

当出现以下任意请求时必须使用本 Skill:

  • 根据接口参数说明生成 Yii2 rules()
  • 根据字段定义生成 Model::rules()Form::rules()
  • 补参数校验规则、请求校验规则、搜索条件校验规则
  • 把接口文档 / JSON 参数表 / 需求描述转换成 Yii2 validator rules
  • 需要判断某个字段该用 stringintegerdateeachexistunique 等哪种规则

Goal

Related skills
Installs
1
First Seen
Mar 19, 2026