Install any skill in seconds. Free to start, no credit card required.
Get Started Free →wasabeef/详细解说代码行为
详细解说代码行为。「解释这段代码」「这是做什么的?」「这个函数的作用?」「解释逻辑」等触发。
Passed 17 of 22 test cases with the skill, and 17 of 22 without it.
2 fixed15 passed either way3 still failing2 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
Given this Rust function `fn process_data(v: Vec<i32>) -> i32 { v.iter().sum() }`, a beginner thinks `v` can still be accessed in `main` after calling `process_data(v)`. Explain why this fails to compile and how Rust handles the underlying memory allocation.
| Checked | Without skill | With skill |
|---|---|---|
| explicitly mentions Rust compiler error code E0382 regarding move of moved value | 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 17 / 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.