Safe city riding is mostly about predictability: ride with traffic, signal your turns, stay out of door zones, and assume drivers haven't seen you until they prove otherwise. A helmet and working lights round out the essentials.
We keep two guides on this: Bike Safety 101 for the fundamentals and the Safe Riding Guide for commute-specific advice.