Testing.Reorder
БесплатноБез исполняемых скриптовНе проверенReorganize test classes and functions to match the order of the tested code
от gpsaggese★ 158 звёзд на GitHubОб этом скилле
Goal
- Reorganize the Python test classes and functions in a testing file
*/test/test_*.pyto match the order of the functions they test in the corresponding source file
Conventions
- For all the code, follow
.claude/skills/coding.rules.mdand.claude/skills/testing.rules.md
Workflow
Find Test Code
- Find the functions in
<FILENAME>.pythat are tested intest/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>.pyto match the order of the functions declared in<FILENAME>.pyE.g., if in a Python
.../file.pydef test1(...) def test2(...)the corresponding
.../test/test_file.pyclass 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
Установить Testing.Reorder в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Testing.Reorder?
Reorganize test classes and functions to match the order of the tested code
Как установить скилл Testing.Reorder?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Testing.Reorder запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic