agentsclimarketplace

Fetcher llm streaming

Skill Ahoo-Wang/skills/plugins/ahoo-fetcher-skills/skills/fetcher-llm-streaming

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

Install
npx -y skills add Ahoo-Wang/skills --skill fetcher-llm-streaming

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 consuming Server-Sent Events, LLM token streams, OpenAI-style streaming chat responses, Fetcher eventstream helpers, response prototype extensions, stream termination detection, result extractors, or ReadableStream async iteration.

SKILL.md

1.9 KB, as published. Nobody here has run it

fetcher-llm-streaming

Use This Skill When

  • The task involves SSE, EventSource-style data, streaming responses, or token-by-token UI updates.
  • The task mentions eventStream, jsonEventStream, textEventStream, or ReadableStreamAsyncIterable.
  • The task needs OpenAI-style completion chunks or DONE termination handling.
  • The task needs a decorator result extractor for streaming endpoints.

Workflow

  1. Import @ahoo-wang/fetcher-eventstream for side-effect prototype helpers when using Response extensions.
  2. Use standalone conversion functions when prototype mutation is undesirable.
  3. Handle stream conversion errors explicitly with EventStreamConvertError.
  4. Detect termination with the package helper instead of ad hoc string checks.
  5. Load references/api.md for pipeline details, OpenAI streaming examples, and UI update patterns.

Key Practices

  • Keep parsing, termination detection, and UI state updates as separate steps.
  • Use async iteration over streams to avoid buffering full responses in memory.
  • When pairing with decorators, configure result extractors at the endpoint boundary.

References

  • references/api.md: Detailed package API, examples, and edge-case guidance. Load it only when the task needs prototype extensions, standalone stream functions, SSE structures, termination handling, OpenAI streaming examples, and React UI update snippets.

Related Skills

  • $fetcher-openai-client: Use for higher-level OpenAI chat client setup.
  • $fetcher-decorator-service: Use when the streaming endpoint is declared with decorators.
  • $fetcher-react-hooks: Use when streaming data drives React state.

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.