
seo-best-practices
SEO patterns, conventions, and audit for web applications. Use when implementing meta tags, structured data, Core Web Vitals, sitemaps, Open Graph, auditing SEO, or optimizing pages for search engines. Triggers on "audit SEO", "check SEO", "review SEO", or tasks involving search optimization, schema markup, or social sharing meta tags.
- Installs
- 737
- Last 24h
- +9
- Trending rank
- #9023
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/asyrafhussin/agent-skills --skill seo-best-practices- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads seo-best-practices automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
SEO Best Practices
Comprehensive SEO patterns for web applications built with React and Laravel. Contains 31 rules across 8 categories covering Core Web Vitals, technical SEO, structured data, performance, social sharing, and mobile-first indexing. Supports both coding reference and audit mode.
Metadata
- Version: 1.2.0
- Scope: Laravel Blade and Laravel + Inertia.js + React
- Rule Count: 31 rules across 8 categories
- License: MIT
How to Audit
When the user asks to "audit SEO", "check SEO", or "review SEO" — run the checklist below against their codebase.
Audit Step 1: Determine Scope
- If arguments provided (
$ARGUMENTS): audit only those pages or files - If no arguments: audit all pages and layouts in the codebase
Audit Step 2: Detect Project Type
Use the detection logic in "Step 1: Detect Project Type" below to determine Laravel Blade vs Laravel + Inertia + React.
Audit Step 3: Run SEO Checklist
Work through every item below. For each, output:
- PASS — brief confirmation of what was verified
- FAIL — exact
file:line, description of the issue, and fix recommendation - N/A — if the check does not apply to this project
Core Web Vitals
- Hero/above-the-fold images use
fetchpriority="high"and are preloaded (LCP < 2.5s) - No long-running JavaScript tasks blocking interaction (INP < 200ms)
- All images and embeds have explicit
width/heightattributes (CLS < 0.1) - No dynamically injected content that shifts layout without reserved space
Technical SEO
- Every page has a unique
<title>tag (50-60 characters) - Every page has a
<meta name="description">(150-160 characters) - Every page has a
<link rel="canonical">pointing to the correct URL -
robots.txtexists and does not block important pages - XML sitemap exists and includes all indexable pages
- URLs are clean, lowercase, hyphenated — no query params for indexable pages
On-Page SEO
- One
<h1>per page containing the primary keyword - Heading hierarchy is sequential (h1 → h2 → h3) — no skipped levels
- Images have descriptive
alttext (not empty, not "image", not filename) - Internal links use descriptive anchor text (not "click here")
- Semantic HTML used (
<article>,<section>,<nav>,<main>)
Structured Data
- JSON-LD structured data present on key pages (Article, Product, FAQ, BreadcrumbList)
- JSON-LD uses
@graphwhen combining multiple schema types - Structured data validates with Google Rich Results Test (no errors)
- Organization/WebSite schema present on homepage
Performance SEO
- Images use modern formats (WebP/AVIF) with fallbacks
- Below-the-fold images use
loading="lazy" - Fonts use
font-display: swaporoptional - Critical resources use
<link rel="preconnect">or<link rel="preload">
Social Sharing
- Open Graph tags present (
og:title,og:description,og:image,og:url,og:type) -
og:imageis at least 1200x630px - Twitter Card tags present (
twitter:card, at minimumsummary_large_image)
React/SPA SEO (if applicable)
- SSR or SSG configured for indexable pages — not client-side only
- Meta tags update on route change (via
<Head>component or equivalent) -
head-keyattribute used to prevent duplicate meta tags (Inertia.js)
Mobile-First
-
<meta name="viewport" content="width=device-width, initial-scale=1">present - Content parity between mobile and desktop (no hidden content)
- Touch targets are at least 48x48px with adequate spacing
Audit Step 4: Summary
End the audit with:
## SEO Audit Summary
- **PASS**: X checks
- **FAIL**: X checks
- **N/A**: X checks
- **Top Priority Fixes**: (list the 3 most impactful FAIL items)
When to Apply
Reference these guidelines when:
- Running an SEO audit on a codebase
- Adding meta tags (
<title>, description, canonical, robots) - Implementing structured data (JSON-LD / Schema.org)
- Optimizing Core Web Vitals (LCP, INP, CLS)
- Setting up Open Graph and Twitter Card meta tags
- Creating sitemaps and robots.txt
- Building SEO-friendly React SPAs
- Configuring Laravel SEO middleware and packages
- Optimizing images, fonts, and loading performance for search
Step 1: Detect Project Type
Always check the project stack before giving advice. Different stacks need different SEO approaches.
Check package.json and project structure:
| Signal | Project Type |
|---|---|
@inertiajs/react in dependencies | Laravel + Inertia + React |
resources/views/**/*.blade.php only (no React) | Laravel Blade (server-rendered) |
If Laravel Blade: Apply tech-, onpage-, schema-, perf-, social-, mobile- rules. Meta tags go in Blade layouts. Sitemaps via spatie/laravel-sitemap. Skip spa- rules — pages are already server-rendered.
If Laravel + Inertia + React: Apply all rules. Meta tags via @inertiaHead in Blade layout + <Head> component from @inertiajs/react in React pages. For SSR, create resources/js/ssr.jsx using createServer from @inertiajs/react/server, add ssr: 'resources/js/ssr.jsx' to Vite config, build with vite build && vite build --ssr, and run php artisan inertia:start-ssr. Use head-key attribute on meta tags to prevent duplicates between layout and page. Focus on schema-, social-, and perf- rules.
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Core Web Vitals | CRITICAL | cwv- |
| 2 | Technical SEO | CRITICAL | tech- |
| 3 | On-Page SEO | HIGH | onpage- |
| 4 | Structured Data | HIGH | schema- |
| 5 | Performance SEO | HIGH | perf- |
| 6 | Social Sharing | HIGH | social- |
| 7 | React/SPA SEO | HIGH | spa- |
| 8 | Mobile-First | MEDIUM | mobile- |
Quick Reference
1. Core Web Vitals (CRITICAL)
cwv-lcp- Largest Contentful Paint optimization (<2.5s)cwv-inp- Interaction to Next Paint optimization (<200ms)cwv-cls- Cumulative Layout Shift prevention (<0.1)
2. Technical SEO (CRITICAL)
tech-meta-tags- Essential HTML meta tags (title, description, canonical)tech-canonical-urls- Canonical URL implementationtech-robots-txt- Robots.txt configurationtech-sitemap-xml- XML sitemap generationtech-url-structure- SEO-friendly URL patterns
3. On-Page SEO (HIGH)
onpage-headings- Heading hierarchy and structureonpage-semantic-html- Semantic HTML for SEO and accessibilityonpage-internal-linking- Internal linking strategyonpage-images- Image optimization and alt text
4. Structured Data (HIGH)
schema-json-ld- JSON-LD structured data basicsschema-article- Article and BlogPosting markupschema-product- Product schema for e-commerceschema-breadcrumb- BreadcrumbList navigation markupschema-graph- Combining multiple schema types with @graphschema-faq- FAQ page schema markupschema-validation- Structured data validation and monitoring
5. Performance SEO (HIGH)
perf-image-formats- Modern image formats (WebP/AVIF)perf-lazy-loading- Lazy loading implementationperf-font-loading- Web font loading strategyperf-resource-hints- Preconnect, preload, and prefetch
6. Social Sharing (HIGH)
social-open-graph- Open Graph meta tagssocial-twitter-cards- Twitter/X Card meta tags
7. React/SPA SEO (HIGH)
spa-rendering-strategy- SSR vs CSR vs SSG for SEOspa-meta-management- Dynamic meta tag managementspa-routing- SPA routing and crawlability
8. Mobile-First (MEDIUM)
mobile-viewport- Viewport and responsive configurationmobile-content-parity- Content parity between mobile and desktopmobile-ux- Mobile UX requirements for SEO
Essential Patterns
Meta Tags (HTML)
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Page Title — Site Name</title>
<meta name="description" content="Concise 150-160 character description of page content." />
<link rel="canonical" href="https://example.com/page" />
<!-- Open Graph -->
<meta property="og:title" content="Page Title" />
<meta property="og:description" content="Description for social sharing." />
<meta property="og:image" content="https://example.com/og-image.jpg" />
<meta property="og:url" content="https://example.com/page" />
<meta property="og:type" content="website" />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary_large_image" />
</head>
JSON-LD Structured Data
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "Article Title",
"author": {
"@type": "Person",
"name": "Author Name"
},
"datePublished": "2026-03-14",
"dateModified": "2026-03-14",
"image": "https://example.com/article-image.jpg",
"publisher": {
"@type": "Organization",
"name": "Site Name",
"logo": {
"@type": "ImageObject",
"url": "https://example.com/logo.png"
}
}
}
</script>
React Meta Management (Inertia.js)
import { Head } from '@inertiajs/react'
interface Post {
title: string;
slug: string;
excerpt: string;
image: string;
}
function BlogPost({ post }: { post: Post }) {
return (
<>
<Head>
<title>{post.title} — Blog</title>
<meta head-key="description" name="description" content={post.excerpt} />
<link rel="canonical" href={`https://example.com/blog/${post.slug}`} />
<meta property="og:title" content={post.title} />
<meta property="og:description" content={post.excerpt} />
<meta property="og:image" content={post.image} />
<meta property="og:type" content="article" />
<meta name="twitter:card" content="summary_large_image" />
</Head>
<article>{/* content */}</article>
</>
)
}
Core Web Vitals Quick Checks
LCP < 2.5s Preload hero image, use fetchpriority="high"
INP < 200ms Break long tasks, yield to main thread
CLS < 0.1 Set width/height on images, reserve space for dynamic content
Image Optimization
<!-- Modern formats with fallback -->
<picture>
<source srcset="hero.avif" type="image/avif" />
<source srcset="hero.webp" type="image/webp" />
<img
src="hero.jpg"
alt="Descriptive alt text for the image"
width="1200"
height="630"
fetchpriority="high"
/>
</picture>
<!-- Responsive images -->
<img
srcset="photo-400.webp 400w, photo-800.webp 800w, photo-1200.webp 1200w"
sizes="(max-width: 600px) 400px, (max-width: 900px) 800px, 1200px"
src="photo-800.webp"
alt="Descriptive alt text"
width="1200"
height="800"
loading="lazy"
/>
How to Use
Read individual rule files for detailed explanations and code examples:
rules/tech-meta-tags.md
rules/schema-json-ld.md
rules/cwv-lcp.md
rules/spa-rendering-strategy.md
rules/social-open-graph.md
Each rule file contains:
- YAML frontmatter with metadata (title, impact, tags)
- Brief explanation of why it matters
- Incorrect example with explanation
- Correct example with explanation
- Framework-specific examples (React, Laravel)
References
- Google Search Central - Official Google SEO documentation
- web.dev Core Web Vitals - CWV measurement and optimization
- Schema.org - Structured data vocabulary
- Open Graph Protocol - Social sharing meta tags
- Google Rich Results Test - Structured data validation
Full Compiled Document
For the complete guide with all rules expanded: AGENTS.md
FAQ
What does the seo-best-practices skill do?
SEO patterns, conventions, and audit for web applications. Use when implementing meta tags, structured data, Core Web Vitals, sitemaps, Open Graph, auditing SEO, or optimizing pages for search engines. Triggers on "audit SEO", "check SEO", "review SEO", or tasks involving search optimization, schema markup, or social sharing meta tags.
How do I install seo-best-practices?
Run npx skills add https://github.com/asyrafhussin/agent-skills --skill seo-best-practices in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/seo-best-practices/ (personal) or .claude/skills/seo-best-practices/ (project).
Which AI agents can use seo-best-practices?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is seo-best-practices safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains seo-best-practices?
It is published by asyrafhussin in asyrafhussin/agent-skills. It has 737 recorded installs.
More from asyrafhussin/agent-skills
php-best-practices
asyrafhussin/agent-skills
PHP 8.x modern patterns, PSR standards, and SOLID principles. Use when reviewing PHP code, checking type safety, auditing code quality, or ensuring PHP best practices. Triggers on "review PHP", "check PHP code", "audit PHP", or "PHP best practices".
react-vite-best-practices
asyrafhussin/agent-skills
React and Vite performance optimization guidelines. Use when writing, reviewing, or optimizing React components built with Vite. Triggers on tasks involving Vite configuration, build optimization, code splitting, lazy loading, HMR, bundle size, or React performance.
laravel-best-practices
asyrafhussin/agent-skills
Laravel 13 conventions and best practices. Use when creating controllers, models, migrations, validation, services, or structuring Laravel applications. Triggers on tasks involving Laravel architecture, Eloquent, database, API development, or PHP patterns.
laravel-inertia-react
asyrafhussin/agent-skills
Laravel + Inertia.js + React integration patterns. Use when building Inertia page components, handling forms with useForm, managing shared data, or implementing persistent layouts. Triggers on tasks involving Inertia.js, page props, form handling, or Laravel React integration.
clean-code-principles
asyrafhussin/agent-skills
SOLID principles, design patterns, DRY, KISS, and clean code fundamentals. Use when reviewing architecture, checking code quality, refactoring, or discussing design decisions. Triggers on "review architecture", "check code quality", "SOLID principles", "design patterns", or "clean code".
typescript-react-patterns
asyrafhussin/agent-skills
TypeScript best practices for React development. Use when writing typed React components, hooks, events, refs, or generic components. Triggers on tasks involving TypeScript errors, type definitions, props typing, or type-safe React patterns.
Popular marketing & seo skills
reddit-automation
flowkit-labs/skills
Find Reddit threads where people are genuinely asking for what you offer, then draft short, genuinely helpful replies — disclosing your affiliation honestly and naming your product only when it truly answers the question. Two moves: discovery — scan the right subreddits for real needs (recommendation asks, expressed pain, competitor mentions) and rank the few threads where you can actually help; drafting — write from real experience, respect each community's self-promo rules, and keep a human in the loop to review and post. This markets on Reddit the honest way: contribute value, disclose who you are, never astroturf. Distilled from the playbook behind doany.ai's Reddit agent. Triggers on "find reddit opportunities", "reddit marketing", "reddit automation", "reply on reddit for my product", "reddit community engagement", "reddit lead gen", or any ask to turn Reddit threads into genuine, disclosed marketing replies.
twitter-automation
101-skills/superpowers
Automate Twitter/X with posting, engagement, and user management via inference.sh CLI. Apps: x/post-tweet, x/post-create (with media), x/post-like, x/post-retweet, x/dm-send, x/user-follow. Capabilities: post tweets, schedule content, like posts, retweet, send DMs, follow users, get profiles. Use for: social media automation, content scheduling, engagement bots, audience growth, X API. Triggers: twitter api, x api, tweet automation, post to twitter, twitter bot, social media automation, x automation, tweet scheduler, twitter integration, post tweet, twitter post, x post, send tweet
twitter-automation
magentosh/superpowers
Automate Twitter/X with posting, engagement, and user management via inference.sh CLI. Apps: x/post-tweet, x/post-create (with media), x/post-like, x/post-retweet, x/dm-send, x/user-follow. Capabilities: post tweets, schedule content, like posts, retweet, send DMs, follow users, get profiles. Use for: social media automation, content scheduling, engagement bots, audience growth, X API. Triggers: twitter api, x api, tweet automation, post to twitter, twitter bot, social media automation, x automation, tweet scheduler, twitter integration, post tweet, twitter post, x post, send tweet
twitter-automation
qu-skills/superpowers
Automate Twitter/X with posting, engagement, and user management via inference.sh CLI. Apps: x/post-tweet, x/post-create (with media), x/post-like, x/post-retweet, x/dm-send, x/user-follow. Capabilities: post tweets, schedule content, like posts, retweet, send DMs, follow users, get profiles. Use for: social media automation, content scheduling, engagement bots, audience growth, X API. Triggers: twitter api, x api, tweet automation, post to twitter, twitter bot, social media automation, x automation, tweet scheduler, twitter integration, post tweet, twitter post, x post, send tweet
product-launch-video
heygen-com/hyperframes
Turn a product or marketing URL, pasted script, or brief into a product launch / promo video — SaaS promos, feature reveals, product demos, app and company launches. Use when the user wants to market, launch, promote, or reveal a product; the default for any commercial URL. Site tours / showcases of a website route here too — the brief carries the show-it-as-is intent. Unclear → /hyperframes.
twitter-automation
skills-shell/superpowers
Automate Twitter/X with posting, engagement, and user management via inference.sh CLI. Apps: x/post-tweet, x/post-create (with media), x/post-like, x/post-retweet, x/dm-send, x/user-follow. Capabilities: post tweets, schedule content, like posts, retweet, send DMs, follow users, get profiles. Use for: social media automation, content scheduling, engagement bots, audience growth, X API. Triggers: twitter api, x api, tweet automation, post to twitter, twitter bot, social media automation, x automation, tweet scheduler, twitter integration, post tweet, twitter post, x post, send tweet