直す is the most general. It can mean to fix (errors), to fix (physically repair), to return to a previous state, and as a compound verb, to redo an action (見直す、考え直す etc). 治す (same reading) is used for cure/heal.
修正 is for corrections or improvements, amendment, revision, etc. Not limited to text. i.e. 写真を修正する (with Photoshop)
訂正 is specifically fixing errors, normally limited to text.
添削 is similarly for text but tends to refer to when a person fixes/edits work that somebody else wrote - i.e. teacher making corrections to a student's work.