Communitygithub.com

BIGboss248/nextjs-wordpress

스스로 수정하는 규칙 엔진 및 피드백 루프: 사용자 수정, 실수, 프로젝트별 제약 조건을 학습하여 지속적인 자동 수정 규칙 세트를 유지합니다. 작업 시작 전 학습된 규칙을 스캔하고 충돌을 해결하며, 수정 사항이 발생하면 자동으로 새 규칙을 추가합니다.

nextjs-wordpress란 무엇인가요?

이 스킬은 AI 에이전트가 세션 간 동일한 실수를 반복하지 않도록 방지하는 '자기 수정(Self-Repair)' 규칙 엔진입니다. 사용자가 '아니요, 이렇게 하세요', '절대 X를 하지 마세요' 등의 수정 사항을 제공하거나 `/learn` 명령어를 입력하면, 스킬이 즉시 트리거되어 `autofix.json` 파일에 새로운 명령형 규칙을 추가합니다. 작업을 시작하기 전에 항상 `autofix.json`을 읽어 활성 제약 조건을 로드하고, 충돌하는 규칙이 있으면 최신 규칙(높은 번호)을 우선 적용합니다. 스타일, 코드, 아키텍처, 도구, 프로세스, 데이터, UX 등 다양한 카테고리의 규칙을 저장하며, Claude Code, Cursor, Codex 등 파일 시스템에 접근 가능한 모든 AI 에이전트 플랫폼에서 사용할 수 있습니다.

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

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

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

문서

자가 수리 (자기 교정 규칙 엔진)

수정 사항, 프로젝트 관례, 버그 수정을 영구 규칙 파일(autofix.json)에 기록하는 자기 교정 메모리 및 학습 엔진입니다. 에이전트가 지속적으로 적응하고, 세션 간 반복 실수를 없애며, 사용자 선호도를 엄격히 준수하도록 보장합니다.

이것이 작동하는 이유: AI 에이전트는 새로운 세션에서 동일한 기본 가정이나 스타일 오류를 반복하는 경향이 있습니다. 학습된 지식을 명령형, 버전 관리된 JSON 규칙 집합(새 규칙 우선)으로 외부화함으로써, 에이전트는 특정 사용자와 저장소에 맞춰진 엄격한 경계를 유지합니다.


저장 및 구성

이 스킬은 다음 위치 중 하나에서 규칙 파일을 찾습니다(우선순위 순).

  1. .agents/autofix.json
  2. autofix.json (작업 공간 루트)
  3. .rules/autofix.json

새 규칙을 추가해야 할 때 파일이 없으면 .agents/autofix.json(또는 프로젝트 관례에 따라 루트 autofix.json)을 생성합니다.

규칙 스키마

각 규칙은 다음 스키마로 JSON 배열 내에 저장됩니다.

[
  {
    "Rule_number": 1,
    "Category": "CODE",
    "Instruction": "Never use default exports for React components - always use named exports.",
    "Why": "Ensures consistency with the codebase and simplifies refactoring."
  }
]

허용된 카테고리

카테고리설명예시
[STYLE]코드 형식, 명명 규칙, 임포트 순서, 주석"헬퍼 함수에는 항상 camelCase를 사용하세요."
[CODE]언어 패턴, 라이브러리 선택, 타입 정의, 오류 처리"TypeScript에서 any를 절대 사용하지 마세요. 타입 가드와 함께 unknown을 사용하세요."
[ARCH]디렉토리 구조, 모듈 경계, 아키텍처 계층"API 라우트는 src/server/routes/에 있고, src/api/에 있으면 안 됩니다."
[TOOL]CLI 명령, 빌드 도구, 패키지 매니저, 테스트 프레임워크"npm이나 yarn 대신 항상 pnpm을 사용하세요."
[PROCESS]Git 워크플로우, 커밋 메시지, PR 요구 사항, 테스트 게이트"커밋 메시지에 이모지를 절대 추가하지 마세요."
[DATA]데이터베이스 스키마, 마이그레이션, 캐싱 전략, 상태 형태"테이블에 항상 created_at 및 updated_at 타임스탬프를 포함하세요."
[UX]UI 동작, 카피 컨벤션, 접근성 표준"아이콘만 있는 버튼에는 항상 명시적인 aria-label을 제공하세요."
[OTHER]일반적인 프로젝트 또는 도메인별 선호도"공개 API 엔드포인트는 항상 마크다운 테이블 형식으로 문서화하세요."

운영 워크플로우

[세션 시작 / 작업 수신]
            │
            ▼
┌───────────────────────────────┐
│ 1. 사전 작업 스캔              │ ◄── autofix.json 읽기
│    - 모든 규칙 로드            │
│    - 충돌 해결 (새 규칙 우선)  │
│    - 활성 제약 조건 구축       │
└───────────┬───────────────────┘
            │
            ▼
┌───────────────────────────────┐
│ 2. 작업 실행                  │
│    - 제약 조건 적용            │
│    - 코드/편집 실행            │
└───────────┬───────────────────┘
            │
            ├─────────────────────────────────────────┐
            │                                         │
     [수정 없음]                              [트리거 감지]
            │                                         │
            ▼                                         ▼
┌───────────────────────────────┐       ┌───────────────────────────────┐
│ 작업 완료                      │       │ 3. 자가 수리 및 캡처           │
│ 사용자에게 결과 전달           │       │    - 명령형 규칙 공식화        │
└───────────────────────────────┘       │    - autofix.json에 추가       │
                                        │    - 학습 인정                 │
                                        └─────────────┬─────────────────┘
                                                      │
                                                      ▼
                                        ┌───────────────────────────────┐
                                        │ 4. 재실행 및 수정             │
                                        │ 현재 작업 출력 수정           │
                                        └───────────────────────────────┘

상세 단계별 실행

1. 사전 작업 스캔 (작업 시작 전)

작업을 계획하거나 파일을 수정하기 전에:

  1. autofix.json 파일을 찾아 로드합니다.
  2. 규칙을 스캔합니다:
    • 현재 프롬프트와 관련된 파일, 도구 또는 패턴에 직접 적용되는 규칙이 있는지 확인합니다.
  3. 충돌을 해결합니다:
    • 두 규칙이 상충되는 지침을 제공하는 경우 숫자가 더 높은(최신) 규칙이 우선합니다.
  4. 제약 조건을 활성 상태로 유지합니다:
    • 모든 활성 규칙을 하드 제약 조건(프롬프트 계약의 CONSTRAINTS와 동일)으로 처리합니다.

2. 규칙을 추가해야 하는 경우 (트리거 조건)

다음 중 하나라도 발생하면 즉시 규칙 캡처를 트리거합니다.

  • 사용자가 명시적으로 출력을 수정: 예: "아니요, X를 사용하지 말고 Y로 하세요", "여기서는 클래스 컴포넌트를 사용하지 않습니다."
  • 사용자가 파일, 접근 방식 또는 패턴을 거부: 예: "테스트 파일을 소스 코드 옆에 두지 마세요."
  • 사용자가 개인/팀 선호도를 명시: 예: "커밋 메시지는 항상 Conventional Commits 형식으로 포맷하세요", "문서에 이모지를 절대 사용하지 마세요."
  • 잘못된 가정으로 인해 버그가 발생한 경우: 에이전트가 실패를 유발한 라이브러리나 파일 위치를 가정했습니다.
  • 사용자가 /learn을 실행하거나 규칙을 기억하도록 요청한 경우.

3. 새 규칙 추가

트리거가 발생하면 다음과 같은 원자적 업데이트를 수행합니다.

  1. 기존 autofix.json 배열을 읽습니다.
  2. 다음 순차 Rule_number를 결정합니다.
    • 가장 높은 기존 규칙 번호가 $N$이면 새 규칙 번호는 $N + 1$입니다.
    • 파일이 비어 있거나 새 파일이면 1부터 시작합니다.
  3. 새 규칙 객체 형식을 지정합니다.
    • Rule_number: 순차 정수.
    • Category: 표준 카테고리 중 하나(STYLE, CODE, ARCH, TOOL, PROCESS, DATA, UX, OTHER).
    • Instruction: 엄격한 명령형 형식으로 작성: "Never/Always do X - because Y."
    • Why: 간단한 이유 (예: "user preference", "codebase pattern", "framework limitation").
  4. 규칙을 JSON 배열에 추가하고 2-공백 들여쓰기로 파일을 저장합니다.
  5. 기존 규칙을 절대 삭제하지 마십시오. 이전 규칙이 대체되는 경우 더 높은 번호가 우선하도록 새 규칙을 작성합니다.
  6. 사용자에게 간략히 알립니다.

    "규칙 #<N> ([CATEGORY]) 학습됨: <Instruction> — autofix.json에 기록됨."


4. 규칙 파일 예시 (autofix.json)

[
  {
    "Rule_number": 1,
    "Category": "PROCESS",
    "Instruction": "Never add emojis to commit messages - keep commit titles plain Conventional Commits.",
    "Why": "user preference"
  },
  {
    "Rule_number": 2,
    "Category": "ARCH",
    "Instruction": "Always place API route handlers in 'src/server/routes/', never in 'src/api/' - maintain consistent backend architecture.",
    "Why": "existing codebase pattern"
  },
  {
    "Rule_number": 3,
    "Category": "CODE",
    "Instruction": "Always use Zod schemas for input validation on all external entry points - prevent untyped runtime inputs.",
    "Why": "prevents runtime errors and enforces types"
  }
]

모범 사례 및 엣지 케이스

  • 원자적 JSON 쓰기: 항상 기존 JSON 배열을 구문 분석하고 새 객체를 추가한 후 유효한 JSON으로 다시 작성하십시오. 이스케이프되지 않은 텍스트로 파일을 손상시키지 마십시오.
  • 구체적이고 명령형으로: 다른 AI가 모호함 없이 따를 수 있는 규칙을 작성하십시오. "깔끔한 코드 작성"과 같은 모호한 조언은 피하고, 대신 ".types.ts 파일에 컴포넌트 구현과 함께 항상 타입을 내보내십시오"와 같이 선호하십시오.
  • 무한 루프 금지: 규칙을 기록할 때 규칙 파일 자체에 대해 별도의 자가 수리 루프를 트리거하지 마십시오.
  • 규칙 대체: 규칙 1이 "Axios 사용"이고 사용자가 나중에 "모든 것을 Fetch로 마이그레이션"하라고 지시하면, 규칙 4 "Axios 대신 항상 기본 Fetch를 사용"을 Why: "user requested migration to native fetch (supersedes Rule 1)"와 함께 추가하십시오.

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

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

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

관련 스킬