Install any skill in seconds. Free to start, no credit card required.
Get Started Free →用于在Vue.js中根据日期字符串字段(如YYYY-MM-DD格式)对列表数据进行排序,并在v-for中正确渲染。
.claude/skills/ecnu-icalk-vue-js/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-09 | ✗→✓ | ▲ Improved | 15% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 49% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -2% | 0% |
| case-20 | ✓→✗ | ▼ Worse | 10% | 0% |
| case-21 | ✓→✓ | = Same ✓ | -24% | 0% |
用于在Vue.js中根据日期字符串字段(如YYYY-MM-DD格式)对列表数据进行排序,并在v-for中正确渲染。
扮演Vue.js开发专家,协助用户对列表数据进行按日期排序。
YYYY-MM-DD(如 2023-08-01)。computed 计算属性来返回排序后的数组,避免直接修改原数组(建议使用 .slice() 创建副本)。new Date() 将日期字符串转换为时间戳进行比较,以确定先后顺序。v-for 指令中循环使用计算属性返回的数组,而不是原始数组。v-for 中添加 :key 绑定,通常使用 item.id 作为唯一标识。:key 的值来实现排序功能,key 仅用于标识节点。methods 中直接调用排序函数并在模板中执行,这会导致性能问题和重复计算。data 中的原始数组上调用 .sort(),这会破坏响应式数据。| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-20 | pass→fail | 11,589 | 11,262 | -3% | 1 | 1 | 0% | 2,139 | 2,356 | +10% | 0 | 0 | — |
case-21 | pass→pass | 12,473 | 7,951 | -36% | 1 | 1 | 0% | 2,330 | 1,775 | -24% | 0 | 0 | — |
case-22 | pass→pass | 11,375 | 9,224 | -19% | 1 | 1 | 0% | 2,024 | 1,998 | -1% | 0 | 0 | — |
case-01 | pass→pass | 11,511 | 9,229 | -20% | 1 | 1 | 0% | 2,163 | 1,916 | -11% | 0 | 0 | — |
case-02 | pass→pass | 10,893 | 8,527 | -22% | 1 | 1 | 0% | 2,124 | 2,126 | +0% | 0 | 0 | — |
case-03 | pass→pass | 11,055 | 9,845 | -11% | 1 | 1 | 0% | 2,306 | 2,236 | -3% | 0 | 0 | — |
case-04 | pass→pass | 10,884 | 8,591 | -21% | 1 | 1 | 0% | 2,042 | 2,276 | +11% | 0 | 0 | — |
case-05 | pass→pass | 10,419 | 8,411 | -19% | 1 | 1 | 0% | 2,105 | 1,969 | -6% | 0 | 0 | — |
case-06 | pass→pass | 10,631 | 10,493 | -1% | 1 | 1 | 0% | 1,919 | 2,376 | +24% | 0 | 0 | — |
case-07 | pass→pass | 12,045 | 7,715 | -36% | 1 | 1 | 0% | 2,385 | 1,718 | -28% | 0 | 0 | — |
case-08 | pass→pass | 5,950 | 8,507 | +43% | 1 | 1 | 0% | 1,002 | 1,915 | +91% | 0 | 0 | — |
case-09 | fail→pass | 9,622 | 7,670 | -20% | 1 | 1 | 0% | 1,517 | 1,752 | +15% | 0 | 0 | — |
case-10 | pass→pass | 12,265 | 11,396 | -7% | 1 | 1 | 0% | 2,131 | 2,244 | +5% | 0 | 0 | — |
case-11 | fail→pass | 8,803 | 9,715 | +10% | 1 | 1 | 0% | 1,499 | 2,241 | +49% | 0 | 0 | — |
case-12 | pass→pass | 10,605 | 11,191 | +6% | 1 | 1 | 0% | 1,978 | 2,462 | +24% | 0 | 0 | — |
case-13 | pass→pass | 10,709 | 11,109 | +4% | 1 | 1 | 0% | 1,918 | 2,360 | +23% | 0 | 0 | — |
case-14 | pass→pass | 11,571 | 6,794 | -41% | 1 | 1 | 0% | 2,177 | 1,591 | -27% | 0 | 0 | — |
case-15 | fail→pass | 11,162 | 9,025 | -19% | 1 | 1 | 0% | 2,038 | 2,002 | -2% | 0 | 0 | — |
case-16 | pass→pass | 10,998 | 9,303 | -15% | 1 | 1 | 0% | 1,917 | 2,017 | +5% | 0 | 0 | — |
case-17 | pass→pass | 7,938 | 7,547 | -5% | 1 | 1 | 0% | 1,324 | 1,862 | +41% | 0 | 0 | — |
case-18 | pass→pass | 12,950 | 10,194 | -21% | 1 | 1 | 0% | 2,173 | 2,229 | +3% | 0 | 0 | — |
case-19 | pass→pass | 10,708 | 9,536 | -11% | 1 | 1 | 0% | 1,969 | 2,038 | +4% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +9 percentage points is the difference between those two pass rates over the 22 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.