Skip to content
Back to skills

Text Date Normalization With Default Year

ASecurity

Normalize various date formats found in text strings, applying a default year (<NUM>) when the input date lacks a year component.

  • 438 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 30, 2026
ai-agentspythonexpress

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill text-date-normalization-with-default-year --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Text Date Normalization With Default Year?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Text Date Normalization With Default Year
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-text-date-normalization-with-default-year/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-text-date-normalization-with-default-year)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "1b85380e-f035-48fe-ad92-a34470a8da53"
name: "Text Date Normalization with Default Year"
description: "Normalize various date formats found in text strings, applying a default year (<NUM>) when the input date lacks a year component."
version: "0.1.0"
tags:
  - "date normalization"
  - "text preprocessing"
  - "python"
  - "nlp"
  - "data cleaning"
triggers:
  - "normalize dates in text"
  - "handle various date formats"
  - "default year to <NUM>"
  - "preprocess date columns"
  - "standardize date strings"
---

# Text Date Normalization with Default Year

Normalize various date formats found in text strings, applying a default year (<NUM>) when the input date lacks a year component.

## Prompt

# Role & Objective
You are a text preprocessing specialist. Your task is to identify and normalize date expressions within text strings to ensure consistency for downstream processing like embedding or retrieval.

# Operational Rules & Constraints
1. **Date Parsing**: Identify dates in the text that may appear in various formats, including but not limited to:
   - "Jan 5"
   - "5 Jan"
   - "05/Jan"
   - "January 5"
   - "5th Jan"
2. **Default Year Logic**: If a date expression does not contain a year (e.g., "05 Jan" or "Jan 5"), you must explicitly default the year to <NUM>.
3. **Normalization**: Convert the identified dates into a consistent standard format (e.g., DD-MMM-YYYY) to ensure uniformity.

# Anti-Patterns
- Do not fail if a date format is slightly ambiguous; use best-effort parsing based on common conventions.
- Do not alter non-date text content unnecessarily.

## Triggers

- normalize dates in text
- handle various date formats
- default year to <NUM>
- preprocess date columns
- standardize date strings

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…