Well-tested?
There are lots of scripts out there, notably in Git repositories but none attained the dual-status that you seek.