docs-voice
Voice, tone, and format for the public Persist docs (`apps/docs`, built with Blume). Use when authoring or editing apps/docs prose — landing, guides, concepts, recipes, adapters, reference — or deciding headline grammar, benefit framing, competitor framing, or anti-sell wording.
- License 许可
- MIT
- 最近更新
- 2026-11-01
- Stars
- ★ 5
- Forks
- 0
01 前言 Front Matter
- name
- docs-voice
- description
- Voice, tone, and format for the public Persist docs (`apps/docs`, built with Blume). Use when authoring or editing apps/docs prose — landing, guides, concepts, recipes, adapters, reference — or deciding headline grammar, benefit framing, competitor framing, or anti-sell wording.
03 SKILL.md 正文
Docs voice — Persist docs (apps/docs, built with Blume)
Keep landing, guides, concepts, recipes, adapters, and reference reading like one voice.
Voice in one line
Senior-dev to senior-dev: concrete, API-literate, dry, honest about scope. No hype. The differentiators are radical honesty (say what's planned / diverges / was rejected) and the "when not to use it" anti-sell — keep both.
Do
- Lead with the pain, then the mechanism. "Async IndexedDB hydrates after
first paint…" → then "
toHydrationSignal+useHydratedgates the tree." - Concrete before abstract. Name localStorage / IndexedDB / zustand /
TanStack Store before the coinage "seam" /
PersistableSource. - Section headers by page type. Marketing = period-terminated benefit sentence ("One middleware, any store."); guides = action verb ("Gate UI until hydrated"); reference = precise noun; concepts = model noun + consequence.
- Card titles = the outcome; card bodies = the API.
- One idea per sentence in leads. Short claim first, then expand.
- State experimental / pre-1.0 status once per surface, one wording (see Canonical patterns).
- Sidebar icons: all-or-none per sibling list. Blume does not reserve an
icon column — sparse
sidebar.iconjaggeds labels. Guides, Concepts, Recipes, Reference leaves: none unless every peer has a natural glyph. Sectionmeta.tsicons and tab icons stay. - Adapter / listing order: core → backends → codecs → sources → frameworks → transport. Within sources: tanstack-store → zustand → jotai → valtio → mobx → pinia → redux → custom. Within frameworks: react → preact → solid → angular → vue → lit → alpine → svelte (runes → store).
Don't
- Don't open a page with a 60+ word sentence.
- Don't restate the frontmatter
descriptionin the first body sentence — the docs site rendersdescriptionas the page subtitle, so an echoing opener duplicates content. Open with a concrete scenario/pain instead. - Don't title cards with bare feature nouns ("Cross-tab") when the outcome is
the hook ("Sync tabs without a custom
storagelistener"). - Don't manufacture social proof, download counts, "trusted by", or maturity adjectives ("production-grade", "battle-tested", "world-class") at pre-1.0 — live examples, source, and the changelog are the proof.
- Don't claim Persist owns UI, focus, or a11y — consumers own rendering; Persist owns the persistence + hydration lifecycle.
- Don't hype ("blazing-fast", "revolutionary").
- Don't treat query-cache persisters as competitors — peers are store persist middlewares (zustand / redux / pinia). TanStack Store is an integration, not a rival.
- Don't invent Lucide icons for prose nav leaves to "fill out" a section — strip to none instead of decorating half the list.
Canonical patterns (use verbatim)
- Experimental disclaimer (banner / pill / callout / stability page): "Experimental — the API may change between minor releases. Pin your version."
- Pre-1.0 semver: breaking changes are expected and ship in minor
releases (
0.1→0.2), not majors. - Brand one-liner (memorable beat, not hype): "Any store, any storage, one middleware — no flash."
- Competitor set: zustand-persist, redux-persist, pinia-persist (and hand-rolled store persistence). Not TanStack Query persist-client.
Product tenets
Decisions and messaging should align with product-tenets.
Verify
content/** MDX is excluded from oxfmt; .astro is not oxfmt-managed. Build
green before commit (verify-after-each-step).
Scheduled drift sync: update-docs.
Reference
- Priming:
docs-voice-priming - Tenets:
product-tenets - Lifecycle / README surfaces:
docs-governance
04 同仓库更多 Skills
vue-persist
Gate Vue 3 UI on Persist hydration with useHydrated (shallowRef). Use in setup/effectScope when avoiding flash of default state on async backends.
svelte-store-persist
Gate Svelte store-based UI on Persist hydration with hydratedStore (Readable). Use for Svelte 3–4 or Svelte 5 apps that still use stores; runes UI → svelte-persist.
svelte-persist
Gate Svelte 5 runes UI on Persist hydration with hydratedRune (.current). Use for Svelte 5; for stores / Svelte 3–4 use svelte-store-persist.
solid-persist
Gate Solid UI on Persist hydration with useHydrated (Accessor). Use when avoiding flash of default state on async backends; read hydrated() in reactive scopes.
react-persist
Gate React UI on Persist hydration with useHydrated + toHydrationSignal. Use when avoiding flash of default state on async backends (IndexedDB), SSR snapshot true, or wiring HydrationSignal into React 18/19.
preact-persist
Gate Preact UI on Persist hydration with useHydrated (preact/compat useSyncExternalStore). Use when avoiding flash of default state on async backends or wiring HydrationSignal into Preact.