Logo vun Hof Css Prohibits

Hof Css Prohibits

Organisatioun
openreachtech
hof-css-prohibits

Conventions collecting CSS notations that are prohibited (anti-patterns).

Iwwersiicht

Editeuropenreachtech
Repositoryhora-skills-ort-furo
Skill-Nummhof-css-prohibits
Stären
32
Forks
0
Matgeliwwert Fichieren
1
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum openreachtech op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Hof Css Prohibits an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-css-prohibits
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/openreachtech/hora-skills-ort-furo.git /tmp/hora-skills-ort-furo
mkdir -p .claude/skills
cp -r /tmp/hora-skills-ort-furo/kit/skills/hof-css-prohibits .claude/skills/hof-css-prohibits
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Hof Css Prohibits an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Hof Css Prohibits automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Hof Css Prohibits net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Frontend: CSS Prohibits

Collects CSS notations that are prohibited.

Prohibit physical-direction properties and values

  • Physical direction (top / right / bottom / left, physical axes like width / height, and physical values like float: left) is prohibited without exception. Use only the logical properties and values that follow the writing direction.
  • Three families are covered. See references/physical-to-logical.md for the complete mapping.
    • Properties with a top/right/bottom/left set: margin / padding / border-* / border-*-radius / inset (top/right/bottom/left) / scroll-margin-* / scroll-padding-*
    • Physical dimensions: width / height / min-* / max-* / overflow-x / overflow-y
    • Physical values: left/right/top/bottom on float / clear / text-align / caption-side
  • To set a single side, use *-inline-start / *-inline-end / *-block-start / *-block-end (start / end are the only way to set one side, so they are allowed).
  • The one exception: border-image-outset takes four values but has no logical equivalent and cannot be replaced, so it alone may stay in physical form.
  • Reason: in right-to-left (RTL) languages, left / right do not work and physical-direction values break the layout. Logical forms follow the writing direction automatically.
css
/* NG: physical direction */
.box {
  padding: 0.5rem 0.75rem;
  margin-left: 1rem;
  border-bottom: var(--hairline-width) solid #ccc;
  width: 20rem;
  top: 0;
  left: 0;
  float: left;
  text-align: left;
}

/* OK: logical properties and values */
.box {
  padding-block: 0.5rem;
  padding-inline: 0.75rem;
  margin-inline-start: 1rem;
  border-block-end: var(--hairline-width) solid #ccc;
  inline-size: 20rem;
  inset-block-start: 0;
  inset-inline-start: 0;
  float: inline-start;
  text-align: start;
}

Prohibit CSS nesting

  • CSS nesting is prohibited. Do not nest selectors (neither a selector inside a rule nor an & combination); keep selectors flat.
  • The one exception: a media-query override for the same selector may be written as @media { } inside that selector (see the breakpoint example in the rem-based unit convention).
  • There are several reasons.
    • Diffs are unreadable in GitHub pull requests; nesting obscures the diff.
    • When nesting is deep, you must scroll every time to confirm that an addition sits at the correct level.
    • The editor assistance that would supply the nesting context does not work on GitHub.
css
/* NG: nested selectors */
.card {
  color: #cc3300;

  .card-title {
    font-weight: bold;
  }

  &:hover {
    opacity: 0.8;
  }
}

/* OK: keep selectors flat */
.card {
  color: #cc3300;
}

.card-title {
  font-weight: bold;
}

.card:hover {
  opacity: 0.8;
}
css
/* OK (the one exception): only a media-query override for the same selector goes inside */
.card {
  padding-inline: 0.75rem;

  @media (min-width: 48rem) {
    padding-inline: 1rem;
  }
}

Prohibit one-line declaration blocks

  • Writing a selector's { } (declaration block) on one line is prohibited. Put the opening { on the same line as the selector, one declaration per line, and the closing } on its own line — always chopped down.
  • No exceptions, even for a single declaration; this keeps things consistent.
css
/* NG: { } written on one line */
.card { color: #cc3300; }

/* OK: always chopped down */
.card {
  color: #cc3300;
}

Prohibit !important

  • !important on a declaration is prohibited without exception, whatever the reason. When you need to override, do not raise specificity or reach for !important — resolve it through the order of cascade layers (→ the cascade layers convention).
  • Reasons:
    • !important hoists a declaration outside the specificity system and breaks control of the cascade itself. With multiple contributors, you inevitably fall into a chain of "an !important that overrides an !important" — an importance war.
    • Its effect is non-local. One person's !important silently nullifies legitimate styles elsewhere, and the cause becomes hard to trace.
    • This repo designs override order with cascade layers (reset → base → furo → app, later layers win). Which rule wins is decided by layer order, so there is no need in principle to strike individually with !important. Using !important is nothing but jumping the queue and ignoring that designed order.
css
/* NG: striking with !important */
.button {
  color: #fff !important;
}

/* OK: let layer order decide (app beats furo — no !important) */
@layer furo {
  .button {
    color: #333;
  }
}

@layer app {
  .button {
    color: #fff;
  }
}

Prohibit bare tag selectors outside the reset / base layers

  • Bare (unqualified) tag selectors (a {} / h1 {} / ul {} and the like) may be used only in the two layers @layer reset and @layer base. These two layers define the look of the native HTML elements themselves (reset = reset, base = base design system) (→ the cascade layers convention).
  • Bare tag selectors are prohibited in the furo / app layers. When you refer to a tag, always qualify it with a class (the tagname.furo form, per the Furo convention).
  • Reason: a bare tag selector has an extremely wide reach — it hits every element of that kind across the whole document. That reach is correctly needed in reset / base, which set "the default look of the raw element", but in furo / app, which define components, it becomes a source of styles leaking onto unrelated elements. Confine the wide reach to the two layers whose purpose it is.
css
/* OK: reset / base target the native elements themselves */
@layer base {
  a {
    color: var(--color-primary);
  }
}
css
/* NG: a bare tag selector in furo / app */
@layer furo {
  a {
    color: var(--color-primary);
  }
}

/* OK: in furo / app, qualify with a class (tagname.furo) */
@layer furo {
  a.furo {
    color: var(--color-primary);
  }
}

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Hof Css Prohibits?

Conventions collecting CSS notations that are prohibited (anti-patterns).

Firwat Hof Css Prohibits op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Hof Css Prohibits besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Hof Css Prohibits an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-css-prohibits an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Hof Css Prohibits benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Hof Css Prohibits benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Hof Css Prohibits domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Hof Css Prohibits gratis?

Jo. De Skill gëtt vum openreachtech ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇