Install any skill in seconds. Free to start, no credit card required.
Get Started Free →wasabeef/詳細解說程式碼行為
詳細解說程式碼行為。「解釋這段程式碼」「這是做什麼的?」「這個函數的作用?」「解釋邏輯」等觸發。
Passed 11 of 22 test cases with the skill, and 11 of 22 without it.
1 fixed17 passed either way4 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
In PostgreSQL, two concurrent SQL transactions execute update queries on rows 1 and 2 in opposite sequence. Explain the locking execution mechanism and why a deadlock occurs.
| Checked | Without skill | With skill |
|---|---|---|
| Explicitly identifies `RowExclusiveLock` acquired during concurrent `UPDATE` statements. | Missed | Passed |
| Includes a chronological execution sequence diagram showing Transaction A and Transaction B lock requests leading to deadlock detection. | Missed | Passed |
The instructions your model reads when the skill loads.
詳细解釋代碼的運行機制。
# 顯示文件內容並請求 Claude
cat <file>
"解釋這段代碼的運行機制"
# 理解 Rust 的所有權
cat main.rs
"從 Rust 的所有權和生命週期角度解釋"
# 算法解釋
grep -A 50 "quicksort" sort.rs
"解釋這個排序算法的機制和時間復杂度"
# 設計模式說明
cat factory.rs
"說明使用的設計模式及其優點"
# 初學者友好的解釋
cat complex_function.py
"用初學者也能理解的方式逐行解釋這段代碼"
# 性能分析
cat algorithm.rs
"指出這段代碼的性能問題並提出改進方案"
# 带圖解的說明
test cases passed, vs 11 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.