BIGboss248/nextjs-wordpress

Next.js App Routerプロジェクトの計画をエンドツーエンドで立案し、正規の仕様書、デザインシステム、7フェーズのモジュール型実装ロードマップをdocs/plan/に生成します。「/nextjs-plan」「plan a nextjs project」などのトリガーで起動します。

nextjs-wordpress とは?

このスキルは、Next.js App Routerアプリケーション向けの構造化された計画立案スキルです。起動されると、既存のワークスペースファイルから技術仕様を抽出し、ユーザー要件に関する詳細なインタビュー(グリリングインタビュー)を実施した上で、正規のプロジェクト仕様書(`docs/project.json`)、型安全なコードレジストリ(`lib/routes.ts`、`lib/site-config.ts`)、デザインブリーフ(`docs/design/`)、そして7フェーズからなるモジュール型実装ロードマップ(`docs/plan/`)を生成します。このスキルはClaude Code、Cursor、CodexなどのAIエージェント上で動作し、開発プロジェクトの初期計画フェーズを自動化・標準化します。トリガーフレーズには「/nextjs-plan」「plan a nextjs project」「create nextjs project plan」などがあります。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/BIGboss248/nextjs-wordpress/tree/HEAD/.agents/skills/nextjs-plan

Installed? Explore more 生産性&コラボレーション skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

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

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

ドキュメント

Next.js プロジェクト計画スキル(nextjs-plan)

Next.js App Router アプリケーションの計画を立案するための構造化されたオーケストレーションスキルです。呼び出されると、既存のワークスペースファイルから技術仕様を抽出し、ユーザー要件に関する詳細なインタビュー(グリリングインタビュー)を実施し、正規のプロジェクト仕様(docs/project.json)、lib/ 配下の型安全なコードレジストリ、docs/design/ のデザインブリーフ、および docs/plan/ の 7 フェーズからなるモジュール型実装ロードマップを出力します。


ワークフロー概要

flowchart TD
    Invoke["起動 /nextjs-plan"] --> Step1["1. 自動ワークスペース検査<br/>(依存関係、ディレクトリ構成、スタイル、設定、ルートの抽出)"]
    Step1 --> Step2["2. ページとニーズに関するグリリングインタビュー<br/>(ページ ➔ セクション ➔ コンポーネント)"]
    Step2 --> Step3["3. 正規仕様の生成<br/>(docs/project.json & lib/ レジストリ)"]
    Step3 --> Step4["4. 戦略とデザインシステムの文書化<br/>(docs/design/ 01-strategy, 02-sitemap, 03-tokens)"]
    Step4 --> Step5["5. 7フェーズモジュール型実装計画の生成<br/>(docs/plan/ README.md & 01-07 フェーズファイル)"]
    Step5 --> Step6["6. 完了とまとめ<br/>(サマリーダッシュボードを表示;下流スキルは呼び出さない)"]

標準プロジェクトディレクトリ構成

├── lib/                             # 型安全なNext.jsコードの信頼できる情報源
│   ├── routes.ts                    # 集中管理されたルートレジストリとパスビルダー
│   ├── site-config.ts               # 集中管理されたサイトメタデータ、著者プロフィール、ソーシャルリンク
│   └── utils.ts                     # Tailwind cn ヘルパー
├── docs/                            # アーキテクチャ、計画、デザインの根拠
│   ├── project.json                 # 機械可読な正規仕様(Canonical machine-readable specifications)
│   ├── plan/                        # 7フェーズモジュール型実装ロードマップ
│   │   ├── README.md                # マスターダッシュボード:進捗追跡とフェーズ一覧
│   │   ├── 01-discovery-and-architecture.md
│   │   ├── 02-environment-and-cicd.md
│   │   ├── 03-system-health-probe.md
│   │   ├── 04-core-foundations.md
│   │   ├── 05-pages-and-components.md
│   │   ├── 06-server-functions-and-metadata.md
│   │   └── 07-integrations-and-release.md
│   ├── design/                      # UX、UI、画面仕様
│   │   ├── 01-strategy-brief.md     # 目的、ペルソナ、目標、KPI、ベンチマーク
│   │   ├── 02-sitemap-and-routes.md # ページ一覧、セクション階層、レンダリングマトリックス
│   │   ├── 03-ui-design-tokens.md   # セマンティックCSSトークン、タイポグラフィ、コンポーネントプリミティブ
│   │   └── components/              # コンポーネントデザイン仕様と Stitch スクリーンショット
│   └── adr/                         # アーキテクチャ決定記録

ステップバイステップ実行手順書

1. 自動ワークスペース検査(中断なし)

[!IMPORTANT] 先に検査し、後から質問する。 ワークスペースファイルから直接推測できる事実についてユーザーにプロンプトを送ってはなりません。

  • ワークスペースコンテキストのスキャン: package.json、ロックファイル(pnpm-lock.yaml、bun.lockb)、ルーティング構造(app/ vs src/app/)、コンポーネントディレクトリ、app/globals.css、UIライブラリ(shadcn/ui、lucide-react、アニメーション)、next-intlの設定(ルートの messages/ フォルダ)、既存のルート(page.tsx、route.ts)、テストとDockerの設定を検査します。
  • 完全な検査チェックリストについては、workspace-inspection.md を参照してください。

2. ユーザーグリリングインタビュー(ページ ➔ セクション ➔ コンポーネント)

  • 適応型グリリングインタビューの実施: グリリングフロンティア手法を用いて、構造化されたラウンドでユーザーと対話します。各質問に番号を付け、推奨回答を提供します。
  • 必須グリリングシーケンス:
    1. ページグリリング: 必要なすべてのWebページとターゲットURLルートを列挙します。
    2. セクショングリリング: 各ページについて、すべてのコンテンツセクションを上から下まで特定します。
    3. コンポーネントグリリング: 各セクションについて、必要なすべてのUIコンポーネントを定義します。
  • コアとなる質問事項: 問題提起、ターゲットペルソナ、認証、データレイヤー/ORM、i18nロケールとRTL、ビジュアルの美的トーン、デプロイ先。
  • インタビューテンプレートと決定木ルールについては、grilling-interview.md を参照してください。

3. 正規仕様と型安全なコードの生成

  • docs/project.json の作成: 技術メタデータ(パッケージマネージャー、コンポーネントディレクトリ、スタイル、UI/アニメーション/テストライブラリ、対応言語、辞書パス)を入力します。project-schema.md を参照し、project.json.template を展開します。
  • lib/routes.ts の作成: routes.ts.template から型安全なルートレジストリを生成します。
  • lib/site-config.ts の作成: site-config.ts.template から集中管理されたサイトプロファイルとメタデータを生成します。

4. docs/design/ にデザイン戦略を文書化

5. 7フェーズモジュール型実装ロードマップの生成(docs/plan/)

  • docs/plan/ ディレクトリのスキャフォールド: resources/templates/plan/ のテンプレートを使用してモジュラー計画ファイルを展開します。
    1. docs/plan/README.md(マスター進捗ダッシュボード)
    2. docs/plan/01-discovery-and-architecture.md(フェーズ1)
    3. docs/plan/02-environment-and-cicd.md(フェーズ2)
    4. docs/plan/03-system-health-probe.md(フェーズ3: /api/health 生存確認プローブ)
    5. docs/plan/04-core-foundations.md(フェーズ4: 環境変数、i18n、テーマトークン、レイアウト、OTel)
    6. docs/plan/05-pages-and-components.md(フェーズ5: SEOとサポートファイルを含む正規のページ&コンポーネントチェックリスト)
    7. docs/plan/06-server-functions-and-metadata.md(フェーズ6: サーバーアクション、APIルート、グローバルSEO)
    8. docs/plan/07-integrations-and-release.md(フェーズ7: 統合とプロダクションリリース)
  • 必須のページレベルファイルを伴う単一の情報源: フェーズ5(05-pages-and-components.md)は、ページとコンポーネントに関する唯一の正規のチェックリストです。すべてのページに対して、page.tsx、loading.tsx、error.tsx、generateMetadata、JSON-LD Schema、generateStaticParams()(動的ルートの場合)のサブチェックリストタスクを強制します。
  • ページ完了ルール: フェーズ5では、そのコンポーネントのサブチェックリスト項目とページレベルのSEO/サポートタスクがすべて完了した場合にのみ、ページ項目を - [x] としてマークします。
  • フェーズの完全なガイドラインについては、plan-checklist-structure.md を参照してください。

6. まとめと完了ゲート

  • ワークスペースの調査結果、docs/project.json の仕様、docs/plan/README.md のロードマップをユーザーに簡潔に報告します。
  • 下流のNext.jsスキルを自動的に呼び出さないでください。 実行を終了し、ユーザーが計画を確認できるようにします。

エッジケースと既知のAIの落とし穴

[!WARNING]

  • コマンドの連鎖: 複合コマンドを &&、||、; を使用して一行で実行しないでください。ターミナルコマンドは常に個別に実行してください。
  • 検査前の質問: package.json やディレクトリ一覧から直接読み取れる基本的な事実をユーザーに質問しないでください。
  • マイルストーンの順序の逆転: ヘルスプローブ(/api/health)はフェーズ3に属し、その後にコアファウンデーション(i18n、テーマ、レイアウト、OTel)がフェーズ4で続きます。ページ/コンポーネントの実装はその後です。
  • ページレベルファイルの省略: フェーズ5のチェックリストを作成する際、どのページに対しても loading.tsx、error.tsx、generateMetadata、JSON-LDスキーマのタスクを省略しないでください。
  • ページリストの重複: すべてのページとコンポーネントの追跡は、厳密に docs/plan/05-pages-and-components.md に保持してください。
  • ページの早期チェックオフ: フェーズ5のページは、すべての子コンポーネントとページレベルのサポートファイルが完了するまで - [ ] のままにしておく必要があります。
  • 誤った辞書の場所: Next.jsのi18n設定では、辞書はルートの messages/(例:messages/en.json)に配置され、app/dictionaries には決して配置されません。
  • 下流スキルの起動: 計画の完了時に実装やスタイリングのスキルを自動的にトリガーしないでください。停止してユーザーの指示を待ってください。

出力サマリースキーマ

計画フェーズの終了時に、以下の形式でサマリーを提示します。

### Next.js プロジェクト計画が完了しました

- **正規仕様**: `[docs/project.json](file:///...)`
- **型安全レジストリ**: `[lib/routes.ts](file:///...)` | `[lib/site-config.ts](file:///...)`
- **デザイン&戦略仕様**: `[docs/design/01-strategy-brief.md](file:///...)`、`[docs/design/02-sitemap-and-routes.md](file:///...)`、`[docs/design/03-ui-design-tokens.md](file:///...)`
- **モジュラー型ロードマップダッシュボード**: `[docs/plan/README.md](file:///...)`
  - **識別されたページ**: 合計 X ルートがマッピングされました
  - **識別されたコンポーネント**: Z セクションにわたって合計 Y コンポーネントがカタログ化されました
  - **完了したフェーズ**: N / 7 フェーズ確認済み

_計画完了。コンポーネントの設計または実装を進めるには、`docs/plan/README.md` を確認してください。_

リファレンスガイドとテンプレート

Individual skills in this repo

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

BIGboss248/nextjs-wordpress

Create, configure, manage, and validate Google Antigravity customizations including skills, rules, MCP servers, lifecycle hooks, plugins, and custom JSON configs. Use when adding new capabilities to Antigravity, configuring MCP servers, writing rules, creating skills, setting up hooks, or modernizing legacy workflows.

BIGboss248/nextjs-wordpress

Spawn multiple agents into a shared conversation where they debate, disagree, and converge on a solution via a shared chat.json file. Use for architecture decisions, code review debates, design trade-offs, or any problem that benefits from adversarial reasoning. Triggers on "chatroom", "agent debate", "have agents discuss", "agent chatroom", "debate this", or /agent-chatrooms. Also triggers on phrases like "have 3 agents argue about", "multi-agent discussion", or "let them debate".

BIGboss248/nextjs-wordpress

Always-active code intelligence, search, and navigation skill utilizing the codebase-memory MCP server. Enforces an index-first protocol (verifying and refreshing the knowledge graph via index_repository or index_status before searching, required because background auto_watch is disabled to eliminate editor stutter and system lag), followed by graph-first exploration (search_graph, trace_path, get_code_snippet, query_graph, get_architecture, detect_changes) instead of naive text grep or full-file reads. Always activate before searching the codebase, inspecting unknown architecture, finding symbols, or tracing callers/callees.

BIGboss248/nextjs-wordpress

>- Discover, interview, and craft comprehensive UX/UI design specifications (design-spec.md) and design tokens for web components. Triggers on "/component-design", "design component", "design section", "design UI", "wireframe component", or "create design spec".

BIGboss248/nextjs-wordpress

>- Configure and query WooCommerce APIs including WPGraphQL, WooGraphQL, and JWT auth for headless frontends. Use when connecting Next.js to WooCommerce or fetching store catalog data.

BIGboss248/nextjs-wordpress

Orchestrate parallel browser automation using multiple Chrome DevTools MCP instances. Use when a task requires doing the same browser action across many targets simultaneously (e.g., submitting contact forms, filling applications, scraping pages that need JS rendering). Spin up 1-5 parallel Chrome agents.

BIGboss248/nextjs-wordpress

Workflow for spawning an independent subagent to conduct unbiased code reviews and inject adversarial edge-case tests ([ComponentName].edge.test.tsx).

BIGboss248/nextjs-wordpress

>- Build Next.js App Router React components with Suspense skeletons, semantic OKLCH tokens, Jest + RTL unit tests, Playwright visual/hydration checks, and Tailwind logical styling. Triggers on "/nextjs-component-dev", "create component", "new component", "build component", or "develop component".

BIGboss248/nextjs-wordpress

>- Bootstrap, configure, and verify the complete Next.js App Router development environment, developer tooling, testing suites, MCP servers, Docker containerization, and CI/CD. Triggers on "/nextjs-dev-setup", "setup nextjs dev environment", "start a nextjs project", or "containerize nextjs app".

BIGboss248/nextjs-wordpress

>- Configure production health monitoring endpoints (/api/health), Docker Compose probes, and runtime metrics in Next.js App Router applications. Use when asked to "setup health check", "add health endpoint", "docker compose healthcheck nextjs", "configure health monitor", or "/nextjs-healthcheck".

BIGboss248/nextjs-wordpress

Bootstrap, configure, and verify next-intl App Router internationalization (proxy.ts/middleware.ts, next/root-params, [locale] layout, routing). Triggers on "/nextjs-i18n-setup", "setup i18n", "install next-intl", "configure next-intl", "add internationalization", "setup locale routing", "migrate to [locale]".

BIGboss248/nextjs-wordpress

Read/write translation dictionaries (messages/[locale].json), next-intl hooks (getTranslations/useTranslations), providers (Storybook/tests/subtrees), and BiDi styling. Triggers on "/nextjs-i18n-usage", "i18n dictionary", "use translations", "read dictionary", "i18n provider", "next-intl hooks", "storybook i18n", "test i18n", "add translation keys", "localize component", "create a component", "update a component".

BIGboss248/nextjs-wordpress

>- Configure, test, and verify OpenTelemetry (OTel) observability in Next.js App Router applications. Triggers on "/nextjs-otel", "setup otel", "configure opentelemetry", "test otel", or "verify opentelemetry".

BIGboss248/nextjs-wordpress

Step-by-step workflow for designing and building Next.js App Router pages (RSC page.tsx, loading skeleton, metadata, JSON-LD schema, and dynamic static params). Triggers on "/nextjs-page-dev", "create page", "new page", "develop page", "build route", or "implement page".

BIGboss248/nextjs-wordpress

Workflow and engineering standards for crafting co-located Storybook CSF3 stories ([ComponentName].stories.tsx) with interactive controls, action spies, and 4 canonical theme variants.

BIGboss248/nextjs-wordpress

>- Build Next.js e-commerce frontends backed by WooCommerce APIs, handling ISR catalogs, cart sessions, and JWT authentication. Use when building or querying Next.js stores with WooCommerce.

BIGboss248/nextjs-wordpress

Self-correcting rules engine and feedback loop that learns from user corrections, mistakes, and project-specific constraints by maintaining a persistent autofix ruleset. Scans learned rules before starting any task, resolves conflicts, and automatically appends new rules upon corrections. Triggers on user corrections ("no, do it this way", "never do X", "always use Y"), /learn, "self repair", "add rule", "update rules", or when diagnosing assumptions and bugs. CRITICAL ALWAYS-ACTIVE LIFECYCLE SKILL. Must always be kept in context, loaded at session start, and consulted before starting ANY task to read and apply active constraints from autofix.json. MUST ALWAYS be triggered immediately whenever the user provides ANY correction, preference, criticism, rejection of an approach, or adjustment ("no", "don't do X", "use Y", "remember", "prefer"), or when any mistake/bug is identified. Automatically and immediately formulates and appends the new imperative rule to the project's autofix.json ruleset file.

BIGboss248/nextjs-wordpress

Setup, automate, and execute SEO audits, CI/CD pre-push/pre-deploy checks, and ranking optimizations using the seo CLI and MCP server.

BIGboss248/nextjs-wordpress

End-to-end repository onboarding and development environment setup skill. Scans repository structure, configures project metadata (docs/project.json), sets up the codebase-memory-mcp code intelligence knowledge graph server (in workspace mcp.json and globally for AGY only), configures git hooks with Husky and Commitlint, establishes multi-stage production Docker containerization, and automates credit-optimized Release Please CI/CD with multi-arch (AMD64 & ARM64) GHCR package deployment. Triggers on "/setup-repository", "setup repository", "setup repo", "initialize repository", "new repo setup", or when preparing any repository for development and AI agent workflows.

BIGboss248/nextjs-wordpress

AI screen scaffolding, layout generation, and variant exploration workflow powered by Google Stitch (StitchMCP). Consumes a component design specification (docs/design/components/[page name]/[component name]/design-spec.md), verifies and reuses the central Stitch project in docs/project.json (or creates/persists one if absent), seeds the project's design system into Stitch, synthesizes layout prompts to generate a screen and create one variant of the given design spec file, downloads and saves Stitch JPG screenshots and HTML code files directly into docs/design/components/[page name]/[component name]/stitch/ using binary-safe PowerShell Invoke-WebRequest, outputs image prompts to the user if visual assets are needed (without calling generate_image to conserve tokens), updates design-spec.md with Stitch layout benchmarks, and audits asset download integrity with an independent subagent. Triggers on "/stitch-design", "generate stitch screen", "create stitch variant", "scaffold screen with stitch", or "stitch...

関連スキル