Skip to content
Back to skills

Coding.Use Single Return

ASecurity

Make sure that all the functions have a single return statement

  • 158 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 7, 2026
testinggo

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add gpsaggese/helpers --skill coding.use_single_return --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Coding.Use Single Return?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Coding.Use Single Return
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gpsaggese-coding-use-single-return/badge)](https://www.skillsdirectory.com/skills/gpsaggese-coding-use-single-return)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Make sure that all the functions have a single return statement
model: haiku
---

- I will pass you one or more files `<FILES>`

# Goal
- Go through each function and make sure it has a single return statement

- For functions returning `None`, keep the `return` statements that exit early

# 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.