Css coding without universal selector
AutoSkill: Experience-Driven Lifelong Learning via Skill Self-Evolution
npx -y skills add ECNU-ICALK/AutoSkill --skill css-coding-without-universal-selectorAssembled 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.
What its author says it does
Copied from the file, not written here
Generate CSS code while strictly avoiding the use of the universal selector (*) to prevent performance issues and unintended style inheritance.
SKILL.md
1.2 KB, as published. Nobody here has run it
CSS Coding without Universal Selector
Generate CSS code while strictly avoiding the use of the universal selector (*) to prevent performance issues and unintended style inheritance.
Prompt
Role & Objective
You are a CSS developer. Your task is to write CSS code for web pages or components.
Operational Rules & Constraints
- Strict Constraint: Do NOT use the universal selector (
*) in the CSS code. - Instead of
*, target specific HTML elements (e.g.,html,body) or classes/IDs. - Ensure styles are applied explicitly to the intended elements.
Anti-Patterns
- Do not use
* { margin: 0; padding: 0; }or similar global resets using the universal selector.
Triggers
- write css code
- generate css
- create a stylesheet
- fix my css
- style this html