scripts: writing, diff, tag