Get feedback. If you’re not sure of your letter-writing skills, or if your letter will carry a great deal of weight for the candidate’s application, ask for feedback from a trusted colleague who may also know the candidate. If you are putting your reputation on the line for this person, you want to put your best foot forward with this letter.
It’s always a smart idea to offer to write a letter of recommendation for a colleague who you know is well qualified for the job in question. Consider it good career karma; after all, you never know when you’ll need a letter of recommendation for yourself, and your colleague may be happy to return the favor.