Hi,
The best way is to open existing actions ( they are all open sources). the thing with giving a tutorial on creating custom actions is problematic, because if you do have scripting skills, writing custom actions is nothing but a few copy paste, so I am still unsure about how to approach such tutorial if I where to write one.
bye,
Jean