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.
npx skills add Lonsdale201/wp-agent-skills --skill polylang-object-translationsgit clone --depth 1 https://github.com/Lonsdale201/wp-agent-skillsWrote 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.
[](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/polylang-object-translations)<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/polylang-object-translations"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/polylang-object-translations/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.
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/polylang-object-translations"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/polylang-object-translations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
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 →
- medium Excessive Agency · line 201 Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00133 | $0.02177 |
| Opus 5 | $0.00067 | $0.01089 |
| Sonnet 5 | $0.00027 | $0.00435 |
| Haiku 4.5 | $0.00013 | $0.00218 |
Grade A, and why
polylang-object-translations 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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 278 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Polylang Object Translations
Use this skill when code needs to read or write the relationship between translated posts or translated terms.
Polylang stores language and translation relationships through private taxonomies, not custom tables:
| Object | Language taxonomy | Translation group taxonomy |
|---|---|---|
| Posts/CPTs/attachments | language |
post_translations |
| Terms | term_language |
term_translations |
Do not write those terms or term descriptions directly. Use Polylang APIs so caches, cleanup, validation, and synchronization hooks run.
Resolve translated IDs
For posts:
$translated_id = pll_get_post( $post_id, 'fr' );
if ( $translated_id > 0 ) {
$post = get_post( $translated_id );
}
For terms:
$translated_term_id = pll_get_term( $term_id, 'fr' );
Important return behavior in Polylang 3.8.5:
pll_get_post()returns an integer ID.pll_get_term()returns an integer ID.- Missing translation, invalid language, or object without language returns
0, notfalse. - If the requested language is the object's own language, the original ID is returned.
When $lang is omitted, both functions use pll_current_language(). In cron, CLI, imports, and many admin tasks, pass the language explicitly.
Read language and groups
$post_lang = pll_get_post_language( $post_id ); // slug or false.
$term_lang = pll_get_term_language( $term_id, 'locale' );
$lang_obj = pll_get_post_language( $post_id, \OBJECT );
$post_translations = pll_get_post_translations( $post_id );
$term_translations = pll_get_term_translations( $term_id );
Translation arrays are keyed by language slug and contain object IDs:
array(
'en' => 123,
'fr' => 456,
)
Only trust arrays returned by Polylang. The model validates languages and object IDs before saving.
Create posts with language
Polylang 3.7+ provides pll_insert_post() and pll_update_post() wrappers:
$post_id = pll_insert_post(
array(
'post_type' => 'book',
'post_status' => 'publish',
'post_title' => 'Hello',
),
'en'
);
if ( is_wp_error( $post_id ) ) {
return $post_id;
}
What ships with it
1 file 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.
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.
- 9d ago First seen · 278 lines · 133 tokens per session scan A b69451a12cc6
polylang-object-translations is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed 2d ago), licensed MIT. It adds 133 tokens to every session and 2,177 once invoked, about $0.0007 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-09-03.
Other skills, from other repositories
humanizar-texto-es
Elimina patrones de escritura típicos de IA en textos en español de España para que suenen naturales y humanos. Aplica esta skill siempre que generes, edites o revises textos en español: artículos, guías, tutoriales, emails, copy comercial, publicaciones en redes sociales, documentación, informes o cualquier prosa.…
chinese-documentation
A Chinese technical-documentation style guide covering spacing, punctuation, numbers, terminology, and links when Chinese and English appear together.
json-ui
CRITICAL: Use for json-ui component rendering and development. Triggers on: json-ui, json render, component catalog, report render, HTML report, I18nString, i18n, bilingual, language switch, dual language, PaperHeader, AuthorList, Abstract, MetricsGrid, Section, Highlight, Zod schema, catalog.ts, cli.ts…
comet-bilingual-docs
A workflow for keeping Comet documentation in Chinese and English aligned across READMEs, skills, release notes, and website pages. It preserves confirmed wording, repository structure, examples, commands, links, and configuration names.
dubbing
Dub audio and video into other languages using the ElevenLabs Dubbing API (dubbingv2), preserving the original speakers' voices. Use when translating videos, podcasts, or recordings into other languages, localizing media content, reviewing or correcting dubbing transcripts and translations, or regenerating a dub after…
iflytek-text-proofread
A tool that checks Chinese writing through iFlytek’s official document-proofreading service. It looks for spelling, punctuation, wording, factual, terminology, and sensitive-content problems.