Borrowing it
Nothing to install: this file belongs to JNZader/repoforge. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/JNZader/repoforge/main/.claude/skills/frontend/useGenerationStream/SKILL.mdgit clone --depth 1 https://github.com/JNZader/repoforgeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/jnzader/repoforge/usegenerationstream)<a href="https://agentmods.dev/skills/jnzader/repoforge/usegenerationstream"><img src="https://agentmods.dev/badge/skills/jnzader/repoforge/usegenerationstream/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jnzader/repoforge/usegenerationstream"><img src="https://agentmods.dev/badge/skills/jnzader/repoforge/usegenerationstream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.00473 |
| Opus 5.5 | $0.00013 | $0.00189 |
| Sonnet 5.5 | $0.00006 | $0.00095 |
| Haiku 4.5 | $0.00003 | $0.00047 |
Grade A, and why
usegenerationstream-hook scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
usegenerationstream-hook
This skill covers patterns for managing generation streams in a React application.
Trigger: Load when using useGenerationStream for state management.
Quick Reference
| Task | Pattern |
|---|---|
| Manage stream status | StreamStatus |
| Handle step items | StepItem |
Critical Patterns (Summary)
- StreamStatus Management: Utilize
StreamStatusto track the state of the generation stream. - StepItem Handling: Use
StepItemto represent individual steps in the generation process.
Critical Patterns (Detailed)
StreamStatus Management
Utilize StreamStatus to track the state of the generation stream, allowing for responsive UI updates.
import { StreamStatus } from '@/hooks/useGenerationStream';
const status: StreamStatus = StreamStatus.RUNNING; // Example usage
StepItem Handling
Use StepItem to represent individual steps in the generation process, enabling detailed tracking of progress.
import { StepItem } from '@/hooks/useGenerationStream';
const step: StepItem = { id: 1, description: 'Initializing...' }; // Example usage
When to Use
- When managing the state of a generation process in a React component.
- When displaying progress through individual steps of a generation task.
Commands
docker-compose up
python repoforge/cli.py
Anti-Patterns
Don't: Ignore StreamState
Ignoring StreamState can lead to unresponsive UI and poor user experience.
// BAD
const state = {}; // Missing StreamState management
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 83 lines · 32 tokens per session scan A fc3a6783b9f8
usegenerationstream-hook is a skill published in the GitHub repository JNZader/repoforge (5 stars, last pushed 24d ago), licensed MIT. It adds 32 tokens to every session and 473 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
frontend-component-patterns
Patrones de componentes para React, Vue y Svelte: composición sobre herencia, estado local vs global, props vs slots, controlled vs uncontrolled, listas con keys estables, memoización dirigida, manejo de async/loading/error. Cargá al diseñar o refactorizar componentes.
blossom-carousel
Carrusel nativo con scroll horizontal + snap, sin JS pesado, gratis en táctil. Componentes para React, Vue y Svelte. Útil para landings, galerías y agencias. Cargá al construir un slider/carousel/galería horizontal.
frontend-patterns
Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.
react-patterns
React 18/19 patterns including hooks discipline, server/client component boundaries, Suspense + error boundaries, form actions, data fetching, state management decision trees, and accessibility-first composition. Use when writing or reviewing React components.
react-testing
React component testing with React Testing Library, Vitest/Jest, MSW for network mocking, accessibility assertions with axe, and the decision boundary between component tests and Playwright/Cypress end-to-end runs. Use when writing or fixing tests for React components, hooks, or pages.
motion-patterns
Production-ready animation patterns for React / Next.js — button, modal, toast, stagger, page transitions, exit animations, scroll, and layout — built on motion-foundations tokens and springs.