Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides CSS and SCSS comment formatting, favoring explanations of why over what.
39% 96%+57 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 9 of 23 without it.
Write SCSS comments for `.card::after { content: ''; display: flex; }`. Mention the concepts of pseudo-element and flex layout in the annotation.
Formats pseudo-element as `偽元素 (pseudo-element)` in the comment.
This test ran on v3. v5 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
本技能用於 CSS/SCSS 檔案的註解格式指引,確保程式碼的可維護性與可讀性。
撰寫 CSS/SCSS 時,註解應該解釋 「為什麼這樣做」(Why),而非只有 「做了什麼」(What)。
通用規範 SSoT:語言順序、彈性捨棄/保留雙語、判定基準、譯名不唯一、無意義與特殊意圖雙語、術語保留等通用雙語規則與最高原則,一律先實際閱讀 bilingual-standardization-rule 再遵循,本技能不重述(「中文+英文」只是語言組合,不是規則);JS/TS 註解排版見 bilingual-comment-format.md。
本節僅保留套用於 CSS/SCSS 註解的領域專屬要點與範例。CSS 專屬術語首次出現保留
中文 (Term)格式(如偽元素 (pseudo-element)、彈性布局 (flex layout));何時捨棄、何時保留、譯名不唯一、無意義雙語、特殊意圖雙語等判定,一律回歸上述 SSoT 的判定基準。
/* ✅ 短句已自明,只保留一種語言 */
display: flex;
/* ✅ 雙語過長時,選最清晰的語言(依 SSoT 判定基準) */
/*
* 使用負 margin 抵消父容器的 padding,使背景色延伸至容器邊緣,
* 避免因 padding 造成視覺上的留白斷層
*/
margin: 0 -20px;
/* ✅ 技術術語仍須保留雙語 */
/* 使用偽元素 (pseudo-element) 建立視覺分隔線,避免修改 DOM 結構 */
&::before { content: ''; }
/* ✅ 特殊意圖雙語保留(中英彼此不對應,依 SSoT「有特殊意圖的雙語」) */
/* 增益前綴 / Up prefix */
/* ❌ 無意義雙語(依 SSoT 三條件判定)→ 二擇一保留 */
/* 程式碼 / Code */
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.