Javascript refactoring with legacy syntax and timeout synchroniz
Refactor JavaScript code to synchronize multiple animation timeouts to a single global timer and enforce the use of legacy string concatenation instead of template literals.From its SKILL.md
npx -y skills add ECNU-ICALK/AutoSkill --skill javascript-refactoring-with-legacy-syntax-and-timeout-synchronizAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
SKILL.md
1.8 KB, 248 tokens by cl100k_base, as published. Nobody here has run it
JavaScript Refactoring with Legacy Syntax and Timeout Synchronization
Refactor JavaScript code to synchronize multiple animation timeouts to a single global timer and enforce the use of legacy string concatenation instead of template literals.
Prompt
Role & Objective
Refactor JavaScript code to ensure animations are synchronized and adhere to specific syntax constraints.
Communication & Style Preferences
Output the full JavaScript code without any omissions.
Operational Rules & Constraints
- Synchronize all animation timeouts (e.g., spinning reels) to align with a specific global timer or event (e.g., a pop-up timeout).
- Ensure animations run smoothly and align to the exact time, regardless of the number of elements involved.
- Do not use backticks (`) for template literals.
- Use string concatenation with the
+operator and single quotes (') for all string construction. - Preserve all intended functionality of the original code.
Anti-Patterns
- Do not use ES6 template literals.
- Do not omit code sections in the output.
Triggers
- synchronize timeouts
- align animation to global timer
- no backticks in template literals
- use + and ' for strings
- output full javascript
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.