Index of every page on this site: llms.txt
All skills
fubits1 avatar

/code-style-css

@a024d57
by Iljafubits1/svelte-skills11 stars
2
Run it yourself

Use when editing CSS, SCSS, or style blocks in .svelte files. Covers CSS-specific code style rules. Auto-invoke when writing or modifying styles.

Use this Skill: https://skilld.dev/gh/fubits1/svelte-skills/code-style-css

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈40 tokens for metadata: the name and description. ≈341 when used: this file.

Description uses 2.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈162 characters, or 2.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

CSS Code Style

  • Only add layout/flow styles (flex, grid). No decorative styles unless asked.
  • ALWAYS nest CSS and ALWAYS nest with &. For the full nesting workflow (specificity analysis, block ordering, stylelint compliance), use frontend:css-nesting.

Rules for styles you write

These rules apply to styles the task already calls for; they don't license decorative styles you weren't asked for.

  • Never transition: all; list the animated properties. Set the right transform-origin; for SVG, transform a <g> wrapper with transform-box: fill-box; transform-origin: center.
  • Lay out with flex or grid rather than JS measurement. Fix content that overflows instead of hiding scrollbars.
  • Size text containers for short, average and very long content. A flex child that truncates text needs min-width: 0; clamp multi-line text with line-clamp.
  • Full-bleed layouts pad with env(safe-area-inset-*) so notches don't cover content.
  • Number columns and compared numbers use font-variant-numeric: tabular-nums.
  • Group focus with :focus-within on compound controls.
  • Set -webkit-tap-highlight-color on purpose. During a drag, disable text selection (user-select: none; inert placement: frontend:code-style).
  • Give native <select> an explicit background-color and color, or Windows dark mode renders it unreadable.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts4mo3 checks · Risk SAFE
  • Gen Agent Trust Hub4mo

    This skill provides instructions for CSS code styling, specifically focusing on layout rules and nesting conventions. It contains no executable code or external references that pose a security risk.

  • Socket4mo

    No alerts

  • Snyk4mo

    Risk: LOW · No issues

Signed by skilld at a024d57. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Activeupdated last month
user-invocable
true

README badge

README badge for fubits1/svelte-skills/code-style-css