rshankras/claude-code-apple-skills/announcement-banner
Claude Code and agent skill by rshankras/claude-code-apple-skills
- community
Checking that the SKILL.md file is still in the repository.
Generates an in-app announcement banner system with remote configuration, scheduling, deep link actions, and dismiss tracking. Use when user wants in-app banners, promotional notices, maintenance alerts, or contextual announcements.
Install
npx vskill@latest install rshankras/claude-code-apple-skills/announcement-bannerSKILL.md
Announcement Banner Generator
Generate a configurable in-app announcement/banner system that displays contextual messages (maintenance alerts, new feature highlights, promotions) from remote config or local definitions. Supports dismissal, deep link actions, and scheduling.
When This Skill Activates
Use this skill when the user:
- Asks to "add announcement banner" or "in-app banner"
- Wants "app announcement" or "notification banner"
- Mentions "promotional banner" or "promo banner"
- Asks about "maintenance notice" or "maintenance alert"
- Wants "in-app messaging" or "contextual banners"
- Asks to "show announcements" or "display alerts to users"
- Mentions "feature highlight banner" or "what's new banner"
Pre-Generation Checks
1. Project Context Detection
- [ ] Check Swift version (requires Swift 5.9+)
- [ ] Check deployment target (iOS 16+ / macOS 13+)
- [ ] Check for @Observable support (iOS 17+ / macOS 14+)
- [ ] Identify source file locations
2. Conflict Detection
Search for existing banner/toast code:
If third-party library found (Firebase In-App Messaging, Braze, Intercom):
- Ask if user wants to replace or keep it
- If keeping, don't generate — advise on integration patterns instead
3. Deep Linking Detection
Check for existing deep linking setup:
If deep linking exists, integrate with it. If not, generate standalone action handling.
Configuration Questions
Ask user via AskUserQuestion:
- Banner position?
- Top (slides in from top) — recommended for alerts
- Bottom (slides in from bottom)
- Floating (centered overlay with dimmed background)
- Content source?
- Local only (hardcoded announcements in code)
- Remote JSON (fetch from server endpoint)
- Both (remote with local fallbacks) — recommended
- Action type?
- Deep link (navigate to in-app screen)
- URL (open in Safari/SFSafariViewController)
- Dismiss only (informational, no action button)
- All of the above — recommended
- Include scheduling (start/end dates)?
- Yes (time-limited announcements with date ranges) — recommended
- No (always-active until dismissed)
Generation Process
Step 1: Read Templates
Read templates.md for production Swift code.
Step 2: Create Core Files
Generate these files:
Announcement.swift— Model with style, action, priority, schedulingAnnouncementManager.swift— @Observable manager: loads, filters, tracks dismissalsAnnouncementProvider.swift— Protocol + local/remote implementations with caching
Step 3: Create UI Files
AnnouncementBannerView.swift— SwiftUI banner with style-aware colors and animationsAnnouncementBannerModifier.swift— ViewModifier for overlay placement and action routing
Step 4: Create Optional Files
Based on configuration:
AnnouncementScheduler.swift— If scheduling selected (date range filtering, timezone handling)
Step 5: Determine File Location
Check project structure:
- If
Sources/exists ->Sources/AnnouncementBanner/ - If
App/exists ->App/AnnouncementBanner/ - Otherwise ->
AnnouncementBanner/
Output Format
After generation, provide:
Files Created
Integration Steps
Add banner overlay to root view:
With custom position:
With deep link action handler:
Define local announcements:
Fetch from remote config:
Testing
Common Patterns
Show Maintenance Banner
Promote New Feature
Time-Limited Promotion
Gotchas
- Banner stacking — Never show multiple banners simultaneously. Use priority to determine which single banner to display. Queue others and show the next one after dismissal.
- Don't cover critical UI — Ensure the banner doesn't overlap navigation bars, tab bars, or interactive elements. Use safe area insets.
- Respect user dismissal — Persist dismissed announcement IDs so they don't reappear after app relaunch. Use UserDefaults or a lightweight store.
- Remote config caching — Cache fetched announcements to avoid network requests on every app launch. Honor cache duration but allow force-refresh.
- Date/timezone handling — Always use UTC for start/end dates in remote config. Convert to local timezone only for display purposes.
- Accessibility — Announce banner appearance with
AccessibilityNotification.Announcement. Ensure dismiss button has proper label. - Animation interruption — If a user navigates away mid-animation, ensure the banner state resets properly. Use
.tasktied to view lifecycle.
References
- templates.md — All production Swift templates
- Related:
generators/deep-linking— Deep link routing integration - Related:
generators/whats-new— What's new screen for feature highlights
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/generators/announcement-banner/SKILL.md
Popularity
- Repository stars
- 770
- Repository forks
- 74
- 7-day trend score
- 33
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rshankras/claude-code-apple-skills/announcement-banner)