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

lab-component

/lab-component

Buduje lub dopracowuje komponent, interakcję lub układ w laboratorium byolab, od szkicu do ocenionej wersji.

Repozytorium
byolab ↗
Licencja
MIT
Ostatnia zmiana repozytorium
01.11.2026

Ocena i bezpieczeństwo

86/ 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ść21 / 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
1
Przestarzałość

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

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Buduje lub dopracowuje komponent, interakcję lub układ w laboratorium byolab, od szkicu do ocenionej wersji.

Oryginalny opis (EN)

Build or refine a component in a byolab design lab, from scaffold to a judged draft. Use when asked to make, build, or polish a component, interaction, or layout study in this repository.

Jak działa

SKILL.md bez nagłówków drugiego poziomu · 33 linii, 399 słów

Podgląd SKILL.md
---
name: lab-component
description: Build or refine a component in a byolab design lab, from scaffold to a judged draft. Use when asked to make, build, or polish a component, interaction, or layout study in this repository.
---

# Lab components

<context>

A component here is one idea worth showing: an interaction, a material, a state change. It is the whole deliverable. The owner judges it by hand in the lab, then films it. Read `TASTE.md` and `GRID.md` first; they override anything below.

</context>

<workflow>

1. **Name the idea in one sentence.** It becomes `idea` in the registry and the tile caption. If you can't write it, the component isn't ready.
2. **Scaffold it:** `pnpm lab new <slug> --name "<Name>" --idea "<sentence>" --json`. The JSON lists the files and the URL. Pick `--size` to fit the component with a 24px gutter; it stays fixed so the lab and the film scale the same geometry.
3. **Build in the generated `<slug>.tsx`.** Compose the themed components in `src/components/ui` and semantic tokens (`bg-card`, `text-muted-foreground`, `shadow-floating`). A raw color is OKLCH and only appears where the content needs it.
4. **Give it two drivers.** Real pointer and keyboard input drive it in the lab. In a film, `useFilmFrame()` returns `{ t, values }` and the component reads its state from there instead. Keep one markup for both, so the film can't drift from the real thing. Give clickable controls a stable `data-slot`.
5. **Tune with DialKit.** The starter calls `useDialKit` for its radius and spring. Put the values worth tuning there (springs, durations, radii, offsets) and tell the owner they can tune them in the workbench panel. When they paste values back, bake them in as plain constants and remove that `useDialKit` call, because a film can't reproduce a live dial frame for frame.
6. **Finish every state:** empty, hover, focus, active, disabled, error, long text, both themes, keyboard, reduced motion.
7. **Check it:** `pnpm lab grid <slug>`, `pnpm typecheck`, `pnpm lint`. Open `http://localhost:5420/#/s/<slug>` in a browser, use it, and look at it in both themes (T toggles).
8. **Hand over** the URL with one sentence on what to try first. The owner keeps or tosses it. When they toss with a reason, run `pnpm lab toss <slug> --reason "<their words>"`. See `docs/judging.md` for what a useful reason looks like.

</workflow>

<reject>

Reject the component when it reads as any of these, because each one hides the idea:

- A landing page, a feature grid, or three cards.
- Charts added to make a small idea look substantial.
- Placeholder content.
- A transition that exists only to look produced.

</reject>

Wersje

W bazie nie ma innych skilli o nazwie lab-component.

Migawka bazy z 13.11.2026 · wersja paczki be0ab965f838 (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

  • 86lab-start
    Wprowadza nowego właściciela w laboratorium byolab i prowadzi go do pierwszego ocenionego komponentu.
  • 96lab-ideas
    Proponuje nowe pomysły komponentów do laboratorium byolab, ważąc wcześniejsze wybory właściciela, a potem buduje wybrany.
  • 91design-lab
    Prowadzi wywiad projektowy, generuje pięć odmiennych wariantów interfejsu w tymczasowym laboratorium, zbiera uwagi i tworzy plany implementacji.
  • 92add-component
    Dodaje nowy komponent lub podczęść do rejestru VelvetKit w repozytorium, z kompletem plików.
  • 100design-build
    Wdraża i poprawia wizualny projekt frontendu: CSS, układ, typografię, tokeny kolorów i stany komponentów.
  • 90ui
    Buduje, przegląda i dopracowuje ekran, komponent lub przepływ na różnych platformach, ze wszystkimi stanami, animacją i dostępnością.

Uwagi i zgłoszenia

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