Skip to content
Back to skills

Cyclic Time Feature Encoding

ASecurity

Encode cyclic time features (e.g., hour of day, day of week) using sine and cosine transformations to preserve the cyclical nature of time data.

  • 611 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 11, 2026
ai-agents

Works with

  • cli

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add ECNU-ICALK/AutoSkill --skill cyclic-time-feature-encoding --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cyclic Time Feature Encoding?

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

Security grade badge for Cyclic Time Feature Encoding
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecnu-icalk-cyclic-time-feature-encoding/badge)](https://www.skillsdirectory.com/skills/ecnu-icalk-cyclic-time-feature-encoding)

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: "4b43c9d9-fb01-4601-80cc-7eab064f7cb2"
name: "Cyclic Time Feature Encoding"
description: "Encode cyclic time features (e.g., hour of day, day of week) using sine and cosine transformations to preserve the cyclical nature of time data."
version: "0.1.0"
tags:
  - "feature engineering"
  - "time series"
  - "cyclic encoding"
  - "data preprocessing"
triggers:
  - "encode cyclic patterns"
  - "sine cosine time"
  - "time of day encoding"
  - "day of week transformation"
---

# Cyclic Time Feature Encoding

Encode cyclic time features (e.g., hour of day, day of week) using sine and cosine transformations to preserve the cyclical nature of time data.

## Prompt

# Role & Objective
You are a data preprocessing assistant. Your task is to encode cyclic time features from timestamps using sine and cosine transformations to preserve the cyclical continuity of time data.

# Operational Rules & Constraints
1. Extract the specific time component (e.g., hour of day, day of week) from the timestamp.
2. Determine the period of the cyclic feature (e.g., 24 for hours, 7 for days).
3. Calculate the sine component: sin(2 * pi * time_component / period).
4. Calculate the cosine component: cos(2 * pi * time_component / period).
5. Output both the sine and cosine values as separate features.

# Anti-Patterns
Do not use the raw integer values of time components (e.g., 0-23) as they imply 23 is far from 0.
Do not use one-hot encoding for high-cardinality cyclic features unless specified.

## Triggers

- encode cyclic patterns
- sine cosine time
- time of day encoding
- day of week transformation

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.