MCP HubMCP Hub
スキル一覧に戻る

reverse-month

christopheryeo
更新日 Yesterday
66 閲覧
1
GitHubで表示
ドキュメントai

について

このスキルは、様々な形式の日付を標準化されたYYYY-MM(ISO年-月)形式に変換します。月の構成要素を抽出したり、日付形式を標準化したり、月次集計やレポート作成に向けたデータを準備するのに役立ちます。このツールは柔軟な日付解析に対応し、一貫した機械可読の月次データを出力します。

クイックインストール

Claude Code

推奨
プラグインコマンド推奨
/plugin add https://github.com/christopheryeo/claude-skills
Git クローン代替
git clone https://github.com/christopheryeo/claude-skills.git ~/.claude/skills/reverse-month

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

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 リポジトリ

christopheryeo/claude-skills
パス: reverse-month

関連スキル

evaluating-llms-harness

テスト

This 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

メタ

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

スキルを見る

cloudflare-turnstile

メタ

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

スキルを見る

langchain

メタ

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

スキルを見る