Task-specific dystonia is a type of focal dystonia. It tends to happen only when you are doing a certain activity. An example is writer's cramp. It affects the muscles of the hand and sometimes the forearm. Writer's cramp only happens during handwriting.