/audit-code:audit-code-social-previewfrom audit-code
Read-only audit of website social-share previews and launch metadata. Finds missing or weak Open Graph, Twitter/X Card, canonical URL, favicon/app-icon, and social image wiring; verifies deployed image reachability and dimensions when a URL is available. Use when the user asks to check social previews, Open Graph tags, Twitter cards, link unfurls, app launch/share readiness, marketing metadata, or why a post only shows a plain URL/title. For a full multi-dimension audit use audit-code-master. Never edits code.
Ships in audit-code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You audit whether a website/app will produce a rich, accurate preview when shared on LinkedIn, X/Twitter, Discord, Slack, Facebook, iMessage, and similar platforms. You never edit source — you find, rank, and report. First read the shared contract (schema, severity rubric, reporting flow, rules):
${CLAUDE_PLUGIN_ROOT}/reference/audit-common.md
og:type, og:url, og:title,
og:description, og:image, og:image:width, and og:image:height.twitter:card, twitter:title,
twitter:description, and twitter:image; summary_large_image is normally
expected for product/launch pages.link rel="canonical", mixed apex vs
www, localhost/staging values in production metadata, relative social URLs,
or non-HTTPS URLs.1200x630 (1.91:1).theme-color,
missing image alt metadata (og:image:alt, twitter:image:alt), and stale
cache-busting needs when a preview was already scraped.Do not flag subjective SEO preferences as bugs. Only report issues that will materially hurt link unfurls, social previews, or launch/share credibility.
index.html, Next.js app/layout.*, Remix/React Router meta functions,
Astro/SvelteKit layout/head files, static landing pages, or deployment docs.
State the audited target.Glob/Grep to find social metadata:
og:image, og:title, twitter:card, canonical, metadata, generateMetadata,
Helmet, <Head>, or route-specific meta exports. Read the relevant files.Bash with Python or curl
and a browser-like user agent. Save or inspect the returned HTML and final
redirected URL. Do not rely on memory or assumptions.og:image or twitter:image exists, fetch it
directly. Verify HTTP status, content type, byte size, and dimensions. Use
Pillow if installed; otherwise use available platform image tools or at least
report that dimensions could not be verified.path:line
locations for source findings. For live-only findings, use the URL plus the
closest source file if known. Use the SOC-### ID prefix.audit-code-master: return the findings array
only — do not render a report or ask follow-ups.${CLAUDE_PLUGIN_ROOT}/reference/audit-common.md (write the JSON, render
the HTML report, print the Markdown summary, offer issues/CSV).Treat these as the baseline for production marketing/product pages:
title
meta[name="description"]
link[rel="canonical"]
og:type
og:url
og:title
og:description
og:image
og:image:width
og:image:height
twitter:card
twitter:title
twitter:description
twitter:image
Recommended but usually lower severity:
og:site_name
og:image:alt
twitter:image:alt
twitter:site
meta[name="theme-color"]
apple-touch-icon
favicon
og:image /
twitter:image, image URL is broken, or metadata points at localhost/staging.theme-color, or
og:site_name; minor copy improvements.Fetch live HTML safely:
python3 - <<'PY'
import urllib.request
url = 'https://example.com/'
req = urllib.request.Request(url, headers={'User-Agent': 'Mozilla/5.0 social-preview-audit'})
with urllib.request.urlopen(req, timeout=20) as r:
print('status:', r.status)
print('final_url:', r.geturl())
print('content_type:', r.headers.get('content-type'))
print(r.read(300000).decode('utf-8', 'replace'))
PY
Static metadata parser for an HTML file:
python3 - <<'PY'
from html.parser import HTMLParser
from pathlib import Path
path = Path('apps/landing/index.html')
html = path.read_text(encoding='utf-8')
class Parser(HTMLParser):
def __init__(self):
super().__init__()
self.title = ''
self.in_title = False
self.meta = {}
self.links = {}
def handle_starttag(self, tag, attrs):
attrs = dict(attrs)
if tag == 'title':
self.in_title = True
if tag == 'meta':
key = attrs.get('property') or attrs.get('name')
if key:
self.meta[key] = attrs.get('content', '')
if tag == 'link' and attrs.get('rel'):
self.links[attrs.get('rel')] = attrs.get('href', '')
def handle_endtag(self, tag):
if tag == 'title':
self.in_title = False
def handle_data(self, data):
if self.in_title:
self.title += data.strip()
p = Parser(); p.feed(html)
required = [
'description', 'og:type', 'og:url', 'og:title', 'og:description', 'og:image',
'og:image:width', 'og:image:height', 'twitter:card', 'twitter:title',
'twitter:description', 'twitter:image',
]
print(f'title: {p.title or "MISSING"}')
print(f'canonical: {p.links.get("canonical", "MISSING")}')
for key in required:
print(f'{key}: {p.meta.get(key) or "MISSING"}')
missing = [key for key in required if not p.meta.get(key)]
if not p.title:
missing.insert(0, 'title')
if missing:
raise SystemExit('Missing: ' + ', '.join(missing))
PY
Image reachability/dimension check:
python3 - <<'PY'
import io, urllib.request
from PIL import Image
url = 'https://example.com/og-image.png'
req = urllib.request.Request(url, headers={'User-Agent': 'Mozilla/5.0 social-preview-audit'})
with urllib.request.urlopen(req, timeout=20) as r:
data = r.read()
print('status:', r.status)
print('content_type:', r.headers.get('content-type'))
print('bytes:', len(data))
img = Image.open(io.BytesIO(data))
print('format:', img.format)
print('size:', img.size)
PY
og:image and twitter:image URLs that point to a public
1200x630 PNG/WebP/JPEG card.twitter:card="summary_large_image" for product launch pages.canonical, og:url,
and social image URLs./og-image.png?v=2.<img src="...">) are fine; the concern
is social metadata fields that external scrapers must resolve reliably.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub jon-the-dev/claude-code-plugin-marketplace-v0 --plugin audit-code9 skills in this plugin
/audit-code-architectureRead-only architecture audit of a codebase. Finds tight coupling, leaky boundaries, layering violations, circular dependencies, god objects/modules, and missing or excessive abstraction at the system level. Use when the user asks to "audit the architecture", "review module boundaries", "find circular dependencies", "is this well structured?", "check separation of concerns", or "are the layers leaking?". Complements audit-code-quality (which works at the function/file level). For the full multi-dimension audit use audit-code-master. Never edits code.
/audit-code-correctnessRead-only correctness audit of a codebase. Finds logic errors, unhandled edge cases, swallowed exceptions, race conditions, off-by-one errors, null/None mishandling, and incorrect error handling. Use when the user asks to "audit correctness", "find logic bugs", "check edge-case handling", "are there race conditions?", "is the error handling correct?", or "what could break here?". For the full multi-dimension audit use audit-code-master. Never edits code.
/audit-code-dependenciesRead-only dependency audit of a codebase. Finds outdated or known-vulnerable packages, unused dependencies, unpinned/floating versions, license risk, and unjustified new dependencies. Use when the user asks to "audit dependencies", "check for vulnerable packages", "find unused dependencies", "are versions pinned?", "review the dependency tree", or "any license risks?". For the full multi-dimension audit use audit-code-master. Never edits code.
Other plugins' skills for the same job