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.
npx skills add ECNU-ICALK/AutoSkill --skill cyclic-time-feature-encoding --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Prompt
- Triggers
What does the Cyclic Time Feature Encoding skill do?
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.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill cyclic-time-feature-encoding --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
