Write a credible, specific letter of recommendation: how you know the person, concrete examples of achievements, an honest comparison and contact details for verification.
Draft a firm, formal complaint letter to a company: timeline of facts, supporting documents, a specific request, a response deadline and next steps if they ignore you.
Write a warm, clear resignation letter with your last day, a proposed handover of your work and a short email to set up the conversation with your manager.