Логотип Hof Css Prohibits

Hof Css Prohibits

Організація
openreachtech
hof-css-prohibits

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

Огляд

Видавецьopenreachtech
Репозиторійhora-skills-ort-furo
Назва навичкиhof-css-prohibits
Зірки
32
Форки
0
Файли в пакеті
1
ЛіцензіяApache-2.0
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 1

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Видавець на GitHub: openreachtech. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Hof Css Prohibits у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-css-prohibits
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Hof Css Prohibits в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Hof Css Prohibits, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Hof Css Prohibits не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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);
  }
}

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Hof Css Prohibits?

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

Навіщо використовувати Hof Css Prohibits у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Hof Css Prohibits — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Hof Css Prohibits у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/openreachtech/hora-skills-ort-furo/tree/main/kit/skills/hof-css-prohibits. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Hof Css Prohibits?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Hof Css Prohibits?

Зі скількома забажаєте. У TypingMind ви можете використовувати Hof Css Prohibits із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Hof Css Prohibits?

Так. На GitHub цю навичку публікує openreachtech за ліцензією Apache-2.0. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇