testing.reorder

testing.reorder is a skill for Claude Code from gpsaggese/helpers. It costs 15 tokens per session (469 once invoked), scanned A, original, Apache-2.0.

A Python test-file organizer that moves test classes and functions into the same order as the code they check.

In plain words
What is it for?
Use it to reorder tests after source functions have been added or rearranged, while preserving the existing code and behavior.
Why use it?
It makes a test file easier to compare with its source file without changing how the tests work.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths.

Good fit Use it to reorder tests after source functions have been added or rearranged, while preserving the existing code and behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gpsaggese/helpers/testing.reorder
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gpsaggese/helpers --skill testing.reorder
Clone the repo
git clone --depth 1 https://github.com/gpsaggese/helpers

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for testing.reorder

README.md
[![agentmods](https://agentmods.dev/badge/skills/gpsaggese/helpers/testing.reorder/github.svg)](https://agentmods.dev/skills/gpsaggese/helpers/testing.reorder)
Your own site
<a href="https://agentmods.dev/skills/gpsaggese/helpers/testing.reorder"><img src="https://agentmods.dev/badge/skills/gpsaggese/helpers/testing.reorder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for testing.reorder

Your own site · 80×15
<a href="https://agentmods.dev/skills/gpsaggese/helpers/testing.reorder"><img src="https://agentmods.dev/badge/skills/gpsaggese/helpers/testing.reorder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 469 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00015 $0.00469
Opus 5.5 $0.00006 $0.00188
Sonnet 5.5 $0.00003 $0.00094
Haiku 4.5 $0.00002 $0.00047

Measured yesterday against content hash dc1b23155b6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

testing.reorder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.claude/skills/testing.reorder/SKILL.md · 70 lines

What it actually says

Goal

  • Reorganize the Python test classes and functions in a testing file */test/test_*.py to match the order of the functions they test in the corresponding source file

Conventions

  • For all the code, follow .claude/skills/coding.rules.md and .claude/skills/testing.rules.md

Workflow

Find Test Code

  • Find the functions in <FILENAME>.py that are tested in test/test_<FILENAME>.py

Prepare a Plan

  • Prepare a plan that maps:
    • Test classes
    • The functions each class tests
    • The file that contains those functions

Order the Testing Classes in the Same Order as the Python File

  • Reorganize test/test_<FILENAME>.py to match the order of the functions declared in <FILENAME>.py

  • E.g., if in a Python .../file.py

    def test1(...)
    
    def test2(...)
    

    the corresponding .../test/test_file.py

    class Test_test1(...)
    
    class Test_test2(...)
    

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

Implement the Plan

  • Implement the plan by moving the code without changing it
  • Run the related unit tests to make sure everything works

Verification

  • Confirm test classes appear in the same order as the functions they test
  • Run the related unit tests and confirm they pass
  • Confirm no logic, signatures, or behavior changed
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 70 lines · 15 tokens per session scan A dc1b23155b6d

Subscribe to this mod's changes

testing.reorder is a skill published in the GitHub repository gpsaggese/helpers (158 stars, last pushed today), licensed Apache-2.0. It adds 15 tokens to every session and 469 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.

Related

testing.reorder compared with skills from other repositories

testing.reorder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testing.reordergpsaggese/helpersSkill158todayApache-2.0A15Claude Code
test-masterJeffallan/claude-skillsSkill12k8d agoMITA104Claude Code
migrate-xunit-to-xunit-v3dotnet/skillsSkill5.8ktodayMITA149Claude Code
go-testingGentleman-Programming/gentle-aiSkill8.5ktodayMITA26Claude Code, Codex
principle-test-behavior-not-implementationmichael-denyer/pstack-claudeSkill4.1kyesterdayMITA50Claude Code
dart-testdartsim/dartSkill1.2ktodayBSD-2-ClauseA18Claude Code, Codex
test-generatorrshankras/claude-code-apple-skillsSkill867todayMITA33Claude Code