Install any skill in seconds. Free to start, no credit card required.
Get Started Free →bluelovers/js-git-friendly-coding-style
基於 JavaScript 的代碼風格,優化 Git diff 可讀性與可合併性。使用 Tab 縮排(除非原始縮排是空格),Allman 風格大括號。
Passed 21 of 22 test cases with the skill, and 12 of 22 without it.
and 13 more in the full report
9 fixed12 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 9 test cases the skill fixed. Same model, same prompt, with and without the skill.
Clean up this multi-line import statement: import { foo, bar, baz } from 'module-x';
| Checked | Without skill | With skill |
|---|---|---|
| Places foo and bar on separate lines. | Missed | Passed |
| Adds trailing commas after each imported item. | Missed | Passed |
The instructions your model reads when the skill loads.
此風格旨在減少 Git 差異中的視覺雜訊,提升程式碼合併時的可讀性與安全性。
{ 或 ;如果原始代碼沒有大括號或分號,保持原樣:
// ✅ 保持不變
if (maxSize) this.maxCacheSize = maxSize
// ✅ 保持不變
if (condition)
doSomething()
else
doOther()
不要強行轉換為:
// ❌ 不要這樣做
if (maxSize)
{
this.maxCacheSize = maxSize;
}
除非使用者明確要求添加分號。
⚠️ 以下代碼範例使用 Tab 縮排
test cases passed, vs 12 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.