Make me a cover letter, I'm applying for a demonstrator job in a medical college
ls /home/daytona/workspace/ 2>/dev/null && ls /home/daytona/skills/docx/scripts/office/ 2>/dev/null
mkdir -p /home/daytona/workspace/cover-letter && cat > /home/daytona/workspace/cover-letter/cover_letter.js << 'EOF' const { Document, Packer, Paragraph, TextRun, AlignmentType, HeadingLevel, BorderStyle, UnderlineType } = require('docx'); const fs = require('fs'); const doc = new Document({ styles: { default: { document: { run: { font: "Calibri", size: 24 } } } }, sections: [{ properties: { page: { margin: { top: 1000, bottom: 1000, left: 1200, right: 1200 } } }, children: [ // Sender info block new Paragraph({ alignment: AlignmentType.RIGHT, children: [new TextRun({ text: "[Your Full Name]", bold: true, size: 24 })] }), new Paragraph({ alignment: AlignmentType.RIGHT, children: [new TextRun({ text: "[MBBS / MSc / PhD — Your Degree]", size: 22 })] }), new Paragraph({ alignment: AlignmentType.RIGHT, children: [new TextRun({ text: "[Your Address, City]", size: 22 })] }), new Paragraph({ alignment: AlignmentType.RIGHT, children: [new TextRun({ text: "[Phone Number] | [Email Address]", size: 22 })] }), new Paragraph({ alignment: AlignmentType.RIGHT, children: [new TextRun({ text: "6 May 2026", size: 22 })] }), new Paragraph({ text: "" }), // Recipient block new Paragraph({ children: [new TextRun({ text: "The Head of Department", bold: true, size: 22 })] }), new Paragraph({ children: [new TextRun({ text: "Department of [Anatomy / Physiology / Biochemistry / etc.]", size: 22 })] }), new Paragraph({ children: [new TextRun({ text: "[Name of Medical College]", size: 22 })] }), new Paragraph({ children: [new TextRun({ text: "[City, Country]", size: 22 })] }), new Paragraph({ text: "" }), // Subject line new Paragraph({ children: [ new TextRun({ text: "Subject: ", bold: true, size: 22 }), new TextRun({ text: "Application for the Position of Demonstrator — Department of [Subject]", bold: true, underline: { type: UnderlineType.SINGLE }, size: 22 }) ] }), new Paragraph({ text: "" }), // Salutation new Paragraph({ children: [new TextRun({ text: "Dear Sir / Madam,", size: 22 })] }), new Paragraph({ text: "" }), // Opening paragraph new Paragraph({ alignment: AlignmentType.JUSTIFIED, children: [new TextRun({ text: "I am writing to express my keen interest in the position of Demonstrator in the Department of [Subject] at [Name of Medical College]. Having recently completed my [degree, e.g., MBBS / MSc in Anatomy], I am eager to contribute to the academic and practical training of undergraduate medical students while further developing my own expertise in the field.", size: 22 })] }), new Paragraph({ text: "" }), // Academic background paragraph new Paragraph({ alignment: AlignmentType.JUSTIFIED, children: [new TextRun({ text: "Throughout my academic career, I have developed a strong foundation in [subject area]. During my studies at [Your University / Institution], I consistently demonstrated a commitment to both theoretical understanding and practical application. My training included [briefly mention relevant coursework, laboratory work, or clinical rotations], which has equipped me with the technical competence required to effectively guide students through laboratory sessions, dissections, and practical examinations.", size: 22 })] }), new Paragraph({ text: "" }), // Teaching/experience paragraph new Paragraph({ alignment: AlignmentType.JUSTIFIED, children: [new TextRun({ text: "I have had the opportunity to [mention any teaching, tutoring, or demonstrating experience — e.g., assist senior faculty during practical classes / tutor junior students / conduct revision sessions]. These experiences have honed my ability to communicate complex concepts clearly, adapt my explanations to varying levels of student understanding, and maintain an organized and productive learning environment. I am comfortable supervising practical work, assessing student performance, and providing constructive feedback.", size: 22 })] }), new Paragraph({ text: "" }), // Why this institution paragraph new Paragraph({ alignment: AlignmentType.JUSTIFIED, children: [new TextRun({ text: "[Name of Medical College] is widely recognized for its high academic standards and dedication to producing competent, compassionate medical professionals. I am particularly drawn to your department's emphasis on [any known strength — e.g., problem-based learning / research-integrated teaching / state-of-the-art laboratory facilities]. I am confident that my academic background and enthusiasm for teaching align well with the values of your institution.", size: 22 })] }), new Paragraph({ text: "" }), // Closing paragraph new Paragraph({ alignment: AlignmentType.JUSTIFIED, children: [new TextRun({ text: "I am a highly motivated, detail-oriented individual who works well both independently and as part of a team. I am committed to continuous professional development and look forward to growing within an academic environment. I would welcome the opportunity to discuss how my background, skills, and enthusiasm can contribute to the department.", size: 22 })] }), new Paragraph({ text: "" }), new Paragraph({ alignment: AlignmentType.JUSTIFIED, children: [new TextRun({ text: "Please find my curriculum vitae and supporting documents attached for your review. I am available at your convenience for an interview and can be reached at [Phone Number] or [Email Address].", size: 22 })] }), new Paragraph({ text: "" }), // Sign-off new Paragraph({ children: [new TextRun({ text: "Yours sincerely,", size: 22 })] }), new Paragraph({ text: "" }), new Paragraph({ text: "" }), new Paragraph({ children: [new TextRun({ text: "[Your Full Name]", bold: true, size: 22 })] }), new Paragraph({ children: [new TextRun({ text: "[Your Degree & Qualification]", size: 22 })] }), new Paragraph({ children: [new TextRun({ text: "[Date]", size: 22 })] }), ] }] }); Packer.toBuffer(doc).then(buffer => { fs.writeFileSync('/home/daytona/workspace/cover-letter/Demonstrator_Cover_Letter.docx', buffer); console.log('Done'); }); EOF node /home/daytona/workspace/cover-letter/cover_letter.js
python /home/daytona/skills/docx/scripts/office/validate.py /home/daytona/workspace/cover-letter/Demonstrator_Cover_Letter.docx
python /home/daytona/skills/docx/scripts/office/unpack.py /home/daytona/workspace/cover-letter/Demonstrator_Cover_Letter.docx /home/daytona/workspace/cover-letter/unpacked/ && echo "Unpacked OK" && ls /home/daytona/workspace/cover-letter/unpacked/
Demonstrator Cover Letter
Word Document · DOCX
[bracketed] placeholder with your actual detailsits too long
cat > /home/daytona/workspace/cover-letter/cover_letter_short.js << 'EOF' const { Document, Packer, Paragraph, TextRun, AlignmentType, UnderlineType } = require('docx'); const fs = require('fs'); const doc = new Document({ styles: { default: { document: { run: { font: "Calibri", size: 24 } } } }, sections: [{ properties: { page: { margin: { top: 1000, bottom: 1000, left: 1200, right: 1200 } } }, children: [ // Sender new Paragraph({ alignment: AlignmentType.RIGHT, children: [new TextRun({ text: "[Your Full Name]", bold: true, size: 24 })] }), new Paragraph({ alignment: AlignmentType.RIGHT, children: [new TextRun({ text: "[Degree] | [Phone] | [Email]", size: 22 })] }), new Paragraph({ alignment: AlignmentType.RIGHT, children: [new TextRun({ text: "6 May 2026", size: 22 })] }), new Paragraph({ text: "" }), // Recipient new Paragraph({ children: [new TextRun({ text: "The Head of Department", bold: true, size: 22 })] }), new Paragraph({ children: [new TextRun({ text: "Department of [Subject], [Medical College Name]", size: 22 })] }), new Paragraph({ text: "" }), // Subject new Paragraph({ children: [ new TextRun({ text: "Subject: ", bold: true, size: 22 }), new TextRun({ text: "Application for Demonstrator — [Subject]", bold: true, underline: { type: UnderlineType.SINGLE }, size: 22 }) ]}), new Paragraph({ text: "" }), new Paragraph({ children: [new TextRun({ text: "Dear Sir / Madam,", size: 22 })] }), new Paragraph({ text: "" }), // Body — 3 tight paragraphs new Paragraph({ alignment: AlignmentType.JUSTIFIED, children: [new TextRun({ size: 22, text: "I wish to apply for the position of Demonstrator in the Department of [Subject] at [Medical College]. I hold a [Degree] from [University] and have a solid grounding in [subject area], with hands-on experience in laboratory and practical settings." })] }), new Paragraph({ text: "" }), new Paragraph({ alignment: AlignmentType.JUSTIFIED, children: [new TextRun({ size: 22, text: "I have [briefly mention experience — e.g., assisted in undergraduate practical sessions / tutored junior students / conducted lab demonstrations], which has developed my ability to explain concepts clearly and support students effectively. I am comfortable with practical supervision, specimen handling, and student assessment." })] }), new Paragraph({ text: "" }), new Paragraph({ alignment: AlignmentType.JUSTIFIED, children: [new TextRun({ size: 22, text: "I am enthusiastic, dependable, and committed to contributing to the academic mission of [Medical College]. My CV is attached. I would welcome the opportunity to discuss my application at your convenience." })] }), new Paragraph({ text: "" }), new Paragraph({ children: [new TextRun({ text: "Yours sincerely,", size: 22 })] }), new Paragraph({ text: "" }), new Paragraph({ text: "" }), new Paragraph({ children: [new TextRun({ text: "[Your Full Name]", bold: true, size: 22 })] }), new Paragraph({ children: [new TextRun({ text: "[Degree]", size: 22 })] }), ] }] }); Packer.toBuffer(doc).then(buffer => { fs.writeFileSync('/home/daytona/workspace/cover-letter/Demonstrator_Cover_Letter_Short.docx', buffer); console.log('Done'); }); EOF node /home/daytona/workspace/cover-letter/cover_letter_short.js
Demonstrator Cover Letter Short
Word Document · DOCX