I think you answered that yourself. You need to work on it. Shoot a lot.
There are some advices/rules, like the golden ratio, headroom, or the rule of thirds, (Drek's last pic is a good exemple of this one), but there are so many exceptions, just see them as guidelines, and keep in mind that...