recurse-ml
1
总安装量
1
周安装量
#49316
全站排名
安装命令
npx skills add https://github.com/poletron/custom-rules --skill recurse-ml
Agent 安装分布
github-copilot
1
Skill 文档
Decision Tree
Need exception handling? â Use specific exceptions (bare-exceptions.md)
Need conditionals? â Check conditionals.md for patterns
Need boolean checks? â See bool.md for comparisons
Need type safety? â Apply typing.md guidelines
Need debugging? â Use rml-verify.md
Critical Patterns
Don’t Catch Bare Exceptions (REQUIRED)
# â BAD - Hides unintended exceptions
try:
risky_operation()
except:
handle_error()
# â EQUALLY BAD
try:
risky_operation()
except Exception:
handle_error()
# â
GOOD - Catch specific exceptions
try:
risky_operation()
except SpecificException:
handle_error()
# â
OK if reraising
try:
risky_operation()
except SpecificException as e:
handle_error(e)
raise # Reraise the exception
Why: Bare exceptions hide bugs and give false stability.
Resources
Specialized ML coding patterns in this skill:
- Bare Exceptions: bare-exceptions.md
- Boolean Comparisons: bool.md
- Comments: comments.md
- Conditionals: conditionals.md
- Control Flow: flow.md
- Infinite Loops: infinite-loops.md
- Mutable Defaults: mutable-defaults.md
- RML Verification: rml-verify.md
- Side Effects: side-effects.md
- Type Hints: typing.md
- Unreachable Code: unreachable-code.md