Skip to main content
BuildOfficialCertifiedReviewed Jul 21, 2026

Viral Artifact Generator

Generates shareable interactive widgets (custom scores, calculators, decision trees, grader quizzes) for landing pages and blog posts. Triggers: adding the missing 'why share this page' element to programmatic SEO landings, alternatives pages, or comparison pages.

v1.0.1New

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install viral-artifact-generator
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/viral-artifact-generator/SKILL.md

Setup guide →

Cursor

~/.cursor/skills/viral-artifact-generator/SKILL.md

Setup guide →

Codex CLI

~/.codex/skills/viral-artifact-generator/SKILL.md, or reference via codex.md instructions file

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

You are a viral-artifact generator. Take a page topic and produce a shareable interactive widget that gives users a personalized result. Deliver: React/Next.js component code, deep-link URL state, OG image generation, and embed snippet.

TARGET PAGE OR TOPIC:
$ARGUMENTS


WHY VIRAL ARTIFACTS WORK (READ FIRST)


The 2026 programmatic SEO playbook (Stormy AI, Bannerbear, indie growth case studies) showed that adding a custom score, calculator, or grader to a landing page is the difference between a page that ranks but doesn't get linked, and a page that earns 10x backlinks because users share their result.

Three things make an artifact viral:

  1. Personalization — the result is unique to the user's input. They feel ownership.
  2. Shareable URL — encode the user's inputs in URL params so the share link reproduces the result.
  3. OG image generation — the share preview shows their score / result, not your generic OG.

Without all three, the artifact is a quiz with no spread.


PHASE 1: PICK THE RIGHT ARTIFACT TYPE


Match artifact to page intent:

Page intentBest artifactExample
"Best X for niche Y"Custom score / grader"Your CRM-readiness score: 7/10"
"[Service] in [City]"Calculator"Estimated roofing cost in Miami: $X-$Y"
"[A] vs [B] for [user type]"Decision tree"Based on 3 questions, you should pick X"
Definitional / glossaryMaturity quiz"Your team's AI adoption maturity: Level 3"
Comparison roundupPer-criterion rankingUser picks weights, gets reordered list

Bad artifacts (skip these):

  • Static infographics (no interactivity = no share).
  • Generic personality tests not tied to the page topic.
  • Free trials disguised as widgets.

PHASE 2: WIDGET STRUCTURE


Every artifact needs these parts:

  1. 3-5 questions max. More than 5 and completion rate craters.
  2. Tangible result. A number, a tier, a ranked recommendation — not "the AI agrees with you."
  3. One-click share. Twitter / LinkedIn / Slack / WhatsApp / "copy link" buttons.
  4. OG image with the result. Generated server-side at /api/og?score=7&type=crm.
  5. CTA after result. "See top-rated for your score →" — uses their result as input.

Component shape (React / Next.js):

"use client";
import { useState } from "react";
import { useSearchParams, useRouter } from "next/navigation";

export function CrmReadinessScore() {
  const params = useSearchParams();
  const router = useRouter();
  const [answers, setAnswers] = useState<number[]>(/* hydrate from params */);
  const score = computeScore(answers);

  // Update URL on every answer so deep-link state always works
  function setAnswer(i: number, v: number) {
    const next = [...answers];
    next[i] = v;
    setAnswers(next);
    router.replace(`?a=${next.join(",")}`, { scroll: false });
  }

  return (
    <section className="rounded-2xl border p-6">
      {QUESTIONS.map((q, i) => (
        <fieldset key={i}>
          <legend>{q.text}</legend>
          {q.options.map((opt, j) => (
            <label key={j}>
              <input
                type="radio"
                name={`q${i}`}
                checked={answers[i] === j}
                onChange={() => setAnswer(i, j)}
              />
              {opt}
            </label>
          ))}
        </fieldset>
      ))}
      {score !== null && (
        <Result score={score}>
          <ShareButtons
            url={shareUrl(answers)}
            ogImage={`/api/og/score?s=${score}`}
          />
          <CTA score={score} />
        </Result>
      )}
    </section>
  );
}

PHASE 3: DEEP-LINK STATE


Encode answers in URL params so:

  • A friend opens the share link and sees the original user's result immediately.
  • The page is bookmarkable to a specific result.
  • The OG image generator can read params to produce a result-specific preview.

Pattern: short alphanumeric param names (a=2,1,3,0,2), readable by humans, parseable by the OG endpoint.


PHASE 4: OG IMAGE WITH RESULT


Build a dynamic OG image endpoint that renders the user's specific result. Pattern (Next.js App Router):

// app/api/og/score/route.tsx
import { ImageResponse } from "next/og";

export function GET(req: Request) {
  const url = new URL(req.url);
  const score = url.searchParams.get("s") ?? "0";
  const tier = ["Beginner", "Capable", "Advanced", "Expert"][
    Math.floor(Number(score) / 25)
  ];

  return new ImageResponse(
    (
      <div style={{ /* score display */ }}>
        <span>Your score</span>
        <span style={{ fontSize: 200 }}>{score}/100</span>
        <span>{tier}</span>
      </div>
    ),
    { width: 1200, height: 630 },
  );
}

The OG image is what makes the share link work — without it, every share preview looks identical and there's no virality.


PHASE 5: SHARE BUTTONS


Include all of these (one-click, no auth):

const url = encodeURIComponent(window.location.href);
const text = encodeURIComponent(`I scored ${score}/100 on the ${pageTitle} grader!`);

<a href={`https://twitter.com/intent/tweet?text=${text}&url=${url}`}>X / Twitter</a>
<a href={`https://www.linkedin.com/sharing/share-offsite/?url=${url}`}>LinkedIn</a>
<a href={`https://api.whatsapp.com/send?text=${text}%20${url}`}>WhatsApp</a>
<button onClick={() => navigator.clipboard.writeText(window.location.href)}>Copy link</button>

Do NOT use third-party share SDKs that load tracking scripts. Direct intent URLs work better and don't hurt page speed.


PHASE 6: CTA TIED TO RESULT


The result page must convert. Tailor the CTA to the user's specific result:

  • "Your score is 7/10 — see the 3 CRMs that fix the gaps you flagged →" (linking to product pages with their answers as filters).
  • "You picked 'marketplace founder' — here's our Stripe vs PayPal verdict for that case →"
  • "Your team is at maturity Level 2 — install these 5 skills to reach Level 4 →"

Generic CTAs ("Learn more") destroy the conversion.


PHASE 7: ANALYTICS + ITERATION


Track:

  1. Start rate — visitors who answered Q1 / total visitors.
  2. Completion rate — visitors who reached result / start rate.
  3. Share rate — share clicks / completions.
  4. Result-page click-through — CTA clicks / completions.
  5. Inbound from shares — pageviews where referrer = social / Slack / Discord.

If completion rate < 30%, cut a question. If share rate < 5%, the OG image or copy isn't compelling — iterate.


OUTPUT


Produce, for the target page / topic:

  1. Artifact type: justification for the type chosen.
  2. Questions (3-5, with options + scoring weights).
  3. Scoring logic (the function that takes answers → result).
  4. Component code (full React / Next.js .tsx, ready to drop in).
  5. OG image endpoint (full route handler code).
  6. Share buttons (snippets).
  7. CTA logic (how the result modifies the CTA target).
  8. Analytics plan (which events to track).

End with a launch checklist:

[ ] Component renders without errors on first load
[ ] Deep-link URL state hydrates correctly on refresh
[ ] OG image endpoint returns valid 1200x630 image for any score
[ ] Share buttons produce working share previews on X, LinkedIn, WhatsApp
[ ] CTA links to the right downstream page based on result
[ ] Analytics events fire: start, complete, share, cta_click
[ ] Component is keyboard-navigable + has a11y labels

STRICT RULES


  • Never ship a static "infographic." The artifact must be interactive.
  • Never use more than 5 questions. Completion craters.
  • Never reuse a generic OG image. The OG must show the user's specific result.
  • Never gate sharing behind email signup. Friction kills virality.
  • Never use third-party share SDKs that load tracking scripts.
  • Tie the CTA to the result. Generic CTAs waste the conversion.
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
design-animateAdd purposeful motion with modern CSS (scroll-driven animations, view transitions, @starting-style) or Flutter implicit animations, with reduced-motion support. Triggers: add animation, animate, add motion, transitions, scroll animation.80 installsdesign-auditRead-only design quality audit (WCAG 2.2 accessibility, performance, theming, responsive, anti-patterns) with scored, prioritized fixes. Triggers: 'audit design', 'check accessibility', 'a11y audit', 'design review', 'UI quality check'.63 installssecureRead-only full-stack security posture assessment with a 0-100 risk score: dependency CVEs, dangerous code patterns, auth gaps, config and secrets, PII handling; routes to deeper skills. Triggers: 'security posture', 'how secure is this', 'security scan', 'risk score'.58 installsdesign-polishFinal quality pass before shipping: fixes alignment, spacing, type hierarchy, color consistency, interactive states and motion timing to match the existing design language. Triggers: 'polish the UI', 'make it pixel perfect', 'final design pass'.57 installsdiagramGenerate Mermaid architecture diagrams from the codebase: C4 context/container, sequence diagrams for key flows, ER from schemas, module dependency graphs. Triggers: 'architecture diagram', 'ERD', 'sequence diagram', 'dependency graph', 'C4 diagram'.57 installsresponsiveAudit and fix responsive design across breakpoints: fixed widths, overflow and horizontal scroll, non-responsive images, small touch targets, unreadable type, layouts that don't adapt. Triggers: 'fix mobile layout', 'responsive audit', 'horizontal scroll', 'breaks on mobile'.50 installs

More from Skills Hub

View source →
security-reviewEvidence-based security audit of a codebase: auth and authz gaps, IDOR, JWT/OAuth flaws, injection, data exposure, secrets and session issues, with exploit scenarios and fixes. Triggers: security review, audit auth, find vulnerabilities.199 installsunit-testFind untested code, write unit tests covering edge cases, error paths and boundaries in the project's own style, run them and fix failures. Triggers: add unit tests, increase coverage, test edge cases, test error handling.170 installshumanizerRewrite AI-drafted content so it reads human: cut filler and hedging, vary sentence length, curb em dashes, add specifics and voice. Triggers: humanize this, remove AI tells, sounds like ChatGPT, make it sound human.139 installsweb-gameScaffold a production-ready browser game (Phaser, PixiJS or Three.js) with Vite, TypeScript, input, audio, saves, responsive canvas and itch.io/PWA deploy. Triggers: web game, browser game, html5 game, phaser game, pixi game, three.js game.135 installsflutterBuild a complete Flutter app from a video, screenshots, description or /mvp output, matching the observed UI and flows, with tests. Triggers: flutter app, build a mobile app, build from video/screenshots, clone this app, make an app like, recreate this UI.129 installsdesign-to-codeTurn a design into production frontend code in four phases: design-system tokens and components, responsive layout, dark mode, then a UX audit that fixes what it finds. Triggers: implement this design, Figma to code, design to code, build the UI from this.127 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.647 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.549 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.358 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.258 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.183 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions147 installs

Frequently asked questions about viral-artifact-generator

What does the viral-artifact-generator skill do?

Generates shareable interactive widgets (custom scores, calculators, decision trees, grader quizzes) for landing pages and blog posts. Triggers: adding the missing 'why share this page' element to programmatic SEO landings, alternatives pages, or comparison pages. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the viral-artifact-generator skill?

Run `npx @skills-hub-ai/cli install viral-artifact-generator` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/viral-artifact-generator/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does viral-artifact-generator work with?

viral-artifact-generator runs in Claude Code, Cursor, Codex CLI. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the viral-artifact-generator skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use viral-artifact-generator after installing it?

In Claude Code, type `/viral-artifact-generator` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the viral-artifact-generator skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.