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

eleventy-stack

/eleventy-stack

Dostarcza domyślny stos technologiczny 11ty do szybkiego budowania MVP: szkielet strony statycznej z Eleventy i Bun oraz domyślne podejście do szablonów i stylów.

Licencja
MIT
Ostatnia zmiana repozytorium
18.10.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
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 18.10.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

Dostarcza domyślny stos technologiczny 11ty do szybkiego budowania MVP: szkielet strony statycznej z Eleventy i Bun oraz domyślne podejście do szablonów i stylów.

Wyzwalacze z opisu

create a static sitebuild a content sitescaffold an 11ty projectset up Eleventy
Oryginalny opis (EN)

This skill provides the default 11ty (Eleventy) tech stack for rapid MVP development. Use when the user asks to "create a static site", "build a content site", "scaffold an 11ty project", "set up Eleventy", or when working in any project that uses 11ty with Bun. Also load when Claude is about to suggest templating, data handling, or styling approaches in an 11ty context — this skill defines the defaults.

Jak działa

  1. Core Stack
  2. Styling
  3. Data Architecture
  4. Template Architecture
  5. Data/Format Separation
  6. Configuration Pattern
  7. Deployment
  8. Code Style (enforced)
  9. Anti-patterns (never do these)
  10. Detailed Patterns
Sekcje z nagłówków SKILL.md, w oryginale · 108 linii, 658 słów
Podgląd SKILL.md
---
name: eleventy-stack
description: >
  This skill provides the default 11ty (Eleventy) tech stack for rapid MVP development.
  Use when the user asks to "create a static site", "build a content site", "scaffold
  an 11ty project", "set up Eleventy", or when working in any project that uses 11ty
  with Bun. Also load when Claude is about to suggest templating, data handling, or
  styling approaches in an 11ty context — this skill defines the defaults.
---

# 11ty MVP Stack

Default tech stack and patterns for Eleventy-based rapid MVPs. These are opinionated defaults — deviations require explicit discussion (see architecture-decisions skill).

## Core Stack

| Layer | Technology | Version | Notes |
|-------|-----------|---------|-------|
| Framework | Eleventy (11ty) | 3.x | Static site generator |
| Templating | Nunjucks | — | Primary template engine |
| Runtime | Bun | 1.1+ | Package manager AND runtime (not Node) |
| Validation | Zod | 4.x | Schema validation for data files |
| Client JS | Vanilla JavaScript | — | No React, no Vue, no framework |
| Language | JavaScript | — | ESM modules in scripts, no TypeScript in 11ty projects |

## Styling

| Concern | Default |
|---------|---------|
| CSS framework | Tailwind CSS 4 via `@tailwindcss/cli` |
| Typography | `@tailwindcss/typography` for prose content |
| Theme | Shared `tooling/theme.css` with OKLCH `@theme` directive |
| Dark mode | Tailwind dark mode with `[data-theme]` selector |
| Build step | `@tailwindcss/cli` processes `src/css/main.css` → `_site/css/main.css` |

Never use CSS-in-JS. Never use PostCSS as a plugin — use `@tailwindcss/cli` directly.

## Data Architecture

11ty projects follow a strict data pipeline:

1. **Human-authored data** → JSON files in `src/_data/` (e.g., `recipes.json`, `products.json`)
2. **Validation** → Zod schemas in `src/schemas/` validate data on build
3. **Generation** → Scripts in `scripts/` transform validated data into derived data files
4. **Build** → 11ty reads both authored and derived data, generates static HTML
5. **Client runtime** → Vanilla JS loads data into `window.*` for interactivity

### The validate → generate → build pipeline

This is critical. Every data change must go through:
```
Edit data → bun run validate → bun run generate → bun run build
```

The `prebuild` script in `package.json` should run validation automatically.

## Template Architecture

| Directory | Purpose |
|-----------|---------|
| `src/_includes/layouts/` | Page layouts (base.njk, etc.) |
| `src/_includes/components/` | Reusable template partials |
| `src/_includes/macros/` | Nunjucks macros for repetitive patterns |
| `src/_data/` | Global data files (JSON) |
| `src/schemas/` | Zod validation schemas |
| `src/css/` | Tailwind CSS entry point (imports shared theme) |
| `src/js/` | Client-side vanilla JavaScript |
| `scripts/` | Build utilities (validate, generate, transform) |

## Data/Format Separation

11ty enforces data/format separation by convention:
- **Data** (`src/_data/`): JSON files containing content — this is where all content lives
- **Format** (`src/_includes/`): Nunjucks layouts, components, macros — these only define presentation
- Never hardcode content in templates — always extract to `_data/` files

## Configuration Pattern

The `.eleventy.js` config should:
- Set passthrough copy for `src/js`, `src/assets` (NOT `src/css` — processed by Tailwind CLI)
- Set `env` global data (defaults to "development")
- Add custom filters (`formatMinutes`, `json`, etc. as needed)
- Set directory config: input `src`, output `_site`, includes `_includes`, data `_data`
- Default to Nunjucks for all template formats

## Deployment

Default to GitHub Pages via GitHub Actions:
1. Trigger on push to `main`
2. Setup Bun
3. `bun install` → `bun run validate` → `bun run build`
4. Upload `_site/` artifact
5. Deploy to GitHub Pages

## Code Style (enforced)

- Data files use kebab-case slugs
- Nunjucks templates use component-style naming
- JavaScript files use camelCase functions
- Schemas mirror data file structure exactly
- No bundlers — files are copied as-is

## Anti-patterns (never do these)

- Never use React or any JS framework in 11ty projects
- Never use CSS-in-JS or styled-components
- Never use PostCSS as a plugin — use `@tailwindcss/cli` for Tailwind builds
- Never use TypeScript in 11ty projects — plain JavaScript
- Never skip validation before build
- Never put derived data in `_data/` manually — always generate via scripts
- Never use Node.js — use Bun for all scripts
- Never hardcode content in templates — always extract to `_data/` files

## Detailed Patterns

For complete file templates, configuration examples, and directory structures, read `references/eleventy-patterns.md`.
Pliki w paczce (2)
  • SKILL.md 5 KB
  • references/eleventy-patterns.md 7 KB

Wersje

W bazie nie ma innych skilli o nazwie eleventy-stack.

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

Pobrania w ostatnich 30 dniach: 2 · ranking

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

Podobne skille

  • 100nextjs-stack
    Zapewnia domyślny stos monorepo Next.js z Bun workspaces do szybkiego MVP: tworzenie aplikacji, dashboardów i stron oraz dobór bibliotek UI, formularzy i stylowania.
  • 100docs-site
    Tworzy szkielet witryny dokumentacji w Markdown na Eleventy: układ bazowy, pliki danych, workflow wdrożenia na GitHub Pages i konfigurację kopiowania plików.
  • 100release-docs
    Aktualizuje metadane dokumentacji wtyczki po zmianie komponentów: opis w plugin.json, liczniki w README i kontrolę buildu Eleventy.
  • 100create-gh-pages-site
    Tworzy działającą stronę na GitHub Pages z zatwierdzonego szablonu (VitePress, Astro, Eleventy, React z Vite, Jekyll), wstawia poprawną ścieżkę bazową i dodaje wdrażanie przez GitHub Actions.
  • 95dev-init
    Prowadzi rozmowę, która ustala stos technologiczny projektu, tworzy plik kontekstu i po zatwierdzeniu wykonuje szkielet projektu.
  • 100stack-selection
    Wybiera stack technologiczny z dwóch lub trzech opcji według utrzymywalności przez agentów, kosztu i czasu do MVP.

Uwagi i zgłoszenia

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