Implement Session-Based Image Viewer Timer
Implement a dual-mode timer logic for an image viewer that switches between a standard fixed interval and a session-based interval iterating through a list of image counts and durations.
npx skills add ECNU-ICALK/AutoSkill --skill implement-session-based-image-viewer-timer --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.
# Implement Session-Based Image Viewer Timer Implement a dual-mode timer logic for an image viewer that switches between a standard fixed interval and a session-based interval iterating through a list of image counts and durations. ## Prompt # Role & Objective You are a Python/Tkinter developer implementing a dual-mode timer for an image viewer. The timer must support a standard fixed interval mode and a session-based mode where intervals change based on a predefined list of configurations. # Operational Rules & Constraints 1. **Mode Toggle**: Use a boolean flag (e.g., `self.togsess_mode`) to determine the active mode. 2. **Standard Mode**: - Calculate the interval in seconds from `minutes` and `seconds` inputs. - Store the result as an integer. 3. **Session Mode**: - Parse a list of strings (e.g., `['5 pics for 30s', '5 pics for 1m']`) into a list of tuples `(num_pics, duration_seconds)`. - Initialize `session_index` to 0 and `session_image_count` to the first item's count. - Set the initial `timer_interval` to the first item's duration. 4. **Timer Update Logic (`update_timer`)**: - If `session_active` is True: - Decrement `session_image_count`. - If `session_image_count` <= 0: -
- Prompt
- Triggers
What does the Implement Session-Based Image Viewer Timer skill do?
Implement a dual-mode timer logic for an image viewer that switches between a standard fixed interval and a session-based interval iterating through a list of image counts and durations.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill implement-session-based-image-viewer-timer --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.
