Skip to content
cccskills
FreePublished on GitHub

timezone-aware-event-tracker

Track and correlate events across multiple timezones with automatic conversion. Use when analyzing distributed system incidents, coordinating cross-regional operations, or creating time-normalized reports from logs/events spanning PST/CST/EST/JST or other timezones. Handles daylight saving transitions automatically.

The English summary is being prepared. Showing the original description.

Run score Not tested

See how to install

Files included (5)

  • SKILL.md5.7 KB
  • references/timezone-conversion-guide.md9.3 KB
  • scripts/tests/conftest.py231 B
  • scripts/tests/test_timezone_event_tracker.py11.8 KB
  • scripts/timezone_event_tracker.py24.5 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Timezone-Aware Event Tracker

Overview

This skill tracks, converts, and correlates events occurring across multiple timezones with automatic timezone detection and conversion. It maintains awareness of regional time differences (PST/CST/EST/JST and others), handles daylight saving time (DST) transitions, and generates time-normalized reports. Essential for distributed team incident analysis, cross-regional operations coordination, and multi-timezone log correlation.

When to Use

  • Analyzing incidents or logs from distributed systems spanning multiple timezones
  • Correlating events from teams in different regions (e.g., US West, US East, Japan)
  • Creating unified timelines from events recorded in different local times
  • Scheduling or reviewing cross-regional meetings and handoffs
  • Generating time-normalized reports for global operations
  • Investigating issues where timestamp confusion led to coordination failures

Prerequisites

  • Python 3.9+
  • No API keys required
  • Dependencies: pytz (or use standard library zoneinfo on Python 3.9+)

Workflow

Step 1: Collect Event Data

Gather event data with timestamps. Events can be provided in multiple formats:

  • CSV files with timestamp columns
  • JSON event logs
  • Plain text logs with parseable timestamps
  • Manual event lists

Each event should include:

  • Timestamp (in any parseable format)
  • Source timezone (or auto-detect from timestamp suffix)
  • Event description
  • Optional: severity, source system, correlation ID

Step 2: Parse and Normalize Events

Run the event parser to convert all timestamps to a common reference timezone (default: UTC).

python3 scripts/timezone_event_tracker.py parse \
  --input events.csv \
  --output normalized_events.json \
  --reference-tz UTC

The parser will:

  • Detect timestamp formats automatically
  • Identify source timezones from suffixes (PST, EST, JST) or offset notation
  • Convert all times to the reference timezone
  • Flag ambiguous timestamps (e.g., during DST transitions)

Step 3: Correlate Events Across Timezones

Identify related events that occurred within specified time windows.

python3 scripts/timezone_event_tracker.py correlate \
  --input normalized_events.json \
  --window-minutes 5 \
  --output correlated_events.json

Correlation identifies:

  • Events occurring within the same time window
  • Causal chains based on timestamps
  • Gaps in event sequences
  • Timezone-related patterns (e.g., events clustering around shift changes)

Step 4: Generate Timeline Report

Create a unified timeline report showing all events in multiple timezone views.

python3 scripts/timezone_event_tracker.py report \
  --input correlated_events.json \
  --timezones "America/Los_Angeles,America/New_York,Asia/Tokyo" \
  --format markdown \
  --output timeline_report.md

Step 5: Analyze DST Transitions

Check if any events occurred during daylight saving transitions that may have caused confusion.

python3 scripts/timezone_event_tracker.py dst-check \
  --input normalized_events.json \
  --year 2024 \
  --output dst_analysis.json

Output Format

JSON Normalized Events

{
  "schema_version": "1.0",
  "reference_timezone": "UTC",
  "generated_at": "2024-03-15T10:30:00Z",
  "events": [
    {
      "id": "evt-001",
      "original_timestamp": "2024-03-15 02:30:00 PST",
      "normalized_timestamp": "2024-03-15T10:30:00Z",
      "source_timezone": "America/Los_Angeles",
      "description": "Server restart initiated",
      "metadata": {
        "severity": "info",
        "source_system": "ops-west"
      },
      "dst_status": "standard_time"
    }
  ],
  "correlation_groups": [
    {
      "group_id": "corr-001",
      "event_ids": ["evt-001", "evt-002"],
      "time_span_seconds": 120,
      "pattern": "cascading_failure"
    }
  ]
}

Markdown Timeline Report

# Event Timeline Report

Generated: 2024-03-15T10:30:00Z

## Summary
- Total events: 15
- Time span: 2024-03-15 00:00 UTC to 2024-03-15 23:59 UTC
- Correlation groups: 3
- DST warnings: 0

## Timeline (Multi-Timezone View)

| UTC | PST (LA) | EST (NY) | JST (Tokyo) | Event | Source |
|-----|----------|----------|-------------|-------|--------|
| 10:30 | 02:30 | 05:30 | 19:30 | Server restart | ops-west |
| 10:32 | 02:32 | 05:32 | 19:32 | Alert triggered | monitoring |

## Correlation Analysis

### Group 1: Cascading Failure (2 events, 120s span)
- 10:30 UTC: Server restart initiated (ops-west)
- 10:32 UTC: Alert triggered (monitoring)

## DST Considerations

No events occurred during DST transition periods.

Resources

  • scripts/timezone_event_tracker.py -- Main CLI tool for parsing, correlating, and reporting
  • references/timezone-conversion-guide.md -- Reference for timezone abbreviations, DST rules, and conversion best practices

Key Principles

  1. Always normalize to UTC first -- Use UTC as the internal reference to avoid confusion during DST transitions
  2. Preserve original timestamps -- Keep source timestamps for audit trail and debugging
  3. Flag ambiguity explicitly -- DST transitions create ambiguous local times; flag them rather than guess
  4. Support IANA timezone names -- Use America/Los_Angeles not PST for unambiguous timezone handling
  5. Consider business hours -- When correlating events, account for regional business hour patterns

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Track and update action item status from natural language updates like 'Seanのメールには返信しておいた' or 'Lu対応予定'. Integrates with daily-comms-ops workflow. Use when managing action items across communication channels.

The English summary is being prepared. Showing the original description.

takusaotome/claude-skills-library10Updated Oct 23, 2026

AI活用提案の専門コンサルタントスキル。LLM・AIエージェントの活用事例知識を基に、業界別、部門別、シーン別に最適なAI導入提案を行います。システム化、業務改善、効率化を得意とし、具体的な活用事例、期待効果、導入ステップを含む実践的な提案を提供します。Use when proposing AI/LLM adoption strategies for specific industries, departments, or business scenarios.

The English summary is being prepared. Showing the original description.

takusaotome/claude-skills-library10Updated Oct 23, 2026

Generate AI-powered BPO service proposals for Japanese companies in the US market. Use when creating outsourcing proposals with AI service menus, ROI estimation, implementation roadmaps, and bilingual (JA/EN) proposal documents for 在米日系企業向けAI実装.

The English summary is being prepared. Showing the original description.

takusaotome/claude-skills-library10Updated Oct 23, 2026

AI(LLM)が生成した日本語テキストの「AI臭」を検出・診断し、人間らしい文章にリライトするスキル。 Use when: 「AIっぽい文章を直して」「人間らしくリライトして」「AI臭を消して」「この文章をもっと自然にして」 「テキストのAI感を減らして」「機械っぽさを取りたい」 "make this sound more human", "remove AI tone", "humanize this text", "detect if this is AI-generated". 6つのAI特有パターン(視覚的マーカー、単調なリズム、マニュアル的構成、非コミット姿勢、抽象語の濫用、 定型メタファー)を正規表現ベースで検出し、0-100のAI臭スコアを算出。3つの人間化技法 (バランスを崩す・客観を崩す・論理を崩す)でリライトを実行する。 Note: 検出スクリプトは日本語テキスト専用。英語テキストの場合はClaude自身がreferences/を参照して分析・リライトする。

The English summary is being prepared. Showing the original description.

takusaotome/claude-skills-library10Updated Oct 23, 2026

Generate audit-ready internal control design documents from As-Is business process inventories. Produces control IDs, assertion mappings, procedures, SoD analysis, KPIs, materiality thresholds, and implementation roadmaps. Use when building internal controls for new audit engagements, SOX/J-SOX compliance, or process improvement initiatives.

The English summary is being prepared. Showing the original description.

takusaotome/claude-skills-library10Updated Oct 23, 2026

Review audit-related documents (control design documents, bottleneck analyses, requirements definitions, etc.) for quality, scoring them 0-100 with a severity-rated findings list. Use when reviewing audit documents, checking control design quality, or verifying cross-document consistency. Supports documents governed by US GAAP, IFRS, or J-GAAP.

The English summary is being prepared. Showing the original description.

takusaotome/claude-skills-library10Updated Oct 23, 2026

See all skills by takusaotome

Report a problem with this skill