Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

seo

БесплатноБез исполняемых скриптовНе проверен

Optimize portfolios for search engines and set up analytics. Covers meta tags, OG images, structured data, analytics options, and performance optimization.

JacbKот JacbK★ 16 звёзд на GitHub10 установок в других каталогах

Об этом скилле

Skill: SEO & Analytics

Optimize the portfolio for search engines and set up analytics to track visitors.


SEO Essentials

Meta Tags (in layout.tsx)

import type { Metadata } from 'next'

export const metadata: Metadata = {
  title: 'Name | Role',
  description: 'One compelling sentence about what makes them unique.',
  keywords: ['developer', 'portfolio', 'react', ...relevant terms],
  authors: [{ name: 'Full Name' }],
  creator: 'Full Name',

  // Open Graph (social sharing)
  openGraph: {
    type: 'website',
    locale: 'en_US',
    url: 'https://example.com',
    siteName: 'Name Portfolio',
    title: 'Name | Role',
    description: 'Same compelling description',
    images: [{
      url: '/og-image.png',  // 1200x630px recommended
      width: 1200,
      height: 630,
      alt: 'Name - Role'
    }]
  },

  // Twitter Card
  twitter: {
    card: 'summary_large_image',
    title: 'Name | Role',
    description: 'Same compelling description',
    images: ['/og-image.png'],
    creator: '@twitterhandle'
  },

  // Robots
  robots: {
    index: true,
    follow: true,
    googleBot: {
      index: true,
      follow: true
    }
  }
}

OG Image

Create /public/og-image.png (1200x630px) with:

  • Name prominently displayed
  • Role/title
  • Simple, on-brand design
  • No small text (won't be readable)

Quick option: Use a solid color background with large text.

Favicon

Add these to /public:

  • favicon.ico (32x32)
  • apple-touch-icon.png (180x180)
  • favicon-16x16.png
  • favicon-32x32.png

In layout.tsx:

export const metadata: Metadata = {
  icons: {
    icon: '/favicon.ico',
    apple: '/apple-touch-icon.png',
  },
}

Content SEO

Title Strategy

Homepage: "Name | Role" or "Name - Tagline"
  Example: "Jane Doe | Senior Frontend Engineer"
  Example: "Jane Doe - Building beautiful web experiences"

Keep under 60 characters.

Description

150-160 characters that:
- Say who they are
- Mention key skills/focus
- Include a hook

Example: "Frontend engineer specializing in React and TypeScript. Building fast, accessible web apps. Previously at Stripe, now freelancing."

Structured Data (JSON-LD)

Add to layout.tsx for rich search results:

export default function RootLayout({ children }) {
  return (
    <html>
      <head>
        <script
          type="application/ld+json"
          dangerouslySetInnerHTML={{
            __html: JSON.stringify({
              '@context': 'https://schema.org',
              '@type': 'Person',
              name: 'Full Name',
              url: 'https://example.com',
              jobTitle: 'Role',
              sameAs: [
                'https://github.com/username',
                'https://linkedin.com/in/username',
                'https://twitter.com/username'
              ]
            })
          }}
        />
      </head>
      <body>{children}</body>
    </html>
  )
}

Analytics Options

1. Vercel Analytics (Recommended for Vercel deployments)

npm install @vercel/analytics

In layout.tsx:

import { Analytics } from '@vercel/analytics/react'

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        {children}
        <Analytics />
      </body>
    </html>
  )
}

Pros: Zero config on Vercel, privacy-friendly, free tier Enable: Vercel Dashboard → Project → Analytics tab

2. Vercel Speed Insights

npm install @vercel/speed-insights
import { SpeedInsights } from '@vercel/speed-insights/next'

// Add alongside Analytics
<SpeedInsights />

3. Plausible (Privacy-focused)

// In layout.tsx <head>
<script
  defer
  data-domain="yourdomain.com"
  src="https://plausible.io/js/script.js"
/>

Pros: Privacy-first, no cookie banner needed, simple dashboard Cost: $9/month or self-host free

4. Google Analytics

npm install @next/third-parties
import { GoogleAnalytics } from '@next/third-parties/google'

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        {children}
        <GoogleAnalytics gaId="G-XXXXXXXXXX" />
      </body>
    </html>
  )
}

Note: May require cookie consent banner in EU.

5. Simple Page Views (Self-hosted)

For minimal tracking, create an API route:

// app/api/view/route.ts
export async function POST(request: Request) {
  const { page } = await request.json()
  // Log to your preferred service (database, file, etc.)
  console.log(`Page view: ${page}`)
  return Response.json({ success: true })
}

Search Console Setup

Google Search Console

  1. Go to: https://search.google.com/search-console
  2. Add property (URL prefix method)
  3. Verify with HTML file or DNS

Add verification file: Download googleXXXXXXX.html to /public

Or add meta tag to layout.tsx:

export const
Полный SKILL.md на GitHub

Установить seo в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл seo?

Optimize portfolios for search engines and set up analytics. Covers meta tags, OG images, structured data, analytics options, and performance optimization.

Как установить скилл seo?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл seo запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить seo с