coding-css

当编写或编辑CSS时。

📖 中文导读:当编写或编辑CSS时。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: coding-css description: When css being written or edited.

CSS coding standards

CSS in a single stylesheet: static/css/main.css.

Syntax & Style

Vertical spacing: Keep vertical spacing compact (no excessive blank lines). Readability: Prioritize readable code over "clever" one-liners. In-line css: Prefer use of classes from .css files to in-line css, unless explicitely justified.

Comments

Preserve comments: Do NOT delete existing, still relevant comments.

Logic & Operations

File Collisions: If a file exists, append _[timestamp] to the new filename. Simplicity: Choose the simplest working solution.