You should politely decline, giving whatever reason you choose to give.
You could use a generic reason, such as:
I make it a practice to not write recommendation letters for anyone who has worked with me.
You could deflect the request by suggesting that someone else is more qualified to write a strong recommendation.
If your letter would be negative rather than positive, and you feel confident with being honest, you could gently communicate that you would not want your negative comments to hurt the person's chances of getting the position / getting into school / etc.
It's stressful to ask for letters of recommendation, so deal with the request promptly. You can be friendly, polite, but clear about declining the request. If the person hounds you to write the letter, you could also use the badgering as the reason you've decided to not write the letter.
Yes, I can write a letter of recommendation for you.
Yes, I can write a letter of recommendation for a coworker.
Yes, I can write a letter of recommendation for a student.
Yes, I can write a recommendation letter for a student.
I am happy to provide a recommendation letter for you.
Yes, I have someone available to write a letter of recommendation for me.
Yes, I can write a recommendation letter for you on LinkedIn.
Yes, a postdoc can write a recommendation letter for a job application.
Yes, an academic advisor can write a letter of recommendation for a student.
Yes, a friend can write a letter of recommendation for you, but it is generally more effective to have someone in a professional or academic position write it.
Yes, a family member can write a letter of recommendation for you, but it is generally preferred to have someone who is not related to you provide a recommendation to avoid bias.
Yes, a parent can write a letter of recommendation for their child, but it may not carry as much weight as a recommendation from someone who is not related to the student.