verify_refactor_safety
Compare old and new code to catch accidental deletions before compilation. Validates function counts, signatures, exports, imports, and comment ratio, flagging renames as explicit confirmations.
Instructions
Semantic diff between old and new code. Catches accidental deletions before compilation. Checks: function count, signatures, export count, imports, comment ratio. Intentionally conservative — renames appear as errors requiring explicit confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| after | Yes | New code text | |
| before | Yes | Original code text | |
| language | No | Language (auto-detected from content) |