reverse-month
About
This skill converts dates from various formats to a standardized YYYY-MM (ISO year-month) format. It's useful for extracting month components, standardizing date formats, and preparing data for monthly aggregations and reporting. The tool handles flexible date parsing and outputs consistent machine-readable month values.
Quick Install
Claude Code
Recommended/plugin add https://github.com/christopheryeo/claude-skillsgit clone https://github.com/christopheryeo/claude-skills.git ~/.claude/skills/reverse-monthCopy and paste this command in Claude Code to install this skill
Documentation
Reverse Month Converter
Overview
Convert dates from various human-readable formats into standardized "reverse month" format (YYYY-MM). This skill handles flexible date input parsing and provides consistent, machine-readable month output by extracting only the year and month components from a full date.
The reverse month format is the year and month portion of an ISO date (YYYY-MM), making it ideal for monthly reporting, time-series aggregations, and calendar operations.
Usage
Use the convert_month.py script to convert any date string to YYYY-MM format:
python scripts/convert_month.py "21 Oct 2025"
# Output: 2025-10
Supported Input Formats
The script accepts a wide variety of date formats, including:
- Month-day-year: "21 Oct 2025", "October 21, 2025", "Oct 21, 2025"
- Slash-separated: "21/10/2025", "10/21/2025"
- Dash-separated: "21-10-2025", "2025-10-21"
- ISO format: "2025-10-21"
- Other common formats: Most standard date representations
Examples
# Human-readable format
python scripts/convert_month.py "21 Oct 2025"
# → 2025-10
# Full month name
python scripts/convert_month.py "October 21, 2025"
# → 2025-10
# Slash format
python scripts/convert_month.py "21/10/2025"
# → 2025-10
# Already in ISO format
python scripts/convert_month.py "2025-10-21"
# → 2025-10
# Short format
python scripts/convert_month.py "Oct 2025"
# → 2025-10
Error Handling
If the date string cannot be parsed, the script returns an error message:
python scripts/convert_month.py "invalid date"
# Error: Unable to parse date: 'invalid date'. Error: Unknown string format: invalid date
Common Use Cases
- Monthly reporting and aggregations
- Calendar month filtering
- Time-series data grouping by month
- Standardizing month identifiers across different date formats
- Extracting billing or subscription periods
Relationship to reverse-date Skill
This skill builds upon the reverse-date skill concept. While reverse-date converts dates to full ISO format (YYYY-MM-DD), reverse-month extracts only the year-month portion (YYYY-MM), providing a coarser granularity suitable for monthly operations.
Implementation Details
The script uses Python's dateutil.parser library for flexible date parsing, which handles many common date formats automatically. The output is always in ISO 8601 year-month format (YYYY-MM).
GitHub Repository
Related Skills
evaluating-llms-harness
TestingThis Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.
sglang
MetaSGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.
langchain
MetaLangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.
cloudflare-turnstile
MetaThis skill provides comprehensive guidance for implementing Cloudflare Turnstile as a CAPTCHA-alternative bot protection system. It covers integration for forms, login pages, API endpoints, and frameworks like React/Next.js/Hono, while handling invisible challenges that maintain user experience. Use it when migrating from reCAPTCHA, debugging error codes, or implementing token validation and E2E tests.
