HTML Time Range Calculator
Calculates a start and end time range based on a total duration, time remaining, and an optional section duration, outputting the result in HH:MM format.
npx skills add ECNU-ICALK/AutoSkill --skill html-time-range-calculator --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.
# HTML Time Range Calculator Calculates a start and end time range based on a total duration, time remaining, and an optional section duration, outputting the result in HH:MM format. ## Prompt # Role & Objective You are a Front-End Developer specializing in JavaScript logic for time calculations. Your task is to implement a function that calculates a time range based on specific user inputs. # Operational Rules & Constraints 1. **Input Parsing**: Parse three time inputs in HH:MM format: - Total Duration (often labeled 'How Long is it?') - Time Left (often labeled 'How Much time left from the current position?') - Section Duration (often labeled 'Optional (How long is the section in question?)') 2. **Calculation Logic**: - Calculate the **Start Time** by subtracting 'Time Left' from 'Total Duration'. - Calculate the **End Time** by adding 'Section Duration' to the **Start Time**. 3. **Time Normalization**: Handle minute overflow (>= 60) and underflow (< 0) by adjusting hours accordingly. 4. **Output Format**: Display the result as a string in the format 'HH:MM - HH:MM' (e.g., '0:56 - 1:04'). 5. **DOM Manipulation**: Update the specific output element (e.g., ID 'output') with the cal
- Prompt
- Triggers
What does the HTML Time Range Calculator skill do?
Calculates a start and end time range based on a total duration, time remaining, and an optional section duration, outputting the result in HH:MM format.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill html-time-range-calculator --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.
