testing.reorder

testing.reorder is a skill for Claude Code from causify-ai/helpers. It costs 15 tokens per session (483 once invoked), scanned A, a copy of testing.reorder, Apache-2.0.

A Python test-organization workflow that puts test classes and functions in the same order as the code they check. Python is a programming language commonly used for scripts and applications.

In plain words
What is it for?
Use it to reorder tests for a Python file without changing their logic or behavior.
Why use it?
It makes a test file easier to compare with its source file while preserving 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 for a Python file without changing their logic or behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/causify-ai/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 causify-ai/helpers --skill testing.reorder
Clone the repo
git clone --depth 1 https://github.com/causify-ai/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/causify-ai/helpers/testing.reorder/github.svg)](https://agentmods.dev/skills/causify-ai/helpers/testing.reorder)
Your own site
<a href="https://agentmods.dev/skills/causify-ai/helpers/testing.reorder"><img src="https://agentmods.dev/badge/skills/causify-ai/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/causify-ai/helpers/testing.reorder"><img src="https://agentmods.dev/badge/skills/causify-ai/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 483 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 3
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
How audits are shown
Origin 88% copy Near-identical to another mod 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.00483
Opus 5.5 $0.00006 $0.00193
Sonnet 5.5 $0.00003 $0.00097
Haiku 4.5 $0.00002 $0.00048

Measured 2mo ago against content hash c77bbec31e15, 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 2mo ago.

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

This is a copy

88% identical to testing.reorder — 20 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/skills/testing.reorder/SKILL.md · 71 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 you must follow the instructions in
    • .claude/skills/coding.rules.md
    • .claude/skills/testing.rules.md

Workflow

Find Test Code

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

Prepare a Plan

  • Prepare a plan that shows a mapping between
    • Test classes
    • The functions tested by each class
    • The file containing the tested functions

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

  • Reorganize the code in 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 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. 2mo ago Changed · +5 lines · -2 tokens per session c77bbec31e15
  2. 2mo ago First seen · 66 lines · 17 tokens per session scan A 982e63a94864

Subscribe to this mod's changes

testing.reorder is a skill published in the GitHub repository causify-ai/helpers (0 stars, last pushed 29d ago), licensed Apache-2.0. It adds 15 tokens to every session and 483 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to testing.reorder, differing in 20 lines, and is treated as a copy.

Related

testing.reorder compared with skills from other repositories

testing.reorder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
testing.reordercausify-ai/helpersSkill029d agoApache-2.0A15Claude Code
test-masterJeffallan/claude-skillsSkill13ktodayMITA104Claude Code
migrate-xunit-to-xunit-v3dotnet/skillsSkill6.4ktodayMITA149Claude Code
go-testingGentleman-Programming/gentle-aiSkill9.7kyesterdayMITA26Claude Code, Codex
dart-testdartsim/dartSkill1.2kyesterdayBSD-2-ClauseA18Claude Code, Codex
test-generatorrshankras/claude-code-apple-skillsSkill91822d agoMITA33Claude Code
restore-internals-seams-in-finally-blocks-after-each-testZaxbyHub/opencode-swarmSkill549todayMITA26OpenCode