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 3mo 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.
- 3mo ago First seen · 83 lines · 32 tokens per session scan A fc3a6783b9f8
usegenerationstream-hook is a skill published in the GitHub repository JNZader/repoforge (4 stars, last pushed 2mo 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.
usegenerationstream-hook compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| usegenerationstream-hookJNZader/repoforge | Skill | 4 | 2mo ago | MIT | A | 32 | Claude Code |
| frontend-component-patternscontactandrewchl-wq/turtle-mcp | Skill | 2 | 5mo ago | MIT | A | 63 | Claude Code |
| blossom-carouselcontactandrewchl-wq/turtle-mcp | Skill | 2 | 5mo ago | MIT | A | 59 | Claude Code |
| frontend-patternsronmkr/PromptBook | Skill | 2 | 6mo ago | Apache-2.0 | A | 24 | Claude Code, Codex |
| react-patternsronmkr/PromptBook | Skill | 2 | 6mo ago | Apache-2.0 | A | 49 | Claude Code, Codex |
| react-testingronmkr/PromptBook | Skill | 2 | 6mo ago | Apache-2.0 | A | 59 | Claude Code, Codex |
| motion-patternsronmkr/PromptBook | Skill | 2 | 6mo ago | Apache-2.0 | A | 42 | Claude Code, Codex |