Skip to content
Back to skills

Coding.Reorg Functions

ASecurity

Reorganize the Python functions in a file

  • 158 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 7, 2026
testingpythongoapi

Works with

  • api

Security analysis

A100/100

Scanned November 7, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Coding.Reorg Functions?

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

Security grade badge for Coding.Reorg Functions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gpsaggese-coding-reorg-functions/badge)](https://www.skillsdirectory.com/skills/gpsaggese-coding-reorg-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
---
description: Reorganize the Python functions in a file
model: haiku
---

# Reorganize Python Functions Within a File

- Reorganize the Python functions in the user-provided file per the general
  rules in `coding.rules.md`

  - Follow `## Organize Functions Into Logical Layers` in
    `.claude/skills/coding.rules.md`
  - Follow `## Order Layers by Abstraction Level` in
    `.claude/skills/coding.rules.md`
  - Follow `## Order Functions Within Each Layer` in
    `.claude/skills/coding.rules.md`
  - Follow `## Keep Related Functions Together` in
    `.claude/skills/coding.rules.md`
  - Follow `## Mark Private Functions` in `.claude/skills/coding.rules.md`


## Additional Guidance

- Avoid circular ordering where possible
- Preserve existing comments and docstrings
- Keep public entry points easy to locate near the end of the file
- Prefer cohesion and readability over strict categorization

# Constraints

## Preserve Behavior Exactly

- Do not modify functionality, logic, signatures, control flow, side effects, or
  semantics
- The resulting code must behave identically to the original

## Move Code Only

- The refactor must be structural only
- Allowed changes:
  - Reordering functions
  - Adding section headers
  - Renaming internal/private functions consistently
- Disallowed changes:
  - Rewriting logic
  - Simplifying implementations
  - Changing APIs
  - Changing imports unnecessarily
  - Modifying formatting beyond what is required for reorganization

# Verification
- [ ] Confirm every function from the original file is still present
- [ ] 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.