Advice is always contextual. Here in this case, there so many unknowns to give a good advice (forget about solid advice). What I mean: I don't know if the one under PR is so because of lack of competence or because of cost-cutting, or because of unclear goals set by management and so on. I don't know if you are a junior or a senior. I have seen PRs in each of these cases and more. Different situations warrant different advice.
Because the discussion is on hashnode, I am going to assume that you are competent enough but in a shitty role (you could be a php developer doing a python project, or a backend developer asked to move to front end; it might all look silly, but I have seen these cases).
First rule in these situations is ability to walk away from the discussion table. If you have that ability you develop an upper hand. Remember, you don't have to have options in hand to do so, just the mentality. So see how you can develop it in the short term you have. Some of these ways could be:
- understand what your boss's boss want. Stated otherwise what will keep your boss's boss away from your boss's back. Understand and deliver that, even in a small way to take notice of your boss's boss. Can you develop and demonstrate required business skills eclipsing the current technical skills?
- ask for a clear set of goals against which you will be measured. It shouldn't be subjective. You should be able to sit down at the end of PR time and clearly tick a checkbox. Improve your python skills isn't an objective goal; develop a db connectivity to mongodb with django is a specific goal that you can demonstrate that you achieved. If they are keen on employee engagement, they will oblige and give you specific goals. If they have decided to fire you, goals will be as unclear as it can be. This is an indication to start looking for another job immediately. On the other hand, if you are able to achieve them, at least you can buy yourself another PR term.
- list out what you have done in the company before the PR term began. Find means to blow your trumpet on it. These days it is not difficult at all. Sure, it needs emotional strength at this time, but you got to do it. Is there an internal blog in your company? Can you blog there about some of the things you learned while doing whatever you did -- payment integration, parsing pdf documents or whatever you did. Is there a weekly learning session in your company / department? Can you present a study there? (If these are not existing in your company, you should probably leave that company)
If you think they have decided to fire you any way, start looking for a job. It is going to be emotionally difficult. If needed, go to a mountain and cry your heart out. Then go and face the difficult situation.
Shit happens. You will survive.