mcpbeat Sign in

Review Prompt Skill for Claude

Generates smart App Store review prompt infrastructure with configurable conditions and platform detection. Use when user wants to add review prompts, request ratings, or implement StoreKit reviews.

6k tokens
context cost
the whole folder, loaded on every use
5
files
instructions only
0
copies elsewhere
how many repositories repackaged it
585
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/rshankras/claude-code-apple-skills --skill review-prompt

The instruction itself

21 sections, as written by the author

Review Prompt Generator

Generate smart App Store review prompting with configurable trigger conditions, platform detection, and proper timing logic.

When This Skill Activates

Use this skill when the user:

  • Asks to "add review prompt" or "request reviews"
  • Mentions "App Store rating" or "app reviews"
  • Wants to "prompt for ratings" or "ask for reviews"
  • Asks about "StoreKit review" or "SKStoreReviewController"

Platform Detection (CRITICAL)

This skill only applies to App Store distributed apps.

iOS Apps

  • Always applicable (iOS apps require App Store)

macOS Apps

Detection steps:

  • Check for com.apple.application-identifier entitlement
  • Look for Mac App Store related code
  • If unclear, ASK THE USER:
  • "Is this app distributed via Mac App Store or direct download?"

If NOT App Store:

  • Explain that StoreKit reviews only work for App Store apps
  • Offer alternative: In-app feedback form
  • Skip generation or generate feedback form instead

Pre-Generation Checks

1. Project Context Detection

  • [ ] Determine platform (iOS/macOS)
  • [ ] Check distribution method (App Store vs direct)
  • [ ] Search for existing review prompt code
  • [ ] Identify App entry point

2. Conflict Detection

Search for existing implementations:

Grep: "requestReview" or "SKStoreReviewController" or "StoreKit"
Glob: **/*Review*.swift

If found, ask user:

  • Replace existing implementation?
  • Enhance with better timing logic?

Configuration Questions

Ask user via AskUserQuestion:

  • Trigger conditions? (multi-select)
  • Session count (e.g., after 5 sessions)
  • Days since install (e.g., after 3 days)
  • Positive actions (e.g., after completing a task)
  • Feature usage (e.g., after using key feature 3 times)
  • Minimum thresholds?
  • Sessions before first prompt: 3-5 (default: 3)
  • Days before first prompt: 2-7 (default: 3)
  • Cool-down period?
  • Days between prompts: 30-90 (default: 60)
  • Apple limits to 3 prompts/year anyway
  • Debug mode?
  • Include debug override for testing?

Generation Process

Step 1: Create Core Files

Generate these files:

  • ReviewPromptManager.swift - Core logic and timing
  • ReviewPromptCondition.swift - Configurable conditions
  • ReviewPromptStorage.swift - Persistence for tracking

Step 2: Determine File Location

Check project structure:

  • If Sources/ exists → Sources/Reviews/
  • If App/ exists → App/Reviews/
  • Otherwise → Reviews/

Step 3: Add Platform Guards

For macOS, include:

#if os(macOS)
// Check if running from App Store
guard Bundle.main.appStoreReceiptURL?.lastPathComponent != "sandboxReceipt" else {
    // Running in sandbox but not App Store - skip
    return
}
#endif

Output Format

After generation, provide:

Files Created

Sources/Reviews/
├── ReviewPromptManager.swift      # Core logic
├── ReviewPromptCondition.swift    # Conditions enum
└── ReviewPromptStorage.swift      # UserDefaults persistence

Integration Steps

Option 1: Automatic (Recommended)

@main
struct MyApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
                .onAppear {
                    ReviewPromptManager.shared.incrementSession()
                }
        }
    }
}

// In relevant places (after positive actions):
ReviewPromptManager.shared.recordPositiveAction()
ReviewPromptManager.shared.requestReviewIfAppropriate()

Option 2: Manual Trigger Points

// After user completes a significant action
func completeTask() {
    // ... task completion logic ...

    ReviewPromptManager.shared.recordPositiveAction()
    ReviewPromptManager.shared.requestReviewIfAppropriate()
}

Apple's Guidelines

  • System limits to 3 prompts per 365-day period
  • Prompt appears at system's discretion (not guaranteed)
  • Never prompt after negative experience
  • Don't prompt on first launch
  • Don't interrupt user's workflow

Testing Instructions

  • Debug Mode: Set ReviewPromptManager.debugAlwaysShow = true
  • Reset State: Call ReviewPromptStorage.reset()
  • Simulate: Increment sessions/actions in debug builds
  • Note: Actual prompt may not show in Simulator

App Store Review URL (Alternative)

For custom UI or macOS direct distribution:

// Deep link to App Store review page
let appID = "YOUR_APP_ID"
let url = URL(string: "https://apps.apple.com/app/id\(appID)?action=write-review")!
NSWorkspace.shared.open(url)  // macOS
UIApplication.shared.open(url)  // iOS

References

  • storekit-patterns.md - Best practices and timing strategies
  • templates/ - All template files

Other skills for the same job

different authors, same section of the catalogue
Skill Creator
by anthropics
vendor ×10

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

56k tokens scripts
Skill Creator
by vercel-labs
vendor ×10

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

12k tokens scripts
Skill Creator
by JayZeeDesign
×9

Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.

10k tokens scripts
Template Skill
by JayZeeDesign
×7

Replace with description of the skill and when Claude should use it.

35 tokens
Dispatching Parallel Agents
by ZhanlinCui
×5

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

2k tokens
Skill Development
by anthropics
vendor ×4

This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.

9k tokens
Find Skills
by sanity-io
vendor ×4

Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.

1k tokens
Writing Skills
by ZhanlinCui
×4

Use when creating new skills, editing existing skills, or verifying skills work before deployment

26k tokens scripts

How to use it

Copy the folder

Take rshankras/review-prompt from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.