Communitygithub.com

BIGboss248/nextjs-wordpress

Next.js App Router 페이지(RSC page.tsx, 로딩 스켈레톤, 메타데이터, JSON-LD 스키마, 동적 정적 파라미터)를 설계하고 구축하기 위한 단계별 워크플로우입니다. "/nextjs-page-dev", "create page", "new page", "develop page", "build route", "implement page" 명령어로 트리거됩니다.

nextjs-wordpress란 무엇인가요?

이 스킬은 Next.js App Router를 사용하여 프로덕션에 바로 투입 가능한 페이지와 경로를 개발하기 위한 종합 워크플로우를 제공합니다. 개발자가 비동기 경로 파라미터, 지역화된 번역 딕셔너리, 동적 메타데이터, 타입 안전 JSON-LD 구조화 데이터(`schema-dts`), 정적 사전 렌더링을 처리하는 완전한 페이지 인프라를 만들 수 있도록 안내합니다. 이 워크플로우는 5단계로 구성되어 있습니다: 구현 계획 승인, 번역 딕셔너리 채우기, 로딩 스켈레톤 생성, 페이지 컴포넌트 구현(제공된 템플릿 사용), 그리고 검증 스크립트 실행을 통한 최종 확인. 이 스킬은 코드의 하드코딩을 방지하고, `@/lib/routes`의 중앙 경로 정의를 활용하며, 검증 스크립트를 실행하여 타입스크립트 오류나 누락된 번역이 없는지 확인합니다. 이 스킬은 명확한 템플릿과 스트리밍, SEO, 페이지 컨벤션에 대한 참조 가이드를 제공하여 일관되고 확장 가능한 페이지 개발을 보장합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/BIGboss248/nextjs-wordpress/tree/HEAD/.agents/skills/nextjs-page-dev

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Next.js 페이지 및 경로 개발 (nextjs-page-dev)

비동기 경로 파라미터, 지역화된 번역 딕셔너리, 동적 메타데이터, 타입 안전 JSON-LD 구조화 데이터 (schema-dts) 및 정적 사전 렌더링을 사용하여 프로덕션에 바로 투입 가능한 Next.js App Router 페이지를 생성하기 위한 특화 워크플로우입니다.

[!TIP] 모듈식 에셋 및 심층 가이드:


아키텍처 규칙 및 표준

1. 계획 컨텍스트 및 경로 레지스트리

  • docs/project.json을 읽어 supported_languages, dictionaries_dir(기본값: "messages"), new_component_dir을 확인합니다.
  • 모든 탐색 URL은 @/lib/routes 또는 @/i18n/navigation의 ROUTES를 참조해야 합니다.
  • 대상 페이지 경로 계층 구조: app/[locale]/<route-path>/page.tsx (또는 비지역화된 경로의 경우 app/<route-path>/page.tsx).

2. 제로 하드코딩 및 딕셔너리 채우기

  • 하드코딩된 사본 없음: 페이지 제목, 헤딩, 설명 및 정적 레이블은 JSX를 작성하기 전에 모든 supported_languages에 걸쳐 messages/[locale].json에 추가되어야 합니다.
  • RSC 번역: await getTranslations('<namespace>')를 사용하여 서버 컴포넌트에서 번역을 읽습니다.

3. SEO, 메타데이터 및 JSON-LD

  • 동적 메타데이터: 동적 title, description 및 표준 URL(alternates: { canonical: ... })을 제공하는 generateMetadata({ params, searchParams }: Props)를 내보냅니다.
  • 구조화 데이터: <script type="application/ld+json">로 감싸고 < 문자를 \u003c로 이스케이프 처리한 schema-dts (WithContext<T>)를 사용하여 타입이 지정된 JSON-LD를 삽입합니다.
  • 스키마에 대해서는 references/seo-structured-data-guide.md를 참조하십시오.

4. 정적 사전 렌더링 (generateStaticParams)

  • 페이지가 [locale] 동적 세그먼트(또는 다른 동적 세그먼트) 아래에 중첩되어 있고 supported_languages에 1개 이상의 로케일이 포함된 경우, 지원되는 모든 로케일에 대해 { locale }을 반환하는 generateStaticParams()를 내보냅니다.

5. 즉시 탐색 및 세분화된 서스펜스 푸시 다운

  • 세분화된 로딩 상태: <Suspense>를 특정 동적 하위 컴포넌트로 푸시 다운하여 정적/캐시된 섹션(헤더, 히어로, 캐시된 제품 정보)이 즉시 정적 쉘 및 앱 쉘로 올라가도록 합니다.
  • 옵트아웃: 세그먼트가 본질적으로 동적이고 즉각적인 피드백이 필요하지 않은 경우 export const instant = false를 구성합니다.
  • 스트리밍 패턴에 대해서는 references/streaming-and-boundaries.md를 참조하십시오.

워크플로우 단계

  • 단계 0: 구현 계획 생성 및 승인 게이트

    • docs/project.json 및 lib/routes.ts의 대상 경로 정의를 읽습니다.
    • 페이지 메타데이터, JSON-LD 스키마 유형, 번역 네임스페이스 및 컴포넌트 레이아웃을 공식화합니다.
    • 주요 새 페이지를 생성하는 경우 간결한 구현 계획을 사용자에게 제시합니다.
  • 단계 1: 번역 딕셔너리 채우기

    • 모든 로케일 파일(messages/en.json, messages/fa.json 등)에 전용 페이지 네임스페이스 아래에 페이지 제목, 메타 설명 및 페이지 본문 사본을 추가합니다.
  • 단계 2: 동반 스켈레톤 생성 (loading.tsx)

    • 페이지가 콘텐츠를 스트리밍하거나 데이터를 가져오는 경우 loading.tsx.template에서 loading.tsx를 배포합니다.
  • 단계 3: 페이지 컴포넌트 구현 (page.tsx)

    • page.tsx.template을 배포 및 사용자 지정합니다:
      1. 비동기 props 인터페이스 정의 (params: Promise<{ locale: string, ... }>, searchParams).
      2. 동적 제목 및 표준 대체 URL을 해결하는 generateMetadata() 내보내기.
      3. 지역화/동적 경로에 대한 generateStaticParams() 내보내기.
      4. <new_component_dir>/<page-name>/의 섹션 컴포넌트를 구성하는 페이지 RSC 구현.
      5. <JsonLd> 구조화 데이터 컴포넌트 렌더링.
  • 단계 4: 검증 및 상태 확인

    • 페이지 검증 스크립트를 실행합니다:
      • Windows (PowerShell):
        pwsh .agents/skills/nextjs-page-dev/scripts/verify-page.ps1 -RoutePath <route_dir>
        
      • Linux / macOS (Bash):
        bash .agents/skills/nextjs-page-dev/scripts/verify-page.sh <route_dir>
        
    • 타입스크립트 오류 또는 누락된 딕셔너리가 없는지 확인합니다.
  • 단계 5: 구현 계획 체크리스트 동기화

    • docs/plan/05-pages-and-components.md에서 완료된 페이지 인프라 항목(page.tsx, loading.tsx, error.tsx, generateMetadata, JSON-LD Schema, generateStaticParams())을 체크합니다.
    • 이 페이지에 대한 모든 컴포넌트 하위 체크리스트와 페이지 인프라 작업이 완료되면 상위 페이지 항목을 체크합니다 (- [x]).

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

>- Orchestrate end-to-end planning for Next.js App Router projects, generating canonical specifications, design systems, and a 7-phase modular implementation roadmap in docs/plan/. Triggers on "/nextjs-plan", "plan a nextjs project", "plan nextjs app", "create nextjs project plan", "outline nextjs architecture", or "generate plan".

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...

관련 스킬