Communitygithub.com

YepAPI/skills

MDXブログのセットアップ、RSSフィード生成、sitemap.xml、構造化データ/JSON-LD、関連記事表示。

skills とは?

このスキルは、Next.jsアプリケーション上で高機能なブログエンジンを構築するためのルールとパターンを定義します。MDXベースのコンテンツ管理、ビルド時のRSSフィードとsitemap.xmlの自動生成、JSON-LDによる構造化データの埋め込み、タグベースの関連記事表示、H2/H3見出しからの目次自動生成、ページネーションなど、SEOとユーザー体験に配慮した機能を網羅しています。対応プラットフォームはNext.js(App Router)で、Claude Code, Cursor, CodexなどのAIエージェントがプロジェクトに適用可能です。フロントマターの必須フィールドを厳格にチェックし、RSSやソートが壊れるのを防ぐなど、ベストプラクティスに基づいた実装ガイドラインを提供します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/blog-engine

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

ブログエンジン

ルール

  • MDXを使用したコンテンツ管理: content/blog/[slug].mdx — フロントマターにはtitle、description、publishedAt、updatedAt、tags、imageを含める
  • 動的ルーティング: app/blog/[slug]/page.tsx — ビルド時にMDXを取得し、ファイルシステムから静的パラメータを生成
  • RSSフィード: /rss.xml に feed.xml を生成 — 各記事のタイトル、説明、公開日、リンク、guidを含める — ビルド時に再生成
  • サイトマップ: すべてのブログURL、最終更新日、変更頻度を含む sitemap.xml を生成 — Google Search Consoleに送信
  • JSON-LD構造化データ: 各記事に Article スキーマを適用 — headline、datePublished、dateModified、author、image、publisher
  • 関連記事: タグベースのマッチング — 2つ以上のタグが共通する記事を検索し、該当がない場合は最新記事を表示 — 関連記事を3件表示
  • 目次: MDX内のH2/H3見出しから自動生成 — デスクトップではスティッキーサイドバーとして表示
  • ページネーション: 1ページあたり10記事、/blog/page/[num] に配置 — SEOのため前/次のリンクを含める

フロントマタースキーマ

title: "記事タイトル"
description: "160文字以内のメタ説明"
publishedAt: "2025-01-15"
updatedAt: "2025-02-01"
tags: ["nextjs", "react"]
image: "/blog/post-title/cover.jpg"
author: "著者名"

RSSフィードパターン

APIルートから提供するか、ビルド時に生成します。必須フィールド: <title>, <link>, <description>, 各記事の<item>に<guid>, <pubDate>を含める。

避けるべきこと

  • フロントマターに publishedAt がない — RSSとソートが機能しなくなる
  • サイトマップを送信しない — Googleが新しい記事を素早く発見できない
  • JSON-LDをスキップする — リッチスニペットの対象外になる
  • 関連記事をハードコードする — タグマッチングによる自動関連付けを使用する

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

関連スキル