flurryx
БесплатноБез исполняемых скриптовНе проверенSignal-first reactive state management for Angular. Bridge RxJS streams into cache-aware stores, keyed resources, mirrored state, and replayable history. Use…
от fmflurry★ 173 звезды на GitHubОб этом скилле
flurryx
Signal-first reactive state management for Angular. RxJS in, signals out.
When to Activate
- Build/modify state with
Store,syncToStore,syncToKeyedStore - Add facades/services exposing flurryx-backed signals
- Scaffold feature modules using flurryx for async state, caching, keyed resources
- Per-entity caches via
KeyedResourceData<TKey, TValue> - Mirroring/derivation:
mirror,mirrorSelf,derive,deriveSelf,mirrorKeyed,mirrorKey,deriveKey,collectKeyed - Channel persistence, history, replay, dead-letter recovery
- Reviewing AI-generated Angular code for flurryx correctness
Imports
// main API
import {
Store, BaseStore, LazyStore,
syncToStore, syncToKeyedStore,
SkipIfCached, Loading,
clearAllStores,
mirrorKey, deriveKey, collectKeyed,
cloneValue, createSnapshotRestorePatch,
createInMemoryStoreMessageChannel,
createStorageStoreMessageChannel,
createLocalStorageStoreMessageChannel,
createSessionStorageStoreMessageChannel,
createCompositeStoreMessageChannel,
isKeyedResourceData, createKeyedResourceData, isAnyKeyLoading,
CACHE_NO_TIMEOUT, DEFAULT_CACHE_TTL_MS,
defaultErrorNormalizer,
} from 'flurryx';
import type {
ResourceState, StoreEnum, ResourceStatus, ResourceErrors,
KeyedResourceData, KeyedResourceKey,
StoreSignal, KeyedStoreSignal, KeyedResourceState, ValueOrSignal,
StoreOptions, StoreCacheInvalidateEvent,
MirrorOptions, DeriveOptions, CollectKeyedOptions,
SyncToStoreOptions, SyncToKeyedStoreOptions, ErrorNormalizer,
// history
StoreHistory, StoreHistoryEntry,
StoreDeadLetterEntry, StoreDeadLetterCommand, StoreDeadLetterMeta,
DeadLetterCommandResolverResult,
// messages
StoreMessage, StoreSnapshot, StoreMessageStatus,
UpdateStoreMessage, ClearStoreMessage, ClearAllStoreMessage,
StartLoadingStoreMessage, StopLoadingStoreMessage,
UpdateKeyedOneStoreMessage, ClearKeyedOneStoreMessage,
StartKeyedLoadingStoreMessage, EnsureKeyedSlotStoreMessage,
// channels
StoreMessageRecord, StoreMessageChannel,
StoreMessageChannelStorage, StoreMessageChannelOptions,
CompositeStoreMessageChannelOptions,
StorageStoreMessageChannelOptions,
BrowserStorageStoreMessageChannelOptions,
} from 'flurryx';
// HTTP-only — pulls @angular/common/http
import { httpErrorNormalizer } from 'flurryx/http';
Prefer flurryx. Use flurryx/http only for httpErrorNormalizer. Avoid direct @flurryx/core | @flurryx/store | @flurryx/rx unless host already depends.
Hard Rules
- Never
any - Components read signals only. Facade/service owns subscriptions + writes
- Prefer
Store.for<Config>().build()interface builder UPPER_SNAKE_CASEkeys:LIST,DETAIL,ITEMS@SkipIfCachedoutermost,@Loadingdirectly beneath- Use
@SkipIfCachedonly if cache hits are intended; else omit - Keyed resources ->
syncToKeyedStore, not hand-rolledRecordupdates - Don't subclass
BaseStoredirectly - Don't call component methods in templates -> use
computed
Core Flow
Observable -> syncToStore / syncToKeyedStore -> Store signal -> Template
ResourceState
Every slot wraps ResourceState<T>:
interface ResourceState<T> {
isLoading?: boolean;
data?: T;
status?: 'Success' | 'Error';
errors?: Array<{ code: string; message: string }>;
}
Lifecycle: idle -> loading -> Success | Error.
KeyedResourceData
Per-entity cache:
type KeyedResourceData<TKey extends string | number, TValue> =
Partial<Record<TKey, ResourceState<TValue>>>;
Helpers:
createKeyedResourceData<TKey, TValue>()->{}isKeyedResourceData(val)-> type guardisAnyKeyLoading(data)-> bool
Store Builder
Interface form (preferred)
interface ProductStoreConfig {
LIST: Product[];
DETAIL: Product;
ITEMS: KeyedResourceData<string, Item>;
}
export const ProductStore = Store.for<ProductStoreConfig>().build();
Naming: <Feature>StoreConfig + <Feature>Store. Slots are raw types; flurryx wraps in ResourceState<T>.
Enum-constrained form
const Keys = { LIST: 'LIST', DETAIL: 'DETAIL' } as const;
export const ProductStore = Store.for(Keys)
.resource('LIST').as<Product[]>()
.resource('DETAIL').as<Product>()
.build();
.build() only callable when all enum keys defined.
Fluent form
export const ProductStore = Store
.resource('LIST').as<Product[]>()
.resource('DETAIL').as<Product>()
.build();
Builder methods (all forms)
.mirror(sourceToken, sourceKey, targetKey?)-> 1:1 cross-store mirror.mirrorSelf(sourceKey, targetKey)-> alias inside same store; keys must differ.derive(sourceToken, sourceKey, targetKey?, { mapData })-> map source data into target slot.deriveSelf(sourceKey, targetKey, { mapData })-> derived alias inside same store.mirrorKeyed(sourceToken, sourceKey, { extractId }, targetKey?)-> aggregate single-entity fetches into keyed slot.build(options?: StoreOptions)-> `InjectionTo
Установить flurryx в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл flurryx?
Signal-first reactive state management for Angular. Bridge RxJS streams into cache-aware stores, keyed resources, mirrored state, and replayable history. Use when generating or modifying Angular code that uses flurryx for state management, when a write must invalidate a cached slot, or when scaffolding new feature modules that follow the flurryx facade pattern.
Как установить скилл flurryx?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл flurryx запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic