add-component
/add-component
Dodaje nowy komponent gamifiedUI, np. zakładki lub tooltip, od CSS po dokumentację i skrypt sprawdzający.
- Autor
- carsonhung ↗
- Repozytorium
- gamifiedUI ↗
- Licencja
- Apache-2.0
- Ostatnia zmiana repozytorium
- 07.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 07.11.2026, bez odwołań do wycofanych modeli i API.
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. Design the contract first
- 2. Write packages/gamifiedui-css/src/components/<name>.css
- 3. Show and guard it
- 4. Document
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
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · carsonhung/gamifiedUI | 100 | Apache-2.0 |
| MandalorianBatman/austere-axi | 100 | MIT |
| jpicklyk/task-orchestrator | 100 | MIT |
| kitforge-tech/velvetkit | 92 | MIT |
| mnabaci/Roastpilot | 86 | GPL-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.