milestone-celebration
БесплатноБез исполняемых скриптовНе проверенGenerates achievement celebration UI with confetti animations, badge unlocks, progress milestones, haptic feedback, and optional share-to-social. Use when…
от rshankras★ 922 звезды на GitHubОб этом скилле
Milestone Celebration Generator
Generate a production milestone celebration system with confetti particle animations via CAEmitterLayer, achievement badge views with locked/unlocked states, a celebration overlay with spring animations, haptic feedback, and optional shareable achievement cards — all triggered automatically when users hit key thresholds.
When This Skill Activates
Use this skill when the user:
- Asks to "add celebrations" or "celebrate achievements"
- Wants "confetti animation" or "particle effects for milestones"
- Mentions "achievement badges" or "badge unlock animation"
- Asks about "milestone rewards" or "progress milestones"
- Wants to "celebrate achievement" or "trigger celebration on threshold"
- Asks about "level-up animation" or "gamification celebrations"
Pre-Generation Checks
1. Project Context Detection
- Check Swift version (requires Swift 5.9+)
- Check deployment target (iOS 17+ / macOS 14+ for
@Observable, spring animations,sensoryFeedback) - Check for
UIKitavailability (iOS —CAEmitterLayerfor confetti, haptics) - Identify source file locations
2. Conflict Detection
Search for existing celebration/animation code:
Glob: **/*Confetti*.swift, **/*Celebration*.swift, **/*Achievement*.swift, **/*Milestone*.swift, **/*Badge*.swift
Grep: "CAEmitterLayer" or "CAEmitterCell" or "UINotificationFeedbackGenerator" or "confetti" or "celebration"
If existing celebration or gamification library found (e.g., custom confetti, third-party particle libraries):
- Ask if user wants to replace or integrate with it
- If keeping, advise on best practices instead of generating
3. Platform Detection
Determine if generating for iOS (UIKit-based confetti + haptics) or macOS (Core Animation confetti, no haptics) or both (cross-platform with feature gates).
Configuration Questions
Ask user via AskUserQuestion:
Celebration type? (multi-select)
- Confetti burst (full-screen particle animation)
- Badge unlock (icon reveal with glow animation)
- Level-up (progress ring fill + title transition)
- Custom (user defines their own celebration style)
Haptic feedback?
- Yes — success haptic on celebration trigger (recommended)
- No — silent celebrations only
Shareable achievement card?
- Yes — render achievement as image for social sharing via
ShareLink - No — in-app celebration only
- Yes — render achievement as image for social sharing via
Sound effects?
- Yes — play system sound or bundled audio on celebration
- No — visual only
Generation Process
Step 1: Read Templates
Read templates.md for production Swift code.
Step 2: Create Core Files
Generate these files:
Milestone.swift— Model with id, title, description, threshold, icon, unlock state.Codable+Sendable.MilestoneTracker.swift—@Observableclass tracking progress toward milestones, checking thresholds, triggering celebrations. Persists unlock state viaUserDefaultsor file storage.ConfettiView.swift—UIViewRepresentablewrappingCAEmitterLayerfor confetti particle animation. Configurable colors, duration, density. Respects Reduce Motion.
Step 3: Create UI Files
CelebrationOverlay.swift— Full-screen overlay combining confetti + badge reveal + congratulations message. Auto-dismisses after configurable duration. UseswithAnimation(.spring).MilestoneBadgeView.swift— Individual badge view with locked/unlocked states, SF Symbol icon, progress ring for partial progress.MilestoneCollectionView.swift— Grid layout of all milestones showing locked/unlocked state with progress indicators.
Step 4: Create Optional Files
Based on configuration:
HapticManager.swift— If haptic feedback selected (thin wrapper aroundUINotificationFeedbackGenerator/UIImpactFeedbackGenerator)ShareableMilestoneCard.swift— If shareable selected (renders milestone as image viaImageRenderer+ShareLink)
Step 5: Determine File Location
Check project structure:
- If
Sources/exists ->Sources/MilestoneCelebration/ - If
App/exists ->App/MilestoneCelebration/ - Otherwise ->
MilestoneCelebration/
Output Format
After generation, provide:
Files Created
MilestoneCelebration/
├── Milestone.swift # Model with threshold, icon, unlock state
├── MilestoneTracker.swift # @Observable tracker with persistence
├── ConfettiView.swift # CAEmitterLayer confetti animation
├── CelebrationOverlay.swift # Full-screen celebration overlay
├── MilestoneBadgeView.swift # Badge with locked/unlocked + progress ring
├── MilestoneCollectionView.swift # Grid of all milestones
├── HapticManager.swift # Celebration haptics (optional)
└── ShareableMilestoneCard.swift # Achievement share card (optional)
Integration Steps
Trigger celebration on threshold:
struct WorkoutCompleteView: View {
@State private var tracker = MilestoneTracker()
@State private var
Установить milestone-celebration в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditGlobGrepBashAskUserQuestionВложенные файлы
FAQ
Что делает скилл milestone-celebration?
Generates achievement celebration UI with confetti animations, badge unlocks, progress milestones, haptic feedback, and optional share-to-social. Use when user wants to celebrate achievements, show confetti, display milestone badges, or trigger rewards on key thresholds.
Как установить скилл milestone-celebration?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл milestone-celebration запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic