SSkilltecabyclaudinhocode
Enviar skill
← Voltar para o catálogo

wp-stack

Desenvolvimento

Build, fix, optimize, and debug WordPress sites with the standard stack (Astra Free + Elementor Pro + ACF + msrbuilds/elementor-mcp). Activates when the user asks for WordPress, Elementor, page-builder, landing-page, CPT, custom-field, theme-settings, plugin-config, deploy, migrate, performance, security, or SEO work, or mentions any tool in the stack (Astra, Elementor, ACF, JetEngine, Rank Math,

3estrelas
Ver no GitHub ↗Autor: tranminhmanhLicença: MIT

WordPress Stack Skill — Universal

This skill applies to any WordPress site, regardless of the specific project.

Separation of concerns (IMPORTANT)

This skill contains WHAT — universal knowledge about the stack, design tokens, MCP, and conventions. Project CLAUDE.md files contain WHERE/WHO — which host, which path, which brand, which colors.

Do NOT hardcode host/SSH/path/database information in this skill. Read project-specific information from:

  1. ~/.claude/CLAUDE.md — global user preferences
  2. <project-root>/CLAUDE.md — current project

If a CLAUDE.md does not have the information you need → ask the user, do not guess.

Standard stack (REQUIRED)

Read references/stack.md for the full list of plugins and versions.

Summary:

  • Theme: Astra Free (NOT Pro — Elementor Pro already covers the overlapping features)
  • Page builder: Elementor Pro 3.20+ with Flexbox Containers
  • Custom fields: ACF Free → JetEngine when relationships are needed
  • MCP: msrbuilds/elementor-mcp v1.4+
  • SEO: Rank Math (NOT Yoast)
  • Cache: WP Rocket or LiteSpeed Cache
  • Backup: UpdraftPlus + provider-level snapshots
  • Security: Wordfence + 2FA admin
  • Email: WP Mail SMTP + SendGrid / Brevo / Mailgun

Core principles

  1. Native widget preferred — HTML widget acceptable for legitimate cases — Native Elementor widget (heading / text-editor / button / icon-list / accordion / image / price-list / testimonial-carousel) là default cho content thông thường vì performance + accessibility + Elementor-aware editing. HTML widget acceptable cho: (a) JSON-LD schema injection, (b) third-party embeds (Maps, social), (c) inline SVG icons với currentColor, (d) custom badge/sticker designs không tồn tại native, (e) hero blocks cần exact control. Anti-pattern: dùng HTML widget cho mọi paragraph/heading content (lose Elementor styling, hurt portability, break responsive).
  2. Flexbox Container — do not use the legacy Section/Column system
  3. Design tokens — read references/design-tokens.md, do not invent numbers
  4. Verify after write — call get-page-structure after every MCP write
  5. Backup before editing production — always
  6. Staging first — do not edit production directly via MCP
  7. Locale-aware — UTF-8, fonts with the correct subset, copy reviewed by a native speaker
  8. Mobile-first responsive — three required breakpoints (375 / 768 / 1280)
  9. Performance budget — Lighthouse mobile ≥85, LCP <2.5s
  10. Security defaultswp-config hardened, file permissions correct

Standard workflow for any task

  1. Ask for context: which project? staging or prod? backup taken?
  2. Read the project CLAUDE.md to get brand / host / path
  3. Verify the actual stack matches references/stack.md
  4. Plan the steps and let the user approve
  5. Execute with verification at each step
  6. Report: what was done, verification link, suggested next step

When to load which reference

TaskFiles to load
Build/edit a landing pagedesign-tokens + elementor-mcp + widget-mapping + responsive
Theme settings, header, footerastra-customizer + elementor-mcp
Create a CPT or custom fieldworkflows/add-cpt.md
Loop template, archiveworkflows/theme-builder-loop.md
Set up a new site from scratchworkflows/new-site-setup.md
SEO setupseo-checklist + vietnamese (for Vietnamese sites)
Slow siteperformance
Hacked / malwaresecurity
Deploy / migratedeployment + workflows/migrate-staging-prod.md
MCP errorspitfalls + mcp-architecture (1 plugin = 1 endpoint = 1 connector)
MCP bridge 404 / tool count gapmcp-architecture + wp-abilities (REST fallback)
Setup MCP connector mớiworkflows/claude-mcp-connector-setup.md
Distill insights cuối sessionworkflows/session-distillation.md
Bulk-build N similar pagesworkflows/clone-transform-pattern.md
OG image generation at scaleworkflows/og-image-generation.md
SEO audit on N pagesworkflows/seo-audit.md
SMTP relay setup (form email)workflows/smtp-relay-setup.md
Bilingual / multilingual site (Polylang)workflows/multilingual-polylang.md
Image optimization at scaleimage-optim-recipes + workflows/lighthouse-driven-optim.md
Accessibility audit failuresa11y-debugging + workflows/lighthouse-driven-optim.md
Fluent Forms styling / integrationfluent-forms + pitfalls
Redesign a live page (preserve content)workflows/redesign-page.md
Verify visual layout claims (counter to bias)workflows/ui-verification.md
Brand-fact consistency across pagesworkflows/content-reference.md + templates/content-reference-template.md
Apply a design system to Astra + Elementorworkflows/design-system-rollout.md + astra-customizer + elementor-mcp
Comprehensive site audit (no Lighthouse needed)workflows/comprehensive-audit.md
Astra mobile menu debugging (modes + iOS bfcache + 6-layer defense)astra-mobile-menu + elementor-mcp (Custom Code Snippets)
"Bug only on one site" — multi-factor cocktailworkflows/multi-factor-bug-debug.md
Wrap a plugin's REST routes into MCP abilitiesworkflows/build-mcp-wrapper-plugin.md + wp-abilities
Rank Math automation (bulk meta, redirects, SEO score)references/rankmath.md + references/wp-abilities.md
JSON-LD / Schema.org markup (LocalBusiness, Physician, YMYL)references/schema-jsonld.md + references/seo-checklist.md
Native HTML patterns (FAQ accordion, modal, map embed — zero JS)references/native-html-patterns.md
LiteSpeed cache stale-read fix (REST GET after write)workflows/litespeed-cache-mgmt.md + references/performance.md
Bulk content automation (idempotent prepend/append via REST)workflows/bulk-content-automation.md + references/wp-abilities.md
Code Snippets plugin REST API (audit + surgical edit)references/code-snippets.md
Google Business Profile setup (description + category)references/gbp-setup.md
MU-plugin patterns (suppress upstream Closure, bridge, polyfill)references/mu-plugin-patterns.md
PHP error_log + opcache + huge log filter (shared hosting debug)references/troubleshooting.md
Site uses Flatsome / WPBakery / Bricks / non-standard builderreferences/non-standard-stacks.md ⚠️ DON'T propose Elementor MCP tools
Deploy rankmath-mcp wrapper plugin (4 distribution paths)workflows/deploy-rankmath-mcp-wrapper.md

Anti-patterns — STRICTLY avoid

  • Suggesting Divi / WPBakery / Bricks (the stack is Elementor only) Recommending Divi / WPBakery / Bricks for a NEW build (Elementor is canonical). For inherited sites already using these builders, see references/non-standard-stacks.md — don't propose builder migration unless owner explicit
  • Suggesting Hello / GeneratePress / OceanWP themes (the stack is Astra only) Suggesting other themes for a NEW build (Astra is canonical). Inherited Flatsome / GeneratePress sites: document trong CLAUDE.md + work within their constraints
  • Proposing Elementor MCP tools on a site that doesn't have Elementor (check stack first — see non-standard-stacks.md §Detection)
  • Editing production without a backup
  • Installing a plugin outside the stack without asking
  • Suggesting "rebuild from scratch" when an incremental fix is possible
  • Generating Vietnamese (or other non-English) copy without flagging it for native review
  • Skipping the mobile breakpoint
  • Inline CSS instead of widget settings (legitimate exceptions: see references/code-snippets.md global CSS pattern)
  • Using HTML widget for everything (NATIVE preferred for content; HTML acceptable for JSON-LD schema, third-party embeds, inline SVG, custom badges)
  • HTML widgets for text / button / heading
  • Guessing SSH alias, path, or database name when CLAUDE.md do

Como adicionar

/plugin marketplace add tranminhmanh/wp-stack-skill

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Comentários · Nenhum comentário

Entre para comentar. Entrar

  • Ainda não há comentários. Seja o primeiro.