Install any skill in seconds. Free to start, no credit card required.
Get Started Free →bluelovers/comment-format-rules-css
CSS/SCSS 註解規範。適用於撰寫或修改 CSS/SCSS 檔案時的註解格式指引。核心原則:註解應解釋「為什麼這樣做」而非只有「做了什麼」。
Passed 22 of 23 test cases with the skill, and 9 of 23 without it.
and 23 more in the full report
14 fixed8 passed either way0 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
This benchmark measured an earlier version of the skill.
A newer attempt on gemini-3.6-flash on 10/14/2026 did not produce a publishable comparison (not comparable). The snapshot above is the previously measured run.
One of 14 test cases the skill fixed. Same model, same prompt, with and without the skill.
Write SCSS comments for `.card::after { content: ''; display: flex; }`. Mention the concepts of pseudo-element and flex layout in the annotation.
| Checked | Without skill | With skill |
|---|---|---|
| Formats pseudo-element as `偽元素 (pseudo-element)` in the comment. | Missed | Passed |
| Places comments on lines above the target selector or rule. | Missed | Passed |
The instructions your model reads when the skill loads.
本技能用於 CSS/SCSS 檔案的註解格式指引,確保程式碼的可維護性與可讀性。
撰寫 CSS/SCSS 時,註解應該解釋 「為什麼這樣做」(Why),而非只有 「做了什麼」(What)。
最高原則參照:依據 bilingual-standardization-rule,「彈性取捨(捨棄與保留)」 與 「技術術語錨點」 為最高原則,在 CSS/SCSS 註解中仍需嚴格遵守。
當雙語造成閱讀障礙或內容過長時,保留最清晰的一種語言即可,無需強制雙語。
本節的另一面是彈性保留雙語 (Flexible Bilingual Retention)(見本節末尾「變體」子節)—— 兩者一體兩面、本質相同:都只保留真正有雙語價值的部分,差異僅在取捨方向的微小不同。
例外:技術術語的雙語標註仍應保留(如 flex 布局 (flex layout)、偽元素 (pseudo-element))。
判定基準 (Quick Check): 看雙語中的英文部分——不懂英文、只理解簡單單字的人,是不是也知道?
Code、Problem 這類簡單詞)→ 英文對中文讀者未提供新資訊:屬可捨棄的雙語,二擇一保留(見「無意義雙語」)flex layout、pseudo-element)→ 英文是理解與搜尋的入口:保留雙語⚠️ 例外:「有特殊意圖的雙語」(見下方「有特殊意圖的雙語」,如
增益 / Gain)不受此基準影響—— 即使英文是簡單單字,只要中英彼此不對應、捨棄任一方即失去雙向搜尋,仍須保留。
譯名不唯一的術語 (Variant Translations): 部分技術術語的中文譯名不唯一
(如 Cache → 快取 / 緩存 / 緩衝),中文本身即帶歧義——只留中文時,不同讀者會用不同譯名搜尋而比對不到。
這類術語兩種做法皆可,唯獨不可只保留中文譯名:
快取 (Cache) — 譯名 + 英文錨點,兩種語言的讀者都能對上Cache — 以英文為唯一稱呼,從根源避免譯名分歧| 情境 | 建議做法 |
|---|---|
| 短句、屬性說明已自明 | 可省略另一語言 |
| 雙語合併後超過一行且可讀性下降 | 先縮小雙語範圍(僅術語保留雙語);仍過長再選擇最清晰的語言捨棄另一語言 |
test cases passed, vs 9 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.