polywise: Skill for OpenCode

.opencode/skills/i18n/SKILL.md

i18n is a skill for OpenCode from MatrixAges/polywise. It costs 35 tokens per session (838 once invoked), scanned A, original, MIT.

An internationalization guide for building multilingual TypeScript applications with i18next, a library for managing translated text. It describes how to organize translation files for the app and desktop parts of a project.

In plain words
What is it for?
It is for adding languages, structuring translation modules, and implementing type-safe multilingual interfaces.
Why use it?
It reduces inconsistent translation keys, duplicated language setup, and unclear placement of translated text.

Skill for OpenCode

Written for OpenCode: installed under .opencode/.

This is MatrixAges/polywise's own configuration. It tells OpenCode how to work on polywise itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything polywise configures →

Reuse

Borrowing it

Nothing to install: this file belongs to MatrixAges/polywise. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/MatrixAges/polywise/master/.opencode/skills/i18n/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/MatrixAges/polywise

Made for: OpenCode.

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 i18n

README.md
[![agentmods](https://agentmods.dev/badge/skills/matrixages/polywise/i18n/github.svg)](https://agentmods.dev/skills/matrixages/polywise/i18n)
Your own site
<a href="https://agentmods.dev/skills/matrixages/polywise/i18n"><img src="https://agentmods.dev/badge/skills/matrixages/polywise/i18n/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 i18n

Your own site · 80×15
<a href="https://agentmods.dev/skills/matrixages/polywise/i18n"><img src="https://agentmods.dev/badge/skills/matrixages/polywise/i18n.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 838 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 pass 7 Sept 2026
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.00035 $0.00838
Opus 5.5 $0.00014 $0.00335
Sonnet 5.5 $0.00007 $0.00168
Haiku 4.5 $0.00003 $0.00084

Measured 2mo ago against content hash 35594a44d012, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

i18n 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 2mo 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.

.opencode/skills/i18n/SKILL.md · 134 lines

How it starts

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

i18n Internationalization Guide

This skill provides mandatory specifications for implementing internationalization using i18next in this project.

1. Architecture Overview

The project adopts a modular i18n structure:

  • i18next: Core internationalization library.
  • TypeScript: Provides complete type safety protection for translation keys.
  • Modular Structure: Translation copy is organized by functionality/module.
  • Dual-end Support: Simultaneously supports app (renderer process) and desktop (main process).

2. Translation File Structure

2.1 Basic Translation Module

// packages/app/locales/en/global.ts
export default {
	notice: 'Notice',
	edit: 'Edit',
	add: 'Add',
	save: 'Save',
	remove: 'Remove',
	remove_confirm:
		'Confirm removal? Deleting this item will also delete the corresponding local file. Please proceed with caution!'
}

2.2 Namespace Module

// packages/app/locales/en/app.ts
export default {
	module: {
		chat: 'Chat',
		research: 'Research',
		agent: 'Agent'
	},
	workspace: {
		title: 'Workspace',
		name_placeholder: 'A unique name'
	}
}

2.3 Regional Language Entry Point

// packages/app/locales/en/index.ts
import ai from './ai'
import app from './app'
import global from './global'

export default {
	translation: {
		...global,
		app,
		ai
	}
} as const // ✅ Must use as const to ensure TypeScript type inference

3. Steps for Adding New Translations

3.1 Adding New Module Translation

// Step 2: Add to entry index
// packages/app/locales/en/index.ts
import newFeature from './newFeature'

// Step 1: Create new translation file (English and Chinese must be created simultaneously)
// packages/app/locales/en/newFeature.ts
export default {
	title: 'New Feature',
	description: 'This is a new feature description'
}

// packages/app/locales/zh-cn/newFeature.ts
export default {
	title: '新功能',
	description: '这是新功能描述'
}

export default {
	translation: {
		// ... others
		newFeature // Register new module
	}
} as const

Read the full file on GitHub · 134 lines

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. 2mo ago First seen · 134 lines · 35 tokens per session scan A 35594a44d012

Subscribe to this mod's changes

i18n is a skill published in the GitHub repository MatrixAges/polywise (654 stars, last pushed 4mo ago), licensed MIT. It adds 35 tokens to every session and 838 once invoked, about $0.0001 per session on Opus 5.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-04.

Related

i18n compared with skills from other repositories

i18n next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
i18nMatrixAges/polywiseSkill6544mo agoMITA35OpenCode
typescript-strictBlackBeltTechnology/pi-agent-dashboardSkill3412d agoMITA41Claude Code, Codex
openclawznlgis/opengis-skillsSkill7610d agoMITA50Claude Code, Codex
V3 Core Implementationamangit1314/repo-ragSkill01mo agononeA37Claude Code
agentscope-javaagentscope-ai/agentscope-javaSkill6.3kyesterdayApache-2.0A91Claude Code, Codex
freelance-gig-findertinyfish-io/tinyfish-cookbookSkill2.3k3d agoMITA98Claude Code, Codex
fetchtinyfish-io/tinyfish-cookbookSkill2.3k3d agoMITA121Claude Code