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

page-build

/page-build

Buduje stronę w HTML, przenosi do Figmy po jednej ramce na sekcję i publikuje podgląd HTML.

Licencja
MIT
Ostatnia zmiana repozytorium
03.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 03.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 stronę w HTML, przenosi do Figmy po jednej ramce na sekcję i publikuje podgląd HTML.

Wyzwalacze z opisu

push to Figmabuild the preview
Oryginalny opis (EN)

Build a page end to end as HTML, push it to Figma as one frame per section, and publish an HTML preview. Use when the user asks to build or start a page or a section, "push to Figma", or "build the preview".

Jak działa

  1. 1. Brief
  2. 2. Build the page
  3. 3. Check locally
  4. 4. Push to Figma (first time, or new sections)
  5. 5. Preview
Sekcje z nagłówków SKILL.md, w oryginale · 64 linii, 419 słów
Podgląd SKILL.md
---
name: page-build
description: Build a page end to end as HTML, push it to Figma as one frame per section, and publish an HTML preview. Use when the user asks to build or start a page or a section, "push to Figma", or "build the preview".
---

# Page build

HTML is the source of truth. Figma is the review surface. The preview is what reviewers scroll.
Load the project's own rules skill first, if the project has one.

## 1. Brief

Collect: what the page sells or explains, who reads it, the facts it may state, any reference
screenshots or URLs. Missing facts become `[VERIFY: what is needed]`, never estimates.

## 2. Build the page

`pages/<slug>/index.html`, a complete self-contained document. Follow `examples/demo/index.html`:

- One `<section data-section="NN-name">` per block, NN in page order. Each becomes a Figma frame.
- Every `section` (and `footer`) sets its own background. Figma frames do not inherit `<body>`.
- Visible strings sit in elements with `data-i18n="section.key"` (see `localize`).
- Tabs use `role="tab"` / `role="tabpanel"` + `hidden`, so the Figma build can reveal all panels.
- Fluid from 375 to 1440 px; use logical CSS properties so RTL works.
- Images live in `pages/<slug>/assets/` and are referenced as `src="assets/..."`; the build inlines
  them. Use WebP for large transparent images in HTML; keep a PNG copy for Figma (`createImage`
  does not take WebP).
- Animated backgrounds: generate SVG markup so the first frame is real geometry Figma can import.
- Respect `prefers-reduced-motion`.

## 3. Check locally

Bundle, then open in a browser (the bundle works offline and as a single file):

```
python tools/build_preview.py pages/<slug>/index.html dist/<slug>/full.html --full
```

Check 1440 and 375 widths: no horizontal scroll (`scrollWidth == clientWidth`), nothing overlaps.

## 4. Push to Figma (first time, or new sections)

This spends MCP calls. Say so before doing it.

1. `create_new_file` once per project (`whoami` gives the plan key). Save the key in `state/figma.json`.
2. Build the Figma variant: all tab panels visible, animations frozen at rest:
   ```
   python tools/build_preview.py pages/<slug>/index.html dist/<slug>/figma.html --full --show-all
   ```
3. `html_to_figma` with `cssSelector: "section[data-section], footer[data-section]"`, then
   `curl -f -X POST "<submitUrl>" -H "Content-Type: text/html" --data-binary @dist/<slug>/figma.html`.
4. Stack and name the frames (`NN · name`) with a plugin patch (`set` ops on x/y/name), not MCP.
5. Record every frame id under `sections` in `state/figma.json`.

Known behavior of `html_to_figma`: it renders at about 1280 px wide, drops CSS `mask-image`, turns
CSS `filter: drop-shadow` on images into a rectangular shadow, and imports `<img>` as a FRAME with
an image fill.

## 5. Preview

```
python tools/build_preview.py pages/<slug>/index.html dist/<slug>/index.html
```

`dist/<slug>/index.html` is the page body without `<html>/<head>/<body>` wrappers, ready for hosts
that add their own skeleton (for example a Claude Artifact). For a normal static host use the
`--full` build instead. Record the preview URL in `state/figma.json` under `previews`.

Wersje

W bazie nie ma innych skilli o nazwie page-build.

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

Pobrania w ostatnich 30 dniach: 1 · ranking

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

Podobne skille

  • 95figma-generate-design
    Przenosi stronę lub widok aplikacji do Figmy na podstawie kodu, a także aktualizuje ekran w Figmie, gdy zmienia się kod.
  • 100figma-generate-design
    Przenosi stronę, widok lub układ wielosekcyjny aplikacji do Figmy i aktualizuje ekrany Figmy, aby odpowiadały kodowi, razem ze skillem figma-use.
  • 95figma-generate-design
    Przenosi strony, widoki i wielosekcyjne układy aplikacji do Figmy razem z figma-use, np. ekran, landing page, modal lub panel zbudowany z kodu.
  • 100figma-generate-design
    Przenosi stronę, widok lub układ wielosekcyjny aplikacji do Figma na podstawie kodu, a także aktualizuje ekran Figma zgodnie z kodem.
  • 90webflow-mcp:figma-to-webflow
    Buduje stronę, sekcję, komponent lub całą witrynę w Webflow z projektu Figma przez Figma MCP i Webflow MCP, jako żywe elementy i style.
  • 100figma-comments-loop
    Wprowadza uwagi z Figmy do kodu HTML i samego projektu, a potem odpowiada w każdym wątku.

Uwagi i zgłoszenia

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