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-strings-optionsgit 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-strings-options)<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/polylang-strings-options"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/polylang-strings-options/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-strings-options"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/polylang-strings-options.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00132 | $0.02198 |
| Opus 5 | $0.00066 | $0.01099 |
| Sonnet 5 | $0.00026 | $0.00440 |
| Haiku 4.5 | $0.00013 | $0.00220 |
Grade A, and why
polylang-strings-options 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 8d 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 — 248 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Polylang Strings and Options
Use this skill when a plugin or classic theme has administrator-configured copy that should be translated through Polylang's Languages > Translations screen.
Do not confuse three layers:
| Need | Use |
|---|---|
| Static developer strings in PHP | WordPress i18n: __(), _x(), etc. |
| Admin-configured single strings | pll_register_string() plus pll__() / pll_translate_string() |
| Admin-configured option arrays | PLL_Translate_Option |
Guard and register strings
pll_register_string() exists in the public API, but the implementation only registers when PLL() is an admin object:
function myplugin_register_polylang_strings(): void {
if ( ! function_exists( 'pll_register_string' ) ) {
return;
}
pll_register_string(
'myplugin_checkout_heading',
get_option( 'myplugin_checkout_heading', 'Complete your booking' ),
'My Plugin',
false
);
}
add_action( 'admin_init', 'myplugin_register_polylang_strings' );
Register in admin/settings context, not only on the frontend. If you call pll_register_string() only during frontend rendering, the string will not be added to the strings table.
Parameters:
pll_register_string( $name, $string, $context = 'Polylang', $multiline = false );
$nameis a stable internal label, not necessarily the displayed string.$stringis the original source text.$contextis the group shown in the strings table.$multilinecontrols textarea vs single-line input.
Polylang de-duplicates registered strings by md5( $string ) internally. If two different options use the same source text, the translation is shared.
Output translated strings
For the current language:
$heading = get_option( 'myplugin_checkout_heading', '' );
if ( function_exists( 'pll__' ) ) {
$heading = pll__( $heading );
}
echo esc_html( $heading );
Prefer the escaped helpers where possible:
echo function_exists( 'pll_esc_html__' )
? pll_esc_html__( $heading )
: esc_html( $heading );
printf(
'<input placeholder="%s">',
function_exists( 'pll_esc_attr__' ) ? pll_esc_attr__( $heading ) : esc_attr( $heading )
);
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.
- 8d ago First seen · 248 lines · 132 tokens per session scan A dc1020238519
polylang-strings-options is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed yesterday), licensed MIT. It adds 132 tokens to every session and 2,198 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.