Programowanie · Budowanie i kod
astro
/astro
Podpowiada, jak w Astro 7 dla projektów ONE podłączać wtyczki, umieszczać OneChat i OneTrack oraz działać na Cloudflare SSR.
Dla kogo
Ocena i bezpieczeństwo
95/ 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ść30 / 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 28.09.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
Podpowiada, jak w Astro 7 dla projektów ONE podłączać wtyczki, umieszczać OneChat i OneTrack oraz działać na Cloudflare SSR.
Oryginalny opis (EN)
Astro 7 conventions for ONE sites — plugin wiring via one.config.ts, OneChat/OneTrack placement, Cloudflare SSR. Invoke when editing .astro files or astro.config.mjs.
Jak działa
- Config is the control surface
- OneChat / OneTrack placement
- SSR on Cloudflare
- Don't
Sekcje z nagłówków SKILL.md, w oryginale · 41 linii, 163 słów
Podgląd SKILL.md
---
name: astro
description: Astro 7 conventions for ONE sites — plugin wiring via one.config.ts, OneChat/OneTrack placement, Cloudflare SSR. Invoke when editing .astro files or astro.config.mjs.
---
# Astro in ONE sites
## Config is the control surface
All ONE wiring lives in `one.config.ts` via `defineOne({ backend, brand, plugins })`. `astro.config.mjs` imports it as an integration:
```js
import oneIntegration from './one.config.ts'
export default defineConfig({ integrations: [react(), oneIntegration] })
```
Add a capability by adding a plugin factory to `plugins: []`, not by writing bespoke code.
## OneChat / OneTrack placement
The served chat/track scripts mount once, in the layout:
```astro
---
import { OneChat } from '@oneie/plugin-chat'
import { OneTrack } from '@oneie/plugin-track'
---
<Layout title="Home">
<OneTrack ws="your-workspace" slot="head" />
<slot />
<OneChat agent="your-agent" slot="footer" />
</Layout>
```
These emit `<script async src="https://one.ie/...">` tags — the engine is served, never bundled.
## SSR on Cloudflare
`output: 'server'` + the `@astrojs/cloudflare` adapter. API routes (`src/pages/api/*.ts`) return a `Response`. Read ONE data via `oneClient()` (see the `sdk` skill).
## Don't
- Don't add ONE imports to `src/components/ui/` (shadcn primitives stay pure).
- Don't bundle chat/track engine source — use the plugin components.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · one-ie/one | 95 | MIT |
| ericrisco/rsc-harness | 100 | MIT |
| TerminalSkills/skills | 100 | Apache-2.0 |
| claude-dev-suite/claude-dev-suite | 100 | MIT |
| G1Joshi/Agent-Skills | 100 | MIT |
| chrishuffman5/domain-expert | 100 | MIT |
| PIXARTSeu/Synapse | 100 | AGPL-3.0 |
| pingqLIN/skill-0 | 100 | MIT |
| dkbnull/hello-skill | 96 | MIT |
Migawka bazy z 28.10.2026 · wersja paczki 948d04bbb8b7 (skrót SHA-256 całej paczki)
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100astro-ops
Wspiera pracę z Astro: architektura wysp, kolekcje treści, strategie renderowania i wdrożenie, m.in. na Cloudflare, z view transitions i adapterami. - 90astro-i18n
Wdraża i18n w Astro: routing lokalizacji, getRelativeLocaleUrl i getAbsoluteLocaleUrl, Astro.currentLocale oraz hreflang z mapą witryny. - 100astro-db
Obsługuje operacje bazodanowe w projekcie Astro przez Astro DB: defineDb, defineTable, db/config.ts i Turso. - 90astro-guide
Pomaga pisać i rozbudowywać strony w Astro: wyspy, kolekcje treści, layouty, MDX i optymalizację obrazów. - 100cloudflare-workers-frameworks
Integruje frameworki z Cloudflare Workers: Hono, Remix, Next.js, Astro, SvelteKit, Qwik i Nuxt, w tym routing, SSR, zasoby statyczne i wdrożenie brzegowe. - 90frontend-astro-architecture
Projektuje strony Astro z domyślnie zerowym JavaScriptem, wyspami z dyrektywami client, routingiem plików i kolekcjami treści ze schematami Zod.