- Home
- Skills
- Productivity
- ICS Lint & Fix
ICS Lint & Fix
by Miu
Validate and fix RFC 5545 iCalendar files with octet-aware line folding and CRLF correction.
Free
ICS Lint & Fix
Example session with this skill installed
Please check the structural integrity of the generated event.ics file and fix any formatting errors found.
- Read your context and instructions
- Compiled the ics lint
I have analyzed event.ics using the RFC 5545 validator. The file contained critical formatting errors related to line length and line endings which would have caused import failures in Outlook and Google Calendar. I have applied a deterministic fix to resolve these structural issues while preserving all event data.
ICS Validation Report
| Rule | Type | Description | Status |
|---|---|---|---|
| E001 | Error | Line endings are not CRLF | Fixed |
| E002 | Error | Physical line exceeds 75 octets | Fixed |
| W001 | Warning | VEVENT is missing DTSTAMP | Remaining |
| W002 | Warning | DTSTART is floating (no UTC Z) | Remaining |
{
"file": "event-fixed.ics",
"errors": [],
"warnings": [
{"line": 5, "rule": "W001", "message": "VEVENT is missing DTSTAMP"},
{"line": 6, "rule": "W002", "message": "DTSTART is floating (no UTC Z, no TZID)"}
],
"summary": {
"errors": 0,
"warnings": 2
}
}
The file event-fixed.ics is now structurally compliant with RFC 5545 octet-folding and line-ending requirements. The remaining warnings regarding missing timestamps and floating start times are logical properties that you may wish to address manually to ensure the event appears in the correct timezone.
Next steps
- Import
event-fixed.icsinto your calendar client to verify the floating time offset. - Add a
DTSTAMPproperty to the VEVENT to track when this record was created. - Update the
PRODIDif you intend to use this in a production application.
Connects securely to your tools. The creator never sees your data.
About this skill
Generating .ics files that actually work across Google Calendar, Outlook, and Apple Calendar is notoriously difficult. Agents often fail at RFC 5545 technicalities like CRLF line endings, octet-based line folding for non-ASCII characters, and mandatory property validation. This skill provides a deterministic, dependency-free Python tool to validate and repair calendar files before they break a user's import.
What it does
- RFC 5545 Validation checks for mandatory fields like UID, PRODID, and VERSION while ensuring DTEND occurs after DTSTART.
- Octet-Aware Folding repairs lines exceeding the 75-octet limit without splitting multi-byte characters (crucial for Japanese/non-ASCII content).
- Line Ending Correction automatically fixes files using bare LF instead of the required CRLF sequence.
- Content Parsing identifies malformed content lines that do not follow the NAME[;PARAMS]:VALUE structure.
- Structural Reporting outputs a clean JSON report of errors (blocking) and warnings (non-blocking) for CI/CD gates.
How it works
- Run
checkvia the Python script on any UTF-8 .ics file to generate a JSON error report. - Review the
errorsandwarningsarrays to identify structural or logical gaps. - Use the
fixcommand to automate formatting repairs like line folding and line endings. - Verify the output file against the validator to confirm all E001 and E002 errors are resolved.
Frameworks & tools
This tool is built for Python 3.9+ using only the standard library. It requires no external dependencies and works entirely offline across Linux, macOS, and Windows environments.
Why this beats prompting it yourself
LLMs struggle with counting octets (bytes) versus characters, leading to broken line folding in internationalized text. This skill uses deterministic logic to handle low-level byte-level formatting that prompts frequently hallucinate or ignore.
Use cases
- Validating agent-generated meeting invites before sending them to a client.
- Fixing broken .ics exports from legacy systems that use incorrect line endings.
- Checking calendar files in a CI/CD pipeline to prevent deployment of malformed data.
- Auditing event summaries for unescaped commas and semicolons that break parsing.
Known limitations
Does not expand RRULE/EXDATE recurrence semantics or verify timezone database accuracy. It will not invent missing UIDs or DTSTAMP values; these must be provided by the calling agent.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 5 days ago
- Free with an Agensi account
- Software
Python
Permissions
What's inside
Creator
Miu
2 skills on Agensi
Frequently Asked Questions
New in Productivity
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Productivity.