add-fresh

Add time-bound freshness parameters to Cubit mix calls for cache-aware data loading.

7|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/marcglasberg/bloc_superpowers --skill add-fresh
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: add-fresh
Source: https://github.com/marcglasberg/bloc_superpowers/tree/main/.claude/skills/add-fresh
Command: npx skills add https://github.com/marcglasberg/bloc_superpowers --skill add-fresh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Data loading in Cubits can trigger repeated executions when data is unchanged, leading to unnecessary API calls and wasted resources.

Core Features & Use Cases

  • Adds a fresh parameter to mix calls to enforce time-bound re-execution.
  • Supports configuring freshFor durations and per-key freshness to optimize per-scenario caching.
  • Provides force-refresh and retry options to handle exceptional cases.

Quick Start

Identify a Cubit method that loads data and wrap its loading with mix, adding fresh: fresh to enable time-bound caching.

Frequently Asked Questions about add-fresh

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent redundant API calls in Flutter Cubit data loading?▼

Prevent redundant API calls in Flutter Cubit data loading by wrapping methods with mix calls and passing the fresh parameter to enforce time-bound caching that skips repeated executions.

What is freshness caching and when should I use it in Cubits?▼

Freshness caching is a time-bound caching mechanism that skips repeated executions when data is unchanged. Use it in Cubits to avoid unnecessary API calls and wasted resources during data loading operations.

How do I configure cache duration and force-refresh for Cubit methods?▼

Configure cache duration by setting freshFor durations in your mix calls, and use force-refresh options to bypass the cache and handle exceptional cases when time-bound data loads need immediate updates.

Can I apply per-key freshness to optimize Flutter Cubit caching?▼

Yes, you can apply per-key freshness in Flutter Cubit caching to optimize per-scenario data loads. This allows different cache durations for specific keys within the same Cubit method.

Does Flutter freshness caching support retry options for failed data loads?▼

Yes, Flutter freshness caching supports retry options to handle exceptional cases. When a Cubit data load fails, the retry mechanism works alongside time-bound caching to ensure data consistency.