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

add-page

/add-page

Dodaje stronę do aplikacji TurbineKit: publiczną z metadanymi SEO i wpisem w mapie strony albo stronę dla zalogowanych.

Repozytorium
turbinekit ↗
Licencja
MIT
Ostatnia zmiana repozytorium
04.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 04.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

Dodaje stronę do aplikacji TurbineKit: publiczną z metadanymi SEO i wpisem w mapie strony albo stronę dla zalogowanych.

Oryginalny opis (EN)

Add a page to a TurbineKit web app — a public page (localized, in the sitemap and llms.txt, with SEO metadata) or a signed-in app page. Use whenever a new URL people visit is needed.

Jak działa

  1. A public page
  2. A signed-in page
  3. Check
Sekcje z nagłówków SKILL.md, w oryginale · 68 linii, 341 słów
Podgląd SKILL.md
---
name: add-page
description: Add a page to a TurbineKit web app — a public page (localized, in the sitemap and llms.txt, with SEO metadata) or a signed-in app page. Use whenever a new URL people visit is needed.
---

# Add a page

Pages live under `apps/web/src/app/[locale]/`, in a route group:
`(core)` for the public site, `(app)` for signed-in pages, `(auth)` for
sign-in flows, `(legal)` for legal pages (skill `add-legal-page`).

## A public page

1. **Messages.** In `apps/web/messages/en.json`, add the page's title and
   description under `Pages.<key>`, and its text under its own namespace
   (`About`). Do the same in every other locale file.
2. **Route list.** Add `<key>` to `PAGE_KEYS` and an entry to `publicPages`
   in `apps/web/src/lib/routes.ts`. The sitemap, `llms.txt` and the
   Markdown copies come from it.
3. **The page**, `apps/web/src/app/[locale]/(core)/<path>/page.tsx`. Copy
   the shape of `(core)/pricing/page.tsx`:
   - `generateMetadata` returns `createMetadata({ title, description, path,
     locale })` (`@/lib/metadata`): canonical URL, hreflang and the share
     image.
   - The page renders `<JsonLd data={webPageSchema(…)} />` and one `<h1>`.
   - It is a server component that reads no request data, so it stays
     static. If a part needs the request, put that part in `<Suspense>`.
4. **Server-only text.** If only server components read the namespace, add
   it to `SERVER_ONLY_NAMESPACES` in `apps/web/src/lib/client-messages.ts`.
5. **Navigation.** Add a link in `src/components/site-header.tsx` or
   `site-footer.tsx`, with `Link` from `@/i18n/navigation`.

## A signed-in page

1. `apps/web/src/app/[locale]/(app)/<path>/page.tsx`. Add `/<path>` to
   `appPaths` in `src/lib/routes.ts`: the proxy then sends signed-out
   visitors to sign-in, and robots.txt disallows it.
2. `generateMetadata` returns `{ title }` only: the `(app)` layout already
   sets noindex.
3. Put everything that reads the session in `<Suspense>`:

   ```tsx
   export default function NotesPage() {
   	return (
   		<Suspense fallback={<Skeleton className="h-40" />}>
   			<Notes />
   		</Suspense>
   	);
   }

   async function Notes() {
   	const caller = sessionCaller(await requireSession());
   	const notes = await listNotes(getDb(), caller, { limit: 50 });
   	return <NoteList notes={notes.data} />;
   }
   ```

4. A sidebar entry: `ITEMS` in `src/components/app/app-sidebar.tsx`, with
   its label under `App.nav` in the messages (the label's type comes from
   there).
5. `params` and `searchParams` are read inside `<Suspense>` too: Next.js
   shares one prefetched shell between all links to a route.

## Check

```sh
pnpm typecheck && pnpm test && pnpm lint
```

Open the page in both locales (`/about` and `/fr/about`) with `pnpm dev`. For
a public page, check `/sitemap.xml` and `/llms.txt` list it.

Wersje

RepozytoriumWynikLicencja
Ta strona · TurbineKit/turbinekit100MIT
steamfield/stacks96Apache-2.0
steamfield/stacks86Apache-2.0
steamfield/stacks86Apache-2.0
steamfield/stacks86Apache-2.0

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

  • 100add-locale
    Dodaje nowy język do projektu TurbineKit: stronę, e-maile, strony prawne, dokumentację API i baner zgody.
  • 100add-email
    Dodaje e-mail transakcyjny do projektu TurbineKit: szablon React Email z tekstami we wszystkich językach i wysyłkę.
  • 100web-page
    Tworzy szkielet nowej strony, trasy lub sekcji panelu w aplikacji Lumen Next.js.
  • 100set-up-seo
    Przygotowuje publiczną stronę pod wyszukiwarki i silniki odpowiedzi: indeksowalność w HTML, metadane, JSON-LD, sitemapę i robots.txt.
  • 100add-seo
    Dodaje podstawy SEO do strony SPA Power Pages: robots.txt, sitemap.xml, meta tagi, tagi Open Graph i konfigurację favicon.
  • 100seo
    Zbiera wiedzę o SEO i GEO dla Next.js 15 App Router: kod robots, sitemap, metadanych i JSON-LD, Core Web Vitals, wytyczne Google oraz przekierowanie do wyspecjalizowanych skilli seo.

Uwagi i zgłoszenia

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