Email

Compress locked log files into ZIP attachments and send via SMTP.

Updated Nov 7, 2025
One-click install
npx skills add https://github.com/lawless-m/FreeBird --skill email
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Email
Source: https://github.com/lawless-m/FreeBird/tree/main/.claude/skills/Email
Command: npx skills add https://github.com/lawless-m/FreeBird --skill email

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Sending automated emails with large log files or other attachments often leads to email size limits, file locking issues, and temporary file clutter. This Skill provides robust patterns to overcome these challenges, ensuring reliable delivery of critical reports.

Core Features & Use Cases

  • Zipped Log Attachments: Automatically compress large log files into temporary zip archives, handling locked files using FileShare.ReadWrite, and ensuring cleanup.
  • Multiple Attachments: Easily attach both compressed logs and additional files (e.g., CSV reports) to a single email.
  • Robust Error Handling: Gracefully fall back to sending uncompressed attachments if zipping fails, and ensure proper disposal of file handles to prevent locking.
  • Use Case: Configure a daily automated report that emails a summary, attaches the compressed application log file (even if it's actively being written to), and includes a separate CSV file of processed data, all while ensuring temporary files are cleaned up.

Quick Start

Use the Email skill to send a daily report with the attached 'app_2025_11_03.log' file, ensuring the log is zipped and temporary files are cleaned up automatically.

Frequently Asked Questions about Email

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send large log files via email without hitting size limits?

Compress large log files into ZIP attachments before sending via SMTP. This Skill automatically zips logs—even locked files—into temporary archives, reducing email size and handling file locking issues with FileShare.ReadWrite patterns.

Can I attach log files that are actively being written to?

Yes. This Skill reads locked log files using FileShare.ReadWrite, allowing you to attach logs even while your application is actively writing to them, then cleans up temporary ZIP files automatically.

How do I send multiple attachments—zipped logs and CSV reports—in one email?

Attach both compressed logs and additional files like CSV reports to a single SMTP email. This Skill manages multiple attachments, temporary file creation, and cleanup in a single workflow with fallback error handling.

What happens if zipping a log file fails?

The Skill falls back gracefully to sending uncompressed attachments if zipping fails, ensuring your report delivery doesn't break. Proper disposal of file handles prevents locking issues on retry.

Can I automate a daily email report with this?

Yes. Configure a scheduled task to send daily automated reports via SMTP, attach compressed application logs and CSV data, and rely on automatic cleanup of temporary files—no manual intervention needed.

What temporary files does this create and how are they cleaned up?

Temporary ZIP archives are created during the email send process and automatically deleted in finally blocks, ensuring no file clutter accumulates on your system even if errors occur.