agentsclimarketplace

Fetcher storage

Skill Ahoo-Wang/skills/plugins/ahoo-fetcher-skills/skills/fetcher-storage

A central aggregation repository for Agent Skills from Ahoo-Wang's open source projects.

Install
npx -y skills add Ahoo-Wang/skills --skill fetcher-storage

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when adding typed cross-environment storage with localStorage, sessionStorage, or in-memory fallback, including KeyStorage, serializers, default values, change listeners, cleanup, and cross-tab synchronization.

SKILL.md

1.8 KB, as published. Nobody here has run it

fetcher-storage

Use This Skill When

  • The task needs typed persistent key-value storage.
  • The task mentions localStorage, sessionStorage, in-memory storage, serializers, or default values.
  • The task needs storage change listeners or cross-tab synchronization.
  • The code must run across browser and non-browser environments.

Workflow

  1. Choose the storage backend first: browser storage when available, in-memory fallback for non-browser contexts or tests.
  2. Use KeyStorage for one logical value per key and pair it with an explicit serializer.
  3. Use jsonSerializer for objects and typed identity serializers only when values already have the target representation.
  4. Register listeners with the EventHandler object pattern and dispose them during cleanup.
  5. Load references/api.md for exact options, serializer patterns, and cross-tab behavior.

Key Practices

  • Keep keys stable and namespaced by app or domain.
  • Provide defaultValue when consumers should not handle missing storage explicitly.
  • Use in-memory storage for deterministic tests instead of relying on ambient browser state.

References

  • references/api.md: Detailed package API, examples, and edge-case guidance. Load it only when the task needs KeyStorage options, listener APIs, serializers, in-memory storage, cross-tab sync, installation, and quick-start examples.

Related Skills

  • $fetcher-eventbus: Use for lower-level event bus behavior behind storage listeners.
  • $fetcher-react-hooks: Use when React state should bind to KeyStorage.
  • $fetcher-cosec-auth: Use for JWT and device-id storage patterns.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.