mechanical-refactor-verify Skill

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 ↓

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