AGENT SKILL

coding.use_single_return

Make sure that all the functions have a single return statement

License 许可
Apache-2.0
所属仓库
causify-ai/helpers
最近更新
2026-11-02
Stars
★ 0
Forks
1

01 前言 Front Matter

model
haiku
description
Make sure that all the functions have a single return statement

03 SKILL.md 正文

  • I will pass you one or more files <FILES>

Goal

  • Go through each function, one by one, and make sure that each function has a single return statement

  • For functions returning None, leave the return statements that are used to exit a function at certain point

Conventions

  • Do not change the behavior of the code in any way
  • Follow the rules in .claude/skills/coding.rules.md

Verification

  • [ ] Confirm each function has a single return statement (except early exits in functions returning None)
  • [ ] Run the file's unit tests to confirm behavior is unchanged

04 同仓库更多 Skills