generators-variable-rewards

Create configurable variable rewards systems with daily spins and mystery boxes.

4|1|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/AutisticAF/claude-code-apple-dev-plugin --skill generators-variable-rewards
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generators-variable-rewards
Source: https://github.com/AutisticAF/claude-code-apple-dev-plugin/tree/main/skills/generators-variable-rewards
Command: npx skills add https://github.com/AutisticAF/claude-code-apple-dev-plugin --skill generators-variable-rewards

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creates a configurable variable rewards system to manage daily spins, mystery boxes, and bonus rewards, enabling scalable engagement without over-claim risk.

Core Features & Use Cases

  • Configurable reward pool: Weighted rarity with seedable RNG for deterministic testing and reproducible experiments.
  • Cap enforcement: Daily and weekly caps with time-based resets to prevent over-engagement.
  • Persistence & history: Tracks claims using SwiftData and provides queryable reward history by day.
  • UI templates: Ready-to-use components for daily spins, mystery boxes, and reward summaries.

Quick Start

Create a RewardPool (optionally with a fixed seed for tests), initialize a RewardManager with your SwiftData context, and invoke claimDailySpin to grant a reward.

Frequently Asked Questions about generators-variable-rewards

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

FAQPage Schema
How do I implement variable rewards for daily engagement in Swift?

Variable rewards for daily engagement are implemented by configuring a weighted RewardPool and using a RewardManager to enforce daily/weekly caps and track claims via SwiftData persistence. You invoke claimDailySpin to grant randomized rewards while preventing over-claim risk.

Can I use seeded random number generation for deterministic testing of reward pools in iOS?

Yes, you can use seeded random generation for deterministic testing by initializing your configurable reward pool with a fixed seed value. This enables reproducible experiments and reliable testing of weighted rarity outcomes across daily spins and mystery boxes.

How do I enforce daily and weekly caps on app gamification rewards?

Daily and weekly caps on gamification rewards are enforced through time-based resets managed by the RewardManager. This prevents over-engagement by tracking claims and automatically blocking additional reward grants until the designated time window resets.

Does this variable rewards system work with SwiftData for persistence and history tracking?

Yes, the variable rewards system works with SwiftData by initializing the RewardManager with your SwiftData context. It tracks claim records and provides queryable reward history by day, ensuring all granted daily spins and mystery boxes are persisted across sessions.

What is the best way to add mystery boxes and daily spins to a macOS app?

The best way to add mystery boxes and daily spins to a macOS app is by using ready-to-use UI templates integrated with a pluggable reward pool. This provides weighted rarity rewards while adapting natively to iOS/macOS Swift templates for seamless user engagement.