How to create ATOM web feed

According to another thread How To Differ Updated Document from Created One According to Web Feed, it seems I have to develop my own macro even the extension to implement full-feature ATOM feed.

Do you have any suggestion how to kickoff the whole development? I am totally new to XWiki framework and its design architecture. Thanks.