Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

add-component

/add-component

Dodaje nowy komponent gamifiedUI, np. zakładki lub tooltip, od CSS po dokumentację i skrypt sprawdzający.

Repozytorium
gamifiedUI ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
07.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 07.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Dodaje nowy komponent gamifiedUI, np. zakładki lub tooltip, od CSS po dokumentację i skrypt sprawdzający.

Oryginalny opis (EN)

Add a new gamifiedUI component (e.g. tabs, toast, inventory slot, tooltip) end to end - CSS, tones, states, motion fallback, demo, check script, docs. Use when the user asks for a new game-style component or a new variant of one.

Jak działa

  1. 1. Design the contract first
  2. 2. Write packages/gamifiedui-css/src/components/<name>.css
  3. 3. Show and guard it
  4. 4. Document
Sekcje z nagłówków SKILL.md, w oryginale · 38 linii, 240 słów
Podgląd SKILL.md
---
name: add-component
description: Add a new gamifiedUI component (e.g. tabs, toast, inventory slot, tooltip) end to end - CSS, tones, states, motion fallback, demo, check script, docs. Use when the user asks for a new game-style component or a new variant of one.
---

# Add a component

## 1. Design the contract first

- Pick the semantic element (`<button>`, `<dialog>`, `role="tablist"`, ...). If it needs
  behaviour CSS can't express, the CSS still works with attributes alone; JS only sets them.
- Name it per `component-api`: `gx-<name>`, parts `gx-<name>-<part>`, the shared tone names,
  `-sm` / `-lg`. Write the markup example before any CSS.

## 2. Write `packages/gamifiedui-css/src/components/<name>.css`

- Wrap in `@layer components`. Component custom properties first, colours only from
  `--color-gx-*` + `color-mix()`.
- Pixel frame + depth: copy the box-shadow stack from `button.css` or `panel.css`; reserve
  margin for frame and slab.
- States: hover inside `@media (hover: hover)`, `:focus-visible`, pressed via
  `:active` / `aria-pressed` / `[data-pressed]`, disabled via `:disabled` / `aria-disabled`.
- Motion: only `translate` / `scale` / `rotate` / `opacity`, durations from `--gx-motion-*`,
  `steps()` timing. Infinite animations get `animation: none` under
  `prefers-reduced-motion` and `[data-gx-motion="reduce"]`.
- Import it from `src/index.css`.

## 3. Show and guard it

- Add a section to `demo/index.html` with every tone, size and state; wire any behaviour in
  `demo/src/main.ts` with complete class-name strings.
- Add the root selector to `COMPONENT_SELECTORS` in `scripts/check-css.mjs` (and utilities to
  `UTILITY_CASES`).
- Run `npm test`, `npm run build`, `npm run lint --workspace=gamifiedui-demo`.
- Check in the browser: keyboard only, pointer only, all three themes, Reduce motion on, a
  narrow (375px) viewport, no horizontal scroll.

## 4. Document

- Row in the component table of `packages/gamifiedui-css/README.md`.
- Bullet in the package `CHANGELOG.md` under the next version.

Wersje

RepozytoriumWynikLicencja
Ta strona · carsonhung/gamifiedUI100Apache-2.0
MandalorianBatman/austere-axi100MIT
jpicklyk/task-orchestrator100MIT
kitforge-tech/velvetkit92MIT
mnabaci/Roastpilot86GPL-3.0

Migawka bazy z 13.11.2026 · wersja paczki 600cf7666409 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100docs-demo
    Dodaje interaktywne demo do dokumentacji Remotion przez nowy komponent Demo na stronach dokumentacji.
  • 100docs-demo
    Tworzy interaktywne demo w dokumentacji Remotion jako nowy komponent Demo osadzany na stronach docs.
  • 100component-docs-header
    Dodaje lub zmienia nagłówek z żywym demo na stronie użycia komponentu w katalogu docs.
  • 90frontend-component
    Dodaje lub zmienia komponent UI w stosie frontendowym, np. nowy widżet, element wielokrotnego użytku, sekcję strony albo stan lub wariant, zgodnie z konwencjami komponentów repozytorium.
  • 95frontend-component
    Tworzy komponent React lub Vue z TypeScriptem, testami i stylami.
  • 100component-docs-page
    Prowadzi przez listę kontrolną publikacji komponentu na stronie dokumentacji, od nowej strony po sekcje i powiązane elementy.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.