本文へ移動
cccskills
無料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.

インストール方法を見る

含まれるファイル(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(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

action-status-updater

無料日本語概要

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.

takusaotome/claude-skills-library92026年10月5日 更新

ai-adoption-consultant

無料日本語概要

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

takusaotome/claude-skills-library92026年10月5日 更新

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実装.

日本語の概要は準備中です。原文の説明を表示しています。

takusaotome/claude-skills-library92026年10月5日 更新

ai-text-humanizer

無料日本語概要

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/を参照して分析・リライトする。

takusaotome/claude-skills-library92026年10月5日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

takusaotome/claude-skills-library92026年10月5日 更新

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.

日本語の概要は準備中です。原文の説明を表示しています。

takusaotome/claude-skills-library92026年10月5日 更新

takusaotome のスキルをすべて見る

このスキルの問題を報告する