What problem does it solve?
This Skill streamlines the complex process of developing gamification features for TogetherOS, such as badges, skill trees, and visual progression. It ensures consistent architecture and reduces the manual effort involved in creating entity models, API handlers, UI components, and tests across the module.
Core Features & Use Cases
- Full-Stack Module Development: Automates the creation of domain models, data repositories, API endpoints, UI components, and unit tests for reward features.
- Architectural Consistency: Enforces TogetherOS's domain-driven architecture, ensuring new reward features integrate seamlessly.
- Comprehensive Documentation: Guides the update of module specifications, data models, and progress tracking, keeping the project documentation current.
- Use Case: When tasked with adding a new "Community Heart" badge that unlocks specific capabilities, this Skill will guide and automate the creation of all necessary code artifacts, from the database entity to the frontend display, and ensure all related documentation is updated.
Quick Start
To define a new 'First Mutual Aid' badge for the 'community_heart' path:
Use Skill: rewards-module-builder
Inputs:
reward_type: badge
name: 'First Mutual Aid'
description: 'Awarded for completing your first mutual aid transaction.'
icon: '🤝'
path: 'community_heart'
criteria: { type: 'mutual_aid_count', threshold: 1 }