What are the duties of a divorce lawyer?

To represent their client in divorce proceedings. This may include court appearances and negotiations with the other party.