Spherse: Skill for Claude Code

.agents/skills/i18n/SKILL.md

i18n is a skill for Claude Code, Codex from mengrru/Spherse. It costs 27 tokens per session (828 once invoked), scanned A, original, MIT.

A guide for moving text that users see in a Spherse application into the shared @spherse/i18n translation package. Internationalization, or i18n, lets the same application display different languages.

In plain words
What is it for?
Use it when adding or updating buttons, labels, placeholders, errors, dialogs, and other interface text in the React, Electron, or web-shell parts of Spherse.
Why use it?
It prevents user-facing text from being scattered as hardcoded strings and keeps translation catalogs consistent. It also identifies technical text that should not be translated.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is mengrru/Spherse's own configuration. It tells Claude Code and Codex how to work on Spherse 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 Spherse configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mengrru/Spherse. 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/mengrru/Spherse/main/.agents/skills/i18n/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mengrru/Spherse

Made for: Claude Code, Codex.

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/mengrru/spherse/i18n/github.svg)](https://agentmods.dev/skills/mengrru/spherse/i18n)
Your own site
<a href="https://agentmods.dev/skills/mengrru/spherse/i18n"><img src="https://agentmods.dev/badge/skills/mengrru/spherse/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/mengrru/spherse/i18n"><img src="https://agentmods.dev/badge/skills/mengrru/spherse/i18n.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 828 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.00027 $0.00828
Opus 5 $0.00014 $0.00414
Sonnet 5 $0.00005 $0.00166
Haiku 4.5 $0.00003 $0.00083

Measured 10d ago against content hash ffc8bba344da, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d 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.

.agents/skills/i18n/SKILL.md · 91 lines

How it starts

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

i18n String Migration Skill

Purpose

This skill guides the coding agent through identifying user-visible strings in Spherse source code, adding them to the shared @spherse/i18n locale catalogs, and replacing hardcoded text with t() calls.

Scope

What to translate

  • React component text shown to users (buttons, labels, placeholders, error messages, empty states, dialog titles)
  • Electron IPC error/confirmation messages shown to users
  • Web shell UI (version guard, connect page)

What NOT to translate

  • Anything in packages/server or packages/core — they do NOT depend on @spherse/i18n. Server/core surface errors as structured codes (e.g. chat ErrorEventCode); the renderer owns the i18n rendering decision
  • Route paths, query parameters, storage keys
  • CSS class names, ARIA ids, test ids
  • API endpoint paths
  • Provider/model names and env key identifiers
  • Console debug/log messages (unless also shown to users)
  • Test data and test assertions
  • File paths and technical identifiers
  • Markdown content within project files (user content)

Key Naming Convention

Use dot-path namespacing: {domain}.{section}.{specific}

Examples:

  • app.loading
  • settings.title
  • settings.models.defaultModel
  • content.save.error
  • chat.error.modelNotConfigured
  • project.open.failed

Step-by-step Process

  1. Scan the specified files or directories for user-visible string literals.

  2. Classify each string: is it user-visible UI text or a technical string that should not be translated?

  3. Generate keys for user-visible strings using the naming convention above. Keep keys stable and descriptive.

  4. Add entries to all three locale files in packages/i18n/src/locales/:

    • zh-CN.ts — the canonical catalog (add as as const)
    • zh-TW.ts — Traditional Chinese translation
    • en.ts — English translation
  5. Replace the hardcoded string in source code:

    • In React components: const { t } = useI18n(); then t("key")
    • In Electron main / web shell: translate(locale, "key", params) (using locale from settings or provider)

Read the full file on GitHub · 91 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. 10d ago First seen · 91 lines · 27 tokens per session scan A ffc8bba344da

Subscribe to this mod's changes

i18n is a skill published in the GitHub repository mengrru/Spherse (71 stars, last pushed 4d ago), licensed MIT. It adds 27 tokens to every session and 828 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-30.

Related

Other skills, from other repositories

llmlint

A Chinese-prose rule library with two entry points. Before writing, emit the rules as writing constraints to load into a system prompt or style guide. After writing, lint the draft with static rule hits, neural AIGC heatmaps, contextual review, approved repair, and local learning notes. Use when drafting or rewriting…

notnotype/neuro-book · 128 tokens

profile-system-guide

Guide users and agents through Neuro Book harness, TSX profiles, ProfileTurnPlan, skills, user-assets overlays, settings forms, profile home resources, profile compile checks, templates, system restore, and safe profile editing.

notnotype/neuro-book · 48 tokens

novel-technique-character-card-workshop

A workshop for turning rough character ideas into detailed, usable character profiles. It supports structured question cycles, personality layers, visual themes, and checks against reducing a character to a few labels.

notnotype/neuro-book · 163 tokens

novel-writer-execution

An internal execution guide for a writer profile after it receives a brief. It describes the detailed workflow, decision points, and common mistakes.

notnotype/neuro-book · 44 tokens

RP模式

A set of instructions for running a role-playing session under the NeuroBook RP protocol. RP means role-play, where characters and events are simulated according to defined rules.

notnotype/neuro-book · 50 tokens

skill-creator-zh

A skill for creating and maintaining skills in the Neuro Book repository. Skills are reusable instruction packages that guide an agent through a particular kind of work.

notnotype/neuro-book · 73 tokens