You put your own reputation on the line when you write a letter of recommendation. If you feel you do not know the person well enough, or they are somebody you cannot in good conscience recommend, decline their request.
Describe how you know the person. Give some context for your recommendation. Let the reader know how you met them, how you worked together, and your basic qualifications.