Community写作与编辑github.com

BIGboss248/nextjs-wordpress

创建、配置、管理和验证 Google Antigravity 自定义功能,包括技能、规则、MCP 服务器、生命周期钩子、插件和自定义 JSON 配置。在向 Antigravity 添加新功能、配置 MCP 服务器、编写规则、创建技能、设置钩子或迁移传统工作流时使用。

nextjs-wordpress 是什么?

此技能为 Google Antigravity 的全方位自定义器,旨在帮助开发者或 AI 代理自主设计、搭建、配置、迁移和验证 Antigravity 环境中的各种自定义项,涵盖工作区(团队共享)和全局(跨项目统一)两种范围。它通过一个清晰的决策矩阵表,指导用户根据具体需求(如创建多步骤流程、强制执行编码规范、连接外部服务、拦截生命周期事件、打包共享组件或注册非标准路径)选择最合适的自定义机制(技能、规则、MCP 服务器、生命周期钩子、插件或 JSON 配置)。技能提供了详细的操作指南,包括添加新技能时的目录结构、YAML 前置元数据编写规范、渐进式信息揭示原则;创建规则时的范围选择、激活模式(始终开启、模型决定、全局匹配、手动触发);配置 MCP 服务器时的传输方式(stdio 和远程 SSE)和认证方法;以及设置生命周期钩子、打包插件和迁移传统工作流的具体步骤。此外,它还附带一个全面的验证检查清单,确保所有自定义项在语法、字符限制、连接和一致性上符合要求,并能与外部笔记系统(Obsidian)同步。该技能支持在 Claude Code、Cursor 等使用 Antigravity 机制的 AI 代理平台上运行,是管理整个自定义生态系统的中心化工具。

兼容平台✓Claude Code~Codex CLI~Cursor✓Antigravity✓Gemini CLI
npx skills add https://github.com/BIGboss248/nextjs-wordpress/tree/HEAD/.agents/skills/ag-customizer

Installed? Explore more 写作与编辑 skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Antigravity 自定义器 (ag-customizer)

使用此技能自主设计、搭建、配置、迁移和验证 Google Antigravity 的自定义项,涵盖工作区和全局范围。


快速导航决策矩阵

确定最能解决问题的自定义机制:

需求机制文件位置参考指南
教给代理多步骤运行手册、程序或斜杠命令技能.agents/skills/<name>/SKILL.md 或 ~/.gemini/antigravity/skills/<name>/SKILL.mdskills-guide.md
强制执行持久约束、编码标准或样式规则规则.agents/rules/<name>.md、AGENTS.md 或 ~/.gemini/GEMINI.mdrules-guide.md
连接外部服务、本地数据库或自定义工具MCP 服务器.agents/mcp_config.json 或 ~/.gemini/config/mcp_config.jsonmcp-guide.md
拦截生命周期事件(门控命令、注入提示、停止看门狗)生命周期钩子.agents/hooks.json 或 ~/.gemini/config/hooks.jsonhooks-guide.md
将技能、规则、钩子和 MCP 打包成可共享的软件包插件.agents/plugins/<name>/ 或 ~/.gemini/config/plugins/<name>/plugins-and-configs.md
注册非标准路径或通过版本控制系统共享自定义项JSON 配置.agents/skills.json 或 .agents/plugins.jsonplugins-and-configs.md
将已弃用的工作流升级为现代斜杠命令技能工作流迁移.agents/workflows/*.md -> .agents/skills/<name>/SKILL.mdworkflows-migration.md

操作工作流

1. 添加新技能

  1. 确定范围:
    • 工作区:.agents/skills/<name>/(检入到仓库供团队使用)。
    • 全局:~/.gemini/antigravity/skills/<name>/(在所有项目中可用)。
  2. 构建目录结构:
    <customization_root>/skills/<skill-name>/
    ├── SKILL.md             # 必需:带有 YAML 前置元数据的入口点
    ├── scripts/             # 可选:辅助脚本(按 --help 模式运行)
    ├── references/          # 可选:公开的手册和大量文档
    └── examples/            # 可选:示例代码或输出参考
    
  3. 撰写前置元数据:
    • name:小写、连字符分隔(例如 nextjs-otel、docker-deploy)。这也注册为斜杠命令(/<name>)。
    • description:使用 第三人称 的 1-3 句话,明确说明技能 做什么 以及代理应激活它的 特定触发短语/场景。
  4. 应用渐进式信息揭示:
    • 保持主 SKILL.md 紧密聚焦于操作步骤序列和完成标准。
    • 将深入参考资料披露到 references/<topic>.md 文件中,并使用相对链接引用它们。
    • 有关结构模板,请参阅 skills-guide.md。
  5. Obsidian 镜像检查:
    • 在此工作区中更新或创建技能时,根据仓库指南,将技能文件夹镜像到 d:/Scripts/Obsidian/skills/<name>/。

2. 创建规则

  1. 确定范围和格式:
    • 工作区规则:项目根目录下的 .agents/rules/<rule-name>.md 或 AGENTS.md。
    • 全局规则:~/.gemini/GEMINI.md。
  2. 选择激活模式(对于 .agents/rules/*.md):
    • always_on:无条件地在每次对话轮次中注入。请谨慎使用以保留上下文。
    • model_decision:当代理根据描述确定相关性时披露。
    • glob:每当匹配文件被触及或打开时自动激活(例如 *.tsx、src/api/**/*.ts)。
    • manual:仅在聊天中通过 @提及 显式调用时加载(例如 @my-rule.md)。
  3. 编写内容:
    • 保持在每个文件 12,000 字符预算 内。
    • 使用 肯定 语句描述目标行为(“执行 X” 、“始终按 Y 方式构建”),而非否定性禁止。
    • 如有需要,使用 @filename 链接到配套的上下文文件。
    • 有关完整语法和激活前置元数据,请参阅 rules-guide.md。

3. 配置 MCP 服务器

  1. 确定文件位置:
    • 工作区:<workspace>/.agents/mcp_config.json
    • 全局:~/.gemini/config/mcp_config.json
  2. 选择传输方式:
    • stdio(本地可执行文件):
      {
        "mcpServers": {
          "my-server": {
            "command": "npx",
            "args": ["-y", "@modelcontextprotocol/server-sqlite", "app.db"],
            "env": { "SQLITE_READONLY": "true" }
          }
        }
      }
      
    • 远程(SSE / Streamable HTTP):

      [!IMPORTANT] 始终使用键 serverUrl。遗留键 url 或 httpUrl 不受支持。

      {
        "mcpServers": {
          "my-remote": {
            "serverUrl": "https://api.example.com/mcp/",
            "headers": { "Authorization": "Bearer YOUR_TOKEN" }
          }
        }
      }
      
  3. 认证:
    • Google 应用程序默认凭据:"authProviderType": "google_credentials"(需要先运行 gcloud auth application-default login)。
    • OAuth:"oauth": { "clientId": "...", "clientSecret": "..." },重定向 URI 为 https://antigravity.google/oauth-callback。
  4. 工具过滤:
    • 临时禁用工具而不移除服务器:"disabledTools": ["destructive_command"]。
    • 有关预构建配置,请参阅 mcp-guide.md。

4. 设置生命周期钩子

  1. 目标文件:.agents/hooks.json(或 ~/.gemini/config/hooks.json)。
  2. 支持的事件:
    • PreToolUse:匹配工具名称(run_command、write_to_file、*)以门控执行(allow、deny、ask、force_ask)或浅覆盖参数。
    • PostToolUse:审计输出、运行 linter 或在工具完成后格式化代码。
    • PreInvocation:在模型处理轮次之前注入上下文或系统指令(使用 injectSteps 和 ephemeralMessage)。
    • PostInvocation:强制继续(terminationBehavior: "force_continue")或停止。
    • Stop:检查任务完成情况(terminationReason、fullyIdle)并返回 decision: "continue" 及 reason 以阻止过早退出。
  3. 契约规则:
    • 执行通过 stdin 传递上下文,并通过 stdout 接收响应。
    • 所有 JSON 负载键使用 camelCase(conversationId、stepIdx、toolCall 等)。
    • 命令同步执行,并阻塞代理循环直到超时(默认 30 秒)。
    • 有关 Python、PowerShell 和 Bash 的模板,请参阅 hooks-guide.md。

5. 打包插件或 VCS 共享配置

  1. 插件包:
    • 将相关的技能、规则、钩子和 MCP 服务器分组到 .agents/plugins/<plugin-name>/。
    • 添加 plugin.json 清单({"name": "my-plugin"})。
    • 在 config.json 的 "plugins" 下管理激活状态:{ "<plugin-name>": { "enabled": true } }。
  2. JSON 配置(skills.json / plugins.json):
    • 注册外部目录或共享团队仓库。
    • 支持 entries(路径)和 inherits(其他配置),带有 include_only 和 exclude 正则过滤器。
    • 有关完整清单示例,请参阅 plugins-and-configs.md。

6. 现代化传统工作流

  1. 检查是否存在已弃用的 .agents/workflows/*.md 或 ~/.gemini/config/workflows/*.md。
  2. 提取操作说明并生成具有正确 YAML 前置元数据的等效 SKILL.md。
  3. 将原始文件存档为 <name>.md.bak(安全保留)。
  4. 有关自动迁移运行手册,请参阅 workflows-migration.md。

验证与检查清单

在认为任何自定义项完成之前:

  • JSON 语法:确保所有 .json 文件都能无语法错误或注释地正确解析。
  • 前置元数据检查:验证 SKILL.md 包含带有 name 和描述性 description 的有效 YAML 前置元数据。
  • 字符预算:确保规则 Markdown 文件在 12,000 字符限制内。
  • MCP 连接:验证命令二进制文件或远程 URL 是否存在并能够认证。
  • 钩子契约:验证钩子脚本接受标准输入上的 camelCase JSON,并在标准输出上返回有效 JSON。
  • Obsidian 镜像:对于此工作区中的技能,将创建的技能文件夹同步到 d:/Scripts/Obsidian/skills/<name>/。

Individual skills in this repo

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

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

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

相关技能