home / skills / phrazzld / claude-config / check-virality

check-virality skill

/skills/check-virality

This skill audits viral growth infrastructure by verifying social metadata, OG images, sharing mechanics, referrals, and distribution readiness to surface

npx playbooks add skill phrazzld/claude-config --skill check-virality

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
4.7 KB
---
name: check-virality
description: |
  Audit viral growth: social sharing, OG images, referrals, distribution.
  Outputs structured findings. Use log-virality-issues to create issues.
  Invoke for: shareability audit, referral review, distribution analysis.
effort: high
---

# /check-virality

Audit viral growth infrastructure. Output findings as structured report.

## What This Does

1. Check social metadata (OG tags, Twitter cards)
2. Check dynamic OG image generation
3. Check share mechanics
4. Check referral system
5. Check distribution readiness
6. Output prioritized findings (P0-P3)

**This is a primitive.** It only investigates and reports. Use `/log-virality-issues` to create GitHub issues or `/fix-virality` to fix.

## Process

### 1. Social Metadata Check

```bash
# OG tags present?
grep -rE "og:title|og:description|og:image" --include="*.tsx" --include="*.ts" app/ src/ pages/ 2>/dev/null | head -5

# Twitter cards?
grep -rE "twitter:card|twitter:title|twitter:image" --include="*.tsx" --include="*.ts" app/ src/ pages/ 2>/dev/null | head -5

# Root metadata?
grep -q "generateMetadata\|metadata.*:" app/layout.tsx 2>/dev/null && echo "✓ Root metadata" || echo "✗ Root metadata missing"
```

### 2. Dynamic OG Images Check

```bash
# OG image endpoint?
[ -f "app/api/og/route.tsx" ] || [ -d "pages/api/og" ] && echo "✓ OG image endpoint" || echo "✗ OG image endpoint"

# Using @vercel/og?
grep -q "@vercel/og" package.json 2>/dev/null && echo "✓ @vercel/og installed" || echo "✗ @vercel/og not installed"

# Dynamic images per content type?
grep -rE "generateMetadata.*images" --include="*.tsx" app/ 2>/dev/null | head -5
```

### 3. Share Mechanics Check

```bash
# Share components?
grep -rE "share|Share|navigator\.share" --include="*.tsx" --include="*.ts" components/ src/ 2>/dev/null | head -5

# Shareable URLs?
grep -rE "shareUrl|shareLink|getShareUrl|clipboard\.writeText" --include="*.tsx" --include="*.ts" . 2>/dev/null | grep -v node_modules | head -5

# Web Share API?
grep -q "navigator.share" components/**/*.tsx 2>/dev/null && echo "✓ Web Share API" || echo "✗ Web Share API"
```

### 4. Referral System Check

```bash
# Referral codes?
grep -rE "referral|invite|inviteCode|refCode" --include="*.tsx" --include="*.ts" --include="*.sql" . 2>/dev/null | grep -v node_modules | head -5

# Attribution tracking?
grep -rE "utm_|referrer|attribution" --include="*.tsx" --include="*.ts" . 2>/dev/null | grep -v node_modules | head -5

# Referral tracking in database?
grep -rE "referral|invitation" --include="*.ts" convex/ schema/ prisma/ 2>/dev/null | head -5
```

### 5. Distribution Readiness Check

```bash
# Launch assets?
[ -f "public/product-hunt-logo.png" ] || [ -d "public/launch" ] && echo "✓ Launch assets" || echo "✗ Launch assets"

# Press kit?
[ -d "public/press" ] || [ -d "public/media" ] && echo "✓ Press kit" || echo "✗ Press kit"

# Changelog page?
[ -f "app/changelog/page.tsx" ] || [ -f "pages/changelog.tsx" ] && echo "✓ Changelog page" || echo "✗ Changelog page"

# Social proof?
grep -rE "testimonial|review|rating" --include="*.tsx" . 2>/dev/null | grep -v node_modules | head -3
```

### 6. Viral Loop Analysis

Check for viral loop patterns:
- Creation → Share prompts
- Achievement → Share cards
- Invitation → Reward system
- Content → Watermarks/branding

## Output Format

```markdown
## Virality Audit

### P0: Critical (Invisible Online)
- No OG tags - Links look broken when shared
- No root metadata configured

### P1: Essential (Every Product)
- No dynamic OG images - All shares look the same
- No share button/mechanism
- No Twitter card configuration
- metadataBase not set (og images won't work)

### P2: Important (Growth)
- No referral system
- No attribution (UTM) tracking
- No share prompts at key moments
- No Web Share API (mobile native share)

### P3: Launch Readiness
- No changelog page
- No press kit
- No launch assets
- No testimonials/social proof

## Current Status
- OG metadata: Missing
- Dynamic OG images: Not configured
- Share mechanics: None
- Referral system: None
- Distribution: Not ready

## Summary
- P0: 2 | P1: 4 | P2: 4 | P3: 4
- Recommendation: Add root metadata and OG image endpoint first
```

## Priority Mapping

| Gap | Priority |
|-----|----------|
| No OG tags | P0 |
| No root metadata | P0 |
| No dynamic OG images | P1 |
| No share mechanics | P1 |
| No Twitter cards | P1 |
| No referral system | P2 |
| No UTM tracking | P2 |
| No share prompts | P2 |
| Launch assets missing | P3 |
| No changelog | P3 |

## Related

- `/log-virality-issues` - Create GitHub issues from findings
- `/fix-virality` - Fix virality gaps
- `/virality` - Full viral growth workflow
- `/launch-strategy` - Product launch planning

Overview

This skill audits a product's viral growth infrastructure and produces a prioritized, structured report of issues. It inspects social metadata, dynamic OG image support, share mechanics, referral and attribution logic, and distribution readiness. Use it to surface blocking gaps and create actionable issues with the companion issue-logging command.

How this skill works

The skill scans project files and assets to verify presence and correctness of OG/Twitter metadata, root-level metadata configuration, and dynamic OG image endpoints. It looks for share components, Web Share API usage, shareable URL generation, and client-side clipboard integrations. It inspects referral code patterns, attribution (UTM) usage, and database referral fields, then checks launch assets like press kits, changelog pages, and social proof. Findings are grouped into P0–P3 priorities and output as a structured report.

When to use it

  • Before an external launch or marketing push
  • When shares look broken or previews are blank
  • During a growth or onboarding audit
  • When building referral or invite mechanics
  • Before creating social campaign images

Best practices

  • Ensure root metadata is centralized so OG tags and metadataBase are consistent
  • Generate dynamic OG images for content-level shares to improve CTR
  • Instrument UTM and referrer attribution end-to-end (links → clients → DB)
  • Provide native and fallback share mechanics: Web Share API + explicit copy/share links
  • Bundle launch assets: press kit, product images, changelog, and testimonials

Example use cases

  • Pre-launch audit to prioritize fixes that make links shareable and previewable
  • Growth engineering sprint: add dynamic OG images and share prompts for high-value flows
  • Referral feature review: confirm invite codes, tracking, and reward attribution are wired to the database
  • Distribution readiness checklist ahead of Product Hunt or PR campaigns
  • Mobile optimization: verify Web Share API integration and clipboard fallbacks

FAQ

What outputs does the audit produce?

A prioritized list of findings (P0–P3) describing missing or misconfigured elements and a concise summary of current status across metadata, OG images, share mechanics, referrals, and distribution.

Can this skill apply fixes automatically?

No. This skill only inspects and reports. Use the companion fix command to implement fixes or the issue-logging command to create tracked tasks.