mechanical-refactor-verify

Make mechanical refactoring (file splits, function moves, module extractions, renames) machine-checkable instead of eyeballed. Reproduce a relocation commit byte-for-byte from faithful primitives, and split an extraction into a verifiable prepare + move + postpare. Use when doing or reviewing such changes.

Install
npx skills add 'https://github.com/sgl-project/sglang/tree/main/.claude/skills/mechanical-refactor-verify'
Download bundle ↓
main · a9fb1c3Scanned 2026-09-17

Contributors

GitHub-linked commit authors for this SKILL.md at the saved revision. Co-authors and history before file renames are not included.

File history ↗

scripts/tests/reproduction_cli/conftest.py

scripts/tests/reproduction_cli/conftest.pyBrowse 41 files
View on GitHub
← Back to SKILL.md
import sysfrom pathlib import Path import pytest sys.path.insert(0, str(Path(__file__).resolve().parents[2]))sys.path.insert(0, str(Path(__file__).resolve().parent)) from cli_testlib import _git  @pytest.fixturedef repo(tmp_path: Path) -> Path:    root = tmp_path / "repo"    root.mkdir()    _git(root, "init", "-q", "-b", "main")    _git(root, "config", "user.email", "test@example.com")    _git(root, "config", "user.name", "test")    _git(root, "config", "commit.gpgsign", "false")    return root