Logo Wordpress Category Setup

Wordpress Category Setup

Cộng đồng
XuanRanL
wordpress-category-setup

Design and deploy a WordPress blog category taxonomy (top-level categories + subcategories) with descriptions, slugs, and RankMath SEO meta. Three modes — interactive (design from scratch with the user), apply (deploy an existing categories-config.json), refresh (re-sync to live site). Use when user runs /setup-categories, when /init asks about content architecture, or when a project is preparing to publish its first articles and needs the topical-authority foundation. Triggers on "setup categories", "category architecture", "blog taxonomy", "category SEO", "/setup-categories".

Add to TypingMind

Tổng quan

Nhà phát hànhXuanRanL
Kho mãloamwright-SEO-Skill
Tên kỹ năngwordpress-category-setup
Sao
52
Bản fork
9
Tệp đi kèm
3
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 3 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được XuanRanL công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Wordpress Category Setup trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/XuanRanL/loamwright-SEO-Skill/tree/main/subskills/init/wordpress-category-setup
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/XuanRanL/loamwright-SEO-Skill.git /tmp/loamwright-SEO-Skill
mkdir -p .claude/skills
cp -r /tmp/loamwright-SEO-Skill/subskills/init/wordpress-category-setup .claude/skills/wordpress-category-setup
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Wordpress Category Setup trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Wordpress Category Setup ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Wordpress Category Setup với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

WordPress Category Setup

The category taxonomy is the topical-authority foundation of every WordPress content site. This subskill designs it (interactively) and deploys it (via scripts/wordpress/setup_categories.py) with full SEO optimization — slug, description, RankMath title, meta description, focus keyword, robots directive, and OG/Twitter overrides.

The canonical reference implementation is the project-charlie project, which has 6 top-level + 29 subcategories live with full RankMath metadata. New projects should adapt that pattern to their industry.

When to use

  • After /init completes for a new WordPress project — before the first /article runs, so articles have proper categories to land in
  • When expanding an existing project's product/content scope (e.g. project-charlie adding HVAC product line ⇒ activate the Climate Control category)
  • When migrating from a flat taxonomy (single "Blog" or "Buyer Guides" category) to a structured one
  • When auditing an existing site that has organically grown messy categories

Hard prerequisites

  1. Project exists: projects/{slug}/ must be initialized (run /init <url> first)
  2. WP credentials work: ~/.xuanran-seo/credentials/wordpress/{slug}.json exists and WPClient(slug).health_check() returns 200
  3. MU plugin v1.1+ deployed (RankMath bridge with register_term_meta for category taxonomy): probe GET /xuanran/v1/rank-math-bridge — bridge_version >= 1.1.0 required for the SEO title / focus keyword / OG fields to persist on category archives. Without v1.1, you still get descriptions + slugs + parent hierarchy, but RankMath custom titles default to the global template %term% %sep% %sitename%.
  4. SEO plugin = RankMath (per business-context.json :: wordpress.seo_plugin). Yoast support is out of scope — Yoast uses different meta key names and ACL rules.

Three modes

Mode A — Interactive design (greenfield, after /init)

Use when projects/{slug}/categories-config.json does NOT exist. The subskill walks an editorial-design interview, drafts the config, shows it for confirmation, then applies.

Workflow:

  1. Load context. Read projects/{slug}/business-context.json for industry, target_audience.primary, voice ratios, and (if present) default_categories and default_tags_pool. These constrain category names and descriptions to the brand voice.

  2. Surface the design principles (see references/category-design-principles.md). Walk the user through the six rules before designing — the rules drive every later decision and rejecting them upfront saves redesigns later.

  3. Top-level category interview. Ask the user to name 5–10 top-level categories. Recommend mapping to (a) product lines, (b) major service axes, or (c) the underlying engineering subsystems for a technical site (project-charlie used the 6-subsystem cultivation framework).

  4. For each top-level, ask 4–7 subcategories with intent classification:

    • Informational (definition, how-to, science, calculator, glossary)
    • Commercial-Investigation (buyer guide, comparison, roundup)
    • Transactional (rare for blog content; usually surfaced via shop)

    Reject any subcategory that conflates intents (e.g. a "Guides" subcategory mixing "What is PPFD?" with "Best 1000W LED 2026" — the first is Informational, the second is Commercial-Investigation; they cannibalize on the same archive page). This is project-charlie's Rule 3 (see skills/seo-blog/SKILL.md).

  5. Draft descriptions using the style guide (references/category-description-style-guide.md):

    • 35–80 words
    • Plain prose, NO HTML, NO inline links
    • Lead with WHAT content is in the category
    • Then WHO it's for (persona from business-context)
    • Concrete topic markers (product names, certifications, standards)
    • No inside-baseball ("E-E-A-T anchor", "engineering pillar that anchors content", "demoted to lower-priority linking")
  6. Draft RankMath meta per category:

    • rank_math_title (50–60 chars): {Category Name}: {Differentiating Phrase} | {Brand Name}
    • rank_math_description (150–160 chars): single-sentence summary including focus keyword in first 120 chars
    • rank_math_focus_keyword: 1–3 primary keywords this archive page targets
    • rank_math_robots: ["index"] (always — there is no reason to noindex a real category archive)
    • rank_math_facebook_* and rank_math_twitter_*: shorter restatement for social cards
    • rank_math_twitter_card_type: summary_large_image
  7. Validate against the design principles:

    • All slugs unique (use parent-prefixed: lighting-buyer-guides, not lighting/buyer-guides)
    • Every subcategory has exactly ONE primary intent
    • Every description is 35–80 words, plain prose, no <a href, no <p>
    • Every description has zero inside-baseball language (use the banned-phrases checklist in the style guide)
  8. Show full proposal to user as a structured table → confirm.

  9. Save to projects/{slug}/categories-config.json (schema: see template).

  10. Apply via python -m scripts.wordpress.setup_categories {slug}.

  11. Verify — fetch 3–5 live archive URLs with CF bypass header (if configured); confirm HTTP 200, description rendered, RankMath title in <title>, focus keyword in meta description.

Mode B — Apply existing config

Use when projects/{slug}/categories-config.json already exists (manually authored, copied from another project, or generated by a previous Mode A run).

Workflow:

  1. Validate the config against the schema (schemas/categories-config.schema.json — to be created when needed).
  2. Audit live site state: which categories already exist by slug?
  3. Show diff: NEW vs UPDATE vs UNCHANGED counts.
  4. Confirm with user → apply.
  5. Verify.

Command: python -m scripts.wordpress.setup_categories {slug} (idempotent — safe to re-run).

Mode C — Refresh / re-sync

Use when categories-config.json has been edited locally and you want to push changes to the live site.

Workflow: identical to Mode B. The setup script is idempotent — it PATCHes existing categories with the new field values and creates any new ones.

The 6 design principles (full reference: references/category-design-principles.md)

Quick summary — read the full reference doc before designing:

  1. One subcategory = one primary intent (Informational / Commercial-Investigation / Transactional). No catch-all "Guides" subcategories.
  2. Subcategories are content-type axes, not facets. Wattage, crop, scale, brand are TAG axes, not subcategories.
  3. 5–10 top-level + 2 levels deep maximum. Beyond this, dilutes topical authority.
  4. Each subcategory must produce ≥5 articles in 12 months or merge at the next quarterly review.
  5. Descriptions are 35–80 words, plain prose, no HTML, no inline links, no inside-baseball. The post grid below already shows links; the description provides context.
  6. Slug uniqueness: parent-prefixed (lighting-buyer-guides) so WordPress's global slug uniqueness rule doesn't collide.

Failure modes & recovery

SymptomCauseRecovery
GET /xuanran/v1/rank-math-bridge returns 404MU plugin not installedDeploy install/wordpress-mu-plugin/xuanran-rank-math-rest-bridge.php to wp-content/mu-plugins/ on the server. No activation needed; MU plugins auto-load.
Bridge returns bridge_version: "1.0.0"MU plugin too old, lacks term metaUpgrade to v1.1+ (replace the file). After re-deploy, re-run setup_categories to populate RankMath term meta.
meta: [] returned after PATCHRankMath term meta keys not registeredSame as above — MU plugin v1.1+ required. Without it, description still applies but custom SEO titles fall back to global template.
Category created but archive URL returns 404Permalink not flushedVisit wp-admin/options-permalink.php and save (no changes needed — just trigger flush).
Description renders with HTML entities &lt;p&gt;Theme escaped the descriptionRe-run setup_categories with v2 plain-text descriptions (no HTML). See project-charlie v1→v2 migration.
Posts assigned to wrong categoryManual reassignment neededPOST /wp/v2/posts/{id} with {"categories": [new_id]} — this REPLACES all categories on the post (single primary recommended).
Duplicate categories on the live site (same name, two term IDs — usually a parentless top-level stray next to the curated child)Historical publish-time creation minted a dup: pre-v3.19.2 the name match wasn't HTML-entity-aware, so every &-bearing name missed and got re-created (project-hotel 8 pairs, project-kilo orphans). The publisher is resolve-only since 2026-07-11, so new dups can't be minted — but old damage persists until repaired.python -m scripts.wordpress.dedupe_categories {slug} --check to detect (exit 1 = dups found); --apply to repair: backs up, reassigns every affected post to the canonical (config-listed) term, fixes rank_math_primary_category, deletes the strays, writes 301 rules to projects/{slug}/.seo/category-dedupe-redirects-{date}.json (import in Rank Math → Redirections), and refreshes categories-live.json.

Slash command

The /setup-categories slash command (registered in .claude-plugin/plugin.json) invokes this subskill with the active project slug. The user can override with /setup-categories {slug} to operate on a specific project.

See also

  • references/category-design-principles.md — the 6 design rules in detail
  • references/category-description-style-guide.md — how to write tight, link-free descriptions
  • templates/categories-config-template.json — empty starter template
  • projects/project-charlie/categories-config.json — canonical reference (6 top + 29 sub, all 35 live)
  • projects/project-charlie/content-taxonomy.md — full design doc with subcategory specs and cross-linking matrix
  • scripts/wordpress/setup_categories.py — the idempotent applier
  • install/wordpress-mu-plugin/xuanran-rank-math-rest-bridge.php v1.1+ — the term-meta bridge
  • skills/seo-blog/SKILL.md Rule 3 — the mandatory-sections gate that complements categories at the article level

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Wordpress Category Setup làm được gì?

Design and deploy a WordPress blog category taxonomy (top-level categories + subcategories) with descriptions, slugs, and RankMath SEO meta. Three modes — interactive (design from scratch with the user), apply (deploy an existing categories-config.json), refresh (re-sync to live site). Use when user runs /setup-categories, when /init asks about content architecture, or when a project is preparing to publish its first articles and needs the topical-authority foundation. Triggers on "setup categories", "category architecture", "blog taxonomy", "category SEO", "/setup-categories".

Vì sao nên dùng Wordpress Category Setup trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Wordpress Category Setup là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Wordpress Category Setup trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/XuanRanL/loamwright-SEO-Skill/tree/main/subskills/init/wordpress-category-setup. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Wordpress Category Setup?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Wordpress Category Setup với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Wordpress Category Setup với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Wordpress Category Setup có miễn phí không?

Có. Kỹ năng này được XuanRanL phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇