Skip to content
Back to skills

Remove Single Use Functions

ASecurity

Safe inlining and removal of single-use functions during code review and refactoring. Use when a local, non-exported helper has exactly one real call site and inlining preserves behaviour and readability.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 24, 2026
code-qualityrefactoringapi

Works with

  • api

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add timmo001/skills --skill remove-single-use-functions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Remove Single Use Functions?

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

Security grade badge for Remove Single Use Functions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/timmo001-remove-single-use-functions/badge)](https://www.skillsdirectory.com/skills/timmo001-remove-single-use-functions)

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
---
name: remove-single-use-functions
license: Apache-2.0
description: Safe inlining and removal of single-use functions during code review and refactoring. Use when a local, non-exported helper has exactly one real call site and inlining preserves behaviour and readability.
---

# Remove Single-Use Functions

Use this skill when reviewing or editing cleanup/refactor changes that inline and remove functions used exactly once:

- The function must be local and non-exported.
- The function must have exactly one real call site after the current change set is applied.
- Preserve runtime behavior, types, and existing style.
- Skip public APIs, framework hooks, callbacks, overloaded or generic utilities, and test helpers kept for readability.
- Safe cleanup means inlining the function at its sole call site and then removing the original function definition.

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 code-quality →

Comments

Loading comments…

Newsletter

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