repoforge: Skill for Claude Code

.claude/skills/frontend/useGenerationStream/SKILL.md

usegenerationstream-hook is a skill for Claude Code from JNZader/repoforge. It costs 32 tokens per session (473 once invoked), scanned A, original, MIT.

A React guide for managing the state of a streamed generation process. React is a JavaScript library for building user interfaces, and a stream delivers results over time.

In plain words
What is it for?
Use it with the useGenerationStream hook to manage stream status and represent progress steps with StreamStatus and StepItem.
Why use it?
It helps an interface show whether generation is running and track the individual steps completed so far.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is JNZader/repoforge's own configuration. It tells Claude Code how to work on repoforge itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything repoforge configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python repoforge/cli.py.

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/JNZader/repoforge/main/.claude/skills/frontend/useGenerationStream/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/JNZader/repoforge

Made for: Claude Code.

Wrote 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.

agentmods badge for usegenerationstream-hook

README.md
[![agentmods](https://agentmods.dev/badge/skills/jnzader/repoforge/usegenerationstream/github.svg)](https://agentmods.dev/skills/jnzader/repoforge/usegenerationstream)
Your own site
<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.

agentmods 80×15 button for usegenerationstream-hook

Your own site · 80×15
<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>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 473 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 1mo ago against content hash fc3a6783b9f8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.claude/skills/frontend/useGenerationStream/SKILL.md · 83 lines

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 StreamStatus to track the state of the generation stream.
  • StepItem Handling: Use StepItem to 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
Changes

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.

  1. 1mo ago First seen · 83 lines · 32 tokens per session scan A fc3a6783b9f8

Subscribe to this mod's changes

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.

Related

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.

contactandrewchl-wq/turtle-mcp · 63 tokens

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.

contactandrewchl-wq/turtle-mcp · 59 tokens

frontend-patterns

Frontend development patterns for React, Next.js, state management, performance optimization, and UI best practices.

ronmkr/PromptBook · 24 tokens

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.

ronmkr/PromptBook · 49 tokens

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.

ronmkr/PromptBook · 59 tokens

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.

ronmkr/PromptBook · 42 tokens