question on rib discomfort

Hello. I am new here and have some different health questions, but I'll start here. I notice that after I walk sometimes that I get a mild spasm feeling only in my right side in my rib area. When I wake up in the morning, I notice that there is some mild pain... again, only on the right side. I do have irritable bowel issues along with upper back, neck, and low back issues. Any clues as to why this pain occurs? Sometimes when I reach to the left for something, it can really pull on the ribs and hurt but that comes and goes. Could it be trapped gas perhaps?

Thanks
It could be any number of things from pulled muscles to a spasm, to warning sign that there is something more serious going on. Your best bet is to go see a doctor about it if it continues, gets worse, or is bothersome.