- Home
- Skills
- Christopheryeo
- Claude Skills
- Reverse Month
reverse-month_skill
- HTML
0
GitHub Stars
1
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill christopheryeo/claude-skills --skill reverse-month- skill.md2.7 KB
Overview
This skill converts dates from many human-readable formats into the standardized reverse month format (YYYY-MM). It extracts only the year and month components so dates are ready for monthly reporting, aggregation, or filtering. The implementation uses Python and flexible parsing to accept a wide variety of input styles.
How this skill works
The tool parses an input date string with a tolerant parser and normalizes the result to the ISO year-month representation (YYYY-MM). It accepts full dates, partial dates (like 'Oct 2025'), slash/dash-separated forms, and typical human formats, returning an error if parsing fails. Internally it relies on date parsing libraries to interpret the input and then formats the datetime to year-month only.
When to use it
- Preparing data for monthly aggregations or time-series grouping
- Standardizing month identifiers across mixed source formats
- Filtering or querying records by calendar month
- Generating billing, subscription, or reporting periods
- Converting user-entered dates to a consistent month key
Best practices
- Prefer supplying a full date (day-month-year) when available to avoid ambiguity
- Normalize input timezones or remove time components before parsing if timezone matters
- Validate parsing success and handle errors by logging the original string
- Use YYYY-MM output as a stable key in databases or filenames
- Document expected input locales where ambiguous numeric dates (e.g., 03/04/2025) may vary
Example use cases
- Transforming event timestamps into month keys for aggregation pipelines
- Converting user-entered dates in forms to YYYY-MM for storage
- Preparing monthly revenue reports by grouping transactions by YYYY-MM
- Filtering calendar datasets to a target month using standardized strings
- Creating filenames or directory structures that represent year-month slices
FAQ
The skill returns a clear error indicating the string could not be parsed so you can log or handle the failure upstream.
Will it preserve timezone or day information?
No. The output intentionally contains only year and month; day and timezone are discarded after parsing.
Does it support inputs like 'Oct 2025' or '2025-10-21'?
Yes. It accepts full ISO dates, human-readable forms, and partial month-year formats and converts them to YYYY-MM.