wp-polylang

wp-polylang is a skill for Claude Code from yojahny55/claude-wp-builder. It costs 26 tokens per session (4,844 once invoked), scanned A, original, MIT.

A method for managing multilingual WordPress content with Polylang, a translation plugin. Each language has its own post, and related posts are connected as translations through Polylang's API.

In plain words
What is it for?
Use it to create, connect, and manage translated posts and terms through Polylang. It is an alternative to keeping all languages in one post with language-suffixed fields.
Why use it?
It prevents translation links from becoming incomplete or inconsistent when multilingual content is created automatically. It also clarifies how language-specific fields should be stored.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the claude-wp-builder plugin — 15 skills, 30 commands, 15 agents shipped together

Good fit Use it to create, connect, and manage translated posts and terms through Polylang. It is an alternative to keeping all languages in one post with language-suffixed fields.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yojahny55/claude-wp-builder/wp-polylang
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yojahny55/claude-wp-builder --skill wp-polylang
Clone the repo
git clone --depth 1 https://github.com/yojahny55/claude-wp-builder

Made for: Claude Code.

Or install claude-wp-builder, the plugin that ships this one along with the rest of its 15 skills, 30 commands, 15 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wp-polylang

README.md
[![agentmods](https://agentmods.dev/badge/skills/yojahny55/claude-wp-builder/wp-polylang/github.svg)](https://agentmods.dev/skills/yojahny55/claude-wp-builder/wp-polylang)
Your own site
<a href="https://agentmods.dev/skills/yojahny55/claude-wp-builder/wp-polylang"><img src="https://agentmods.dev/badge/skills/yojahny55/claude-wp-builder/wp-polylang/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wp-polylang

Your own site · 80×15
<a href="https://agentmods.dev/skills/yojahny55/claude-wp-builder/wp-polylang"><img src="https://agentmods.dev/badge/skills/yojahny55/claude-wp-builder/wp-polylang.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,844 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Anti-Refusal · line 165
    Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.
    Fix: Remove instructions that suppress warnings, disclaimers, or ethical commentary. Let the agent surface safety-relevant caveats to the user.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00026 $0.04844
Opus 5 $0.00013 $0.02422
Sonnet 5 $0.00005 $0.00969
Haiku 4.5 $0.00003 $0.00484

Measured 5d ago against content hash 183152a17dd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

wp-polylang scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/wp-polylang/SKILL.md · 373 lines

How it starts

The opening of the file, as written. The whole thing — 373 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Polylang Multilingual System

This skill documents how to drive Polylang correctly from automation. It is the alternative to wp-bilingual, which documents the ACF _suffix pattern. The two are mutually exclusive per project: _suffix keeps one post with hero_title and hero_title_es; Polylang keeps one post per language, each with the same unsuffixed fields, joined into a translation group.

wp-bilingual remains the default. Choosing Polylang does not deprecate it.

Data model

Polylang stores two things per translatable object:

What Where
The object's language the language taxonomy (term_language for terms)
Which objects are translations of each other the post_translations taxonomy (term_translations for terms)

A translation group is a single term whose description holds a serialised map of lang => object_id. Both taxonomies must agree. Writing either one directly is the mistake this document exists to prevent — a group written by hand is routinely asymmetric, and Polylang then reports the page as untranslated while the database looks correct.

Always go through the API:

Task Call
Set a post's language pll_set_post_language( $post_id, $lang )
Join posts as translations pll_save_post_translations( [ 'es' => 12, 'en' => 34 ] )
Read a post's group pll_get_post_translations( $post_id )
Set a term's language pll_set_term_language( $term_id, $lang )
Join terms as translations pll_save_term_translations( [ 'es' => 5, 'en' => 9 ] )
List configured languages pll_languages_list()
Default language pll_default_language()

pll_save_post_translations() replaces the whole group rather than merging into it — it is not a delta call. Passing only {source, target} silently drops every other language already in that group, including languages the array never mentions. The correct pattern is to read the existing group first with pll_get_post_translations(), merge the source and target ids into it, and save the merged result:

Read the full file on GitHub · 373 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +65 lines 183152a17dd6
  2. 9d ago First seen · 308 lines · 26 tokens per session scan A c87f39d83be8

Subscribe to this mod's changes

wp-polylang is a skill published in the GitHub repository yojahny55/claude-wp-builder (6 stars, last pushed today), licensed MIT. It adds 26 tokens to every session and 4,844 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

smart-defaults

Hace que una web arranque en el tema (claro/oscuro) y el idioma correctos según las preferencias del sistema/navegador del visitante, sin parpadeo y sin forzar redirecciones. Úsalo al crear el arranque (boot) de cualquier landing o app web, al añadir un selector de tema o de idioma, o cuando el usuario pida "que la…

Mun1to/SmartDefaults · 113 tokens

deck-pipeline

Production-grade Claude Code system that takes presentation decks from raw Chinese draft to McKinsey-polished English — with full audit trail, layout integrity checks, and a swappable PROFILE block for project-specific defaults. Built on a 4-stage pipeline (Sense Pass → McKinsey Translation → Layout Audit → Handoff).…

TinaDu-AI/deck-pipeline · 162 tokens

scroll-craft

Build premium scroll-driven landing pages for service, product, food, and drink brands. Plan the visitor journey, page grammar, emotional peak, and bespoke signature move. Create dimensional heroes with independent visual planes, restrained motion, and separate mobile composition. Use supplied photos and footage or…

nateherkai/scroll-craft · 177 tokens

hreflang-international

International / multilingual SEO audit focused on hreflang correctness. Detects and diagnoses the most common (and ranking-damaging) hreflang mistakes: missing or broken return tags, wrong language/region codes, missing x-default, self-referencing errors, conflicts between hreflang and canonical, and inconsistent…

nowork-studio/notfair-plugin · 242 tokens

multilingual-score

Score translated or localized content into one composite quality verdict — technical translation scoring (length ratio, formatting, do-not-translate terms, placeholders), content quality in the target language, brand voice consistency, and target-market compliance — classified as Publish Ready (85+), Native Speaker…

indranilbanerjee/digital-marketing-pro · 173 tokens

Website Audit

Comprehensive website auditing skill using Lighthouse, PageSpeed Insights, and web performance APIs to audit performance, accessibility, SEO, best practices, and security.

PramodDutta/qaskills · 33 tokens