I was recently playing a game and I felt hopeless in this position:
My group marked “X” looked doomed. Any direction it runs White is already there.
“Attack from afar but defend up close”
Have you heard this proverb. In this case, Black is desperate and needs to defend… so UP CLOSE is the part of the proverb to adapt… and …
The proper nobi (extension) puts Black in command
From here, the Black group is ready for the cut and can kill the bottom group.
I suggest you download this game and play through the variations but better: try to read them mentally without playing them out. Ben Teuber would nod in approval.