ICS Lint & Fix

    by Miu

    1

    Validate and fix RFC 5545 iCalendar files with octet-aware line folding and CRLF correction.

    Free

    Security scanned

    Works with the AI Agents you already use

    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

    RuleTypeDescriptionStatus
    E001ErrorLine endings are not CRLFFixed
    E002ErrorPhysical line exceeds 75 octetsFixed
    W001WarningVEVENT is missing DTSTAMPRemaining
    W002WarningDTSTART 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

    1. Import event-fixed.ics into your calendar client to verify the floating time offset.
    2. Add a DTSTAMP property to the VEVENT to track when this record was created.
    3. Update the PRODID if 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

    1. Run check via the Python script on any UTF-8 .ics file to generate a JSON error report.
    2. Review the errors and warnings arrays to identify structural or logical gaps.
    3. Use the fix command to automate formatting repairs like line folding and line endings.
    4. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Terminal / Shell
    Read Files
    Write Files
    Listed5 days ago

    What's inside

    Creator

    M

    Miu

    2 skills on Agensi

    Frequently Asked Questions

    Many AI agents struggle with byte-level formatting, often failing to use CRLF line endings or incorrectly splitting multi-byte characters during line folding. This skill provides a deterministic, RFC 5545-compliant engine that repairs these technical errors to ensure your .ics files work across Outlook, Google, and Apple Calendar.

    This is a standalone Python tool (3.9+) that requires zero external dependencies, making it compatible with any AI agent or workflow that can execute Python scripts. It works offline across Linux, macOS, and Windows environments.

    The skill performs deep structural validation, including checking for mandatory fields (UID, PRODID, DTSTAMP), ensuring chronological integrity (DTEND after DTSTART), and verifying the NAME:VALUE property structure. It then generates a JSON report identifying both blocking errors and non-blocking warnings.

    No, the tool focuses on structural and formatting integrity. While it validates that a UID exists, it will not generate missing mandatory data or resolve complex timezone database lookups; it is designed to fix the formatting of the data your agent provides.

    You receive the full Python source code for the validator and fixer, along with documentation on how to integrate the JSON error reporting into your existing agent pipelines or CI/CD gates.

    Unlike standard text editors that count characters, this skill is 'octet-aware.' It ensures that lines are folded at the 75-byte limit without breaking multi-byte characters, which is essential for calendar invites containing emojis or non-ASCII languages like Japanese or Arabic.

    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.

    Free