Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Decides comment intent and content quality, writing bilingual code comments that explain why.
68% 82%+14 ptsof test cases passed
Passed 18 of 22 test cases with the skill, and 15 of 22 without it.
This test ran on v6. v7 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
分析程式碼結構並決定註解意圖 (Comment Intent) 與內容品質 (Content Quality),為代碼添加高品質的雙語註解——「雙語」不等於「中文+英文」並列,語言順序、彈性取捨與術語錨點須先閱讀 bilingual-standardization-rule 再落筆。
適用時機:本規範不是「使用者點名時才遵守」——凡任務涉及撰寫、新增、修改、重構、搬移或審查任何程式碼註解/JSDoc/文件註解,落筆前一律套用本技能(意圖與內容品質)與 comment-format-rules-js(格式排版),即使使用者完全沒提到「註解」。
職責邊界與核心分工:
- 本技能負責【註解意圖與內容品質】:決定 何處需要註解、註解應表達什麼業務意圖與 WHY、註解是否應當存在(審查並刪除無意義註解與任務紀錄)。
- 格式排版由 comment-format-rules-js 規範:強制區塊註解格式(
/** ... */,禁用行內//)、單多行排版、JSDoc 標籤語法、縮排對齊與轉換工具。- 雙語原則由 bilingual-standardization-rule 規範:語言順序、判定基準、術語保留與彈性取捨等最高原則——產出前須實際閱讀該檔;「中文+英文」只是語言組合,不是規則。
格式與排版參照:邏輯區塊註解之排版對齊、單行/多行合併格式,請參閱 comment-format-rules-js — 邏輯區塊註解格式。
實作細節分界:函式內部陳述式的實作原因(例如內部快取為何清空、如何重建)應直接寫在該陳述式上方的邏輯區塊註解,不得寫進函式宣告的 JSDoc,詳見 錯誤註解案例 — 案例六。
All logic blocks MUST be commented, including private/non-public internal logic. Comments help future developers understand complex control flow, business rules, and edge case handling.
Logic blocks are code sections that implement specific functionality, including but not limited to:
| Type | Examples |
|---|---|
| Control flow | if/else, switch/case, try/catch/finally, loop blocks |
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.