What problem does it solve? Foundry test files (*.t.sol) often grow organically with inconsistent import ordering, scattered state variables, and mixed function groups, making them hard to read and review. This Skill reorganizes test files to match the repository's established structural conventions while guaranteeing zero semantic changes. ## Core Features & Use Cases - Import Grouping: Sorts imports into named sections (Test base, Test utilities, External libraries, Project imports) ordered alphabetically by symbol. - State Variable Sections: Organizes variables into CONSTANTS, CONTRACTS, ACTORS, EXTERNAL TOKENS, and CONFIGURATION sections using the repo's 54-slash divider format. - Function Ordering by File Type: Applies distinct ordering rules for Shared, Concrete, Fuzz, and Base test files (e.g., passing tests before reverting tests before event tests). - Safety Guardrails: Never renames, adds, removes, or modifies logic; skips risky moves and verifies with forge build and forge fmt. - Use Case: After writing a new fork test for a strategy, ask the AI to organize the file so imports, variables, and test functions follow the team's conventions before opening a pull request. ## Quick Start Ask the AI to organize the test file at contracts/tests/strategies/MyStrategy.t.sol following the repository conventions.