Photoshop actually has that. They are called Actions (basically macros).
You can select a group of operations you did in your editing history and turn them into an Action, with parametrization support.
You can then batch apply an Action to a bunch of files.