After reading others' overnight answers (I have to rise and fall with the sun or I'm no good to anyone), I think genetics has to be part of the answer, because I've never been attacked by any of my current roos. It doesn't enter my head that one will go for me. There
were two who were raised by my first and now most senior broody, who were purchased as hatching eggs (so different genetics), and both caused a lot of tension in the flock. They threatened me, and when they each in turn didn't respond to my efforts to tame them, I culled them, and the stress in the flock lifted immediately each time. I might try harder with them had I known then what I know now, but we learn a lot about chicken-keeping by doing, and those were early days. And I still think the advice I was following then - if there are problems, solve for the flock not the problematic individual - is good, and I still follow that principle.
It may be epigenetics too, because only one (Sven) was not hatched and raised here, so the rest had calm examples to follow; that includes the two that I culled, but none since have had issues, including the most recent clutch, which are also new genetics and a 'flighty' breed. The two jerk-age cocks among them are currently being trained by the senior hens
It may be environment too, because no-one is confined here so no-one is liable to feel trapped.
I do wear jeans and shoes all the time, so it's nice to know that helps

I have occasionally been pecked on the leg or foot by a cockerel (more often by a pullet), and I have always assumed that's because they thought they saw something tasty sitting there. I say 'oy! that's me!', they stop, and no more is said or thought about it
I am sometimes shadowed by one of them when poop picking the coops in the morning (especially Sven, but I think he just wants company). I do check first that no-one is laying before I take the back off to get to the poop boards, so I'm not disturbing a laying hen or causing a potential dad to feel defensive. The roo will just watch me from nearby, or (in Chirk's case) at about 2 o'clock as fighter pilots used to say in the movies (when the coops are near a wall which offers that perching place, as currently), or indeed right in front of me and inspecting my work closely as I do it (Sven, Phoenix), but I have never felt threatened by any of them.
I don't make a point of walking through the roos, to make them make way for me (as some roo keepers advise), but I don't go round them either. I just swing my leg round to step over them, or say 'excuse me' and wait for them to move aside. So we all keep calm and carry on - we Welsh are also British, after all