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/proof_generator/conftest.py

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