seo-fundamentals
SEO best practices for Laravel. Meta tags, OpenGraph, Sitemap generation, and Structured Data.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
SEO best practices for Laravel. Meta tags, OpenGraph, Sitemap generation, and Structured Data.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
PHP Artisan CLI patterns including make commands, flags, custom commands, and AI-friendly usage.
Advanced Eloquent ORM patterns including relationships, eager loading, factories, and query optimization.
Laravel development best practices covering service providers, dependency injection, facades, and the Laravel Way.
Laravel Tinker best practices for debugging, testing ideas, and data exploration. When and how to use safely.
Laravel-native error handling patterns. Renderable exceptions, Livewire traits strategies, and user-facing notifications.
Integrate Anthropic Claude API with Laravel. HTTP client, message format, error handling. Use when calling Claude models from Laravel applications.
| name | seo-fundamentals |
| description | SEO best practices for Laravel. Meta tags, OpenGraph, Sitemap generation, and Structured Data. |
| allowed-tools | Read, Glob, Grep |
Technical and content SEO practices optimized for the Laravel ecosystem.
Don't manually manage meta tags. Use battle-tested packages.
Automatically generates meta tags and structured data.
composer require spatie/laravel-tags spatie/laravel-seo
Generates sitemap.xml dynamically.
composer require spatie/laravel-sitemap
Using a shared layout (resources/views/layouts/app.blade.php):
<head>
{{-- Basic Meta --}}
<title>@yield('title', config('app.name'))</title>
<meta name="description" content="@yield('description', 'Default app description')">
{{-- Open Graph / Social --}}
<meta property="og:title" content="@yield('title')" />
<meta property="og:description" content="@yield('description')" />
<meta property="og:image" content="@yield('image', asset('images/og-default.jpg'))" />
{{-- Canonical --}}
<link rel="canonical" href="{{ url()->current() }}" />
</head>
Using spatie/laravel-seo on a Post model:
use Spatie\Seo\Seo;
public function show(Post $post)
{
seo()
->title($post->title)
->description($post->excerpt)
->image($post->cover_url)
->twitter();
return view('posts.show', compact('post'));
}
spatie/laravel-sitemap to run daily via Scheduler.public/robots.txt exists or use a route to generate it.php artisan optimize and cache config in production.spatie/laravel-medialibrary for responsive images/WebP conversion.Since we removed the legacy Python script, use these standard tools:
| Tool | Purpose |
|---|---|
| Lighthouse (Chrome DevTools) | Performance, Accessibility, SEO score |
| Google Search Console | Indexing status, Core Web Vitals |
| Ahrefs / Semrush | Backlink checking |
Note: We do not include a PHP script for SEO because Google's rendering (JS) is best audited by a browser-based tool like Lighthouse.