Install any skill in seconds. Free to start, no credit card required.
Get Started Free →This skill covers the generation routes for starting, streaming, canceling, downloading, and previewing. Trigger: When generating content.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -62% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -67% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -58% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -30% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -27% | 0% |
<!-- L1:START -->
This skill covers the generation routes for starting, streaming, canceling, downloading, and previewing.
Trigger: When generating content. <!-- L1:END -->
<!-- L2:START -->
| Task | Pattern | |------|---------| | Start generation | start_generation() | | Stream generation | stream_generation() |
<!-- L2:END -->
<!-- L3:START -->
Initiates the generation process by calling the start_generation function.
pythonfrom apps.server.app.routes.generate import start_generation result = start_generation(data)
Streams the ongoing generation process using the stream_generation function.
pythonfrom apps.server.app.routes.generate import stream_generation for chunk in stream_generation(generation_id): process_chunk(chunk)
bashdocker-compose up python apps/server/app/main.py
Starting a generation without validating input can lead to errors and unexpected behavior.
python# BAD start_generation(None)
<!-- L3:END -->
Other measured skills in the registry, with their headline benchmark lift.