I'll see about adding something like this to the next version of pass. Seems to be somewhat useful. Alternatively, I'm investigating a "hooks" framework, so that pass would be extensible by people wanting to do different things. Sit tight.