sop-lang

sop-lang is a command for coding agents from Gnayj/claude-code-sop. It costs 68 tokens per session (4,189 once invoked), scanned A, original, MIT.

A command for translating ccsop-owned documentation into another language while preserving code-like placeholders and other machine-sensitive text.

In plain words
What is it for?
Use it to materialize a supported language such as Chinese or German, or check whether an existing translation has drifted from the English source.
Why use it?
It avoids damaging paths, placeholders, and generated structure during translation, and checks that protected text is restored correctly.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the ccsop plugin — 5 skills, 5 commands, 3 agents shipped together

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.

agentmods
npx agentmods add commands/gnayj/claude-code-sop/sop-lang
Clone the repo
git clone --depth 1 https://github.com/Gnayj/claude-code-sop

Or install ccsop, the plugin that ships this one along with the rest of its 5 skills, 5 commands, 3 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 sop-lang

README.md
[![agentmods](https://agentmods.dev/badge/commands/gnayj/claude-code-sop/sop-lang.svg)](https://agentmods.dev/commands/gnayj/claude-code-sop/sop-lang)
Your own site
<a href="https://agentmods.dev/commands/gnayj/claude-code-sop/sop-lang"><img src="https://agentmods.dev/badge/commands/gnayj/claude-code-sop/sop-lang.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,189 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00068 $0.04189
Opus 5 $0.00034 $0.02094
Sonnet 5 $0.00014 $0.00838
Haiku 4.5 $0.00007 $0.00419

Measured 4d ago against content hash d138073f37b0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

sop-lang 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 4d 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.

commands/sop-lang.md · 232 lines

How it starts

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

/sop-lang — re-materialize ccsop-owned docs in another language

Translate-once, in place. Plugin root = ${CLAUDE_PLUGIN_ROOT}; target = ${CLAUDE_PROJECT_DIR}. $ARGUMENTS = target language (e.g. zh or de), or --check <lang> (drift report). The canonical source is always the EN plugin template (via each manifest entry's template_id), not the currently-materialized file.

Host task-tool guard (whole command): the steps below are the complete execution plan. Do not call any host task/todo-tracking tool, including but not limited to TaskCreate, TaskUpdate, TaskList, TaskGet, and TodoWrite, and do not discover such a tool just to mirror this plan. These tools are not required for language materialization and may be absent from the live discovered-tool set. This command has no interactive decision point: do not call a user-question tool. If the target-language argument is missing or invalid, report the usage/error and stop.

Step 0 — orphaned-root guard: if ${CLAUDE_PLUGIN_ROOT}/.orphaned_at exists, abort (stale cache snapshot; restart the session / reload plugins first). Never auto-resolve to a sibling dir. Before resolving any Codex skill path/set, read ${CLAUDE_PLUGIN_ROOT}/templates/control-surface/codex-skill-host-contract.md; its canonical/legacy roots and five-entry set are authoritative.

Mode & source resolution (maintained-first)

See docs/design/ccsop-framework/i18n-docs-design.md. The exported MAINTAINED_LANGUAGE_ALIASES table and resolveLanguage function in ${CLAUDE_PLUGIN_ROOT}/mcp/codex-review/src/control-surface-contract.ts are the machine authority. Trim surrounding whitespace, use case-insensitive lookup with _ converted to - for lookup only, and preserve the trimmed spelling of valid unmaintained locales. The exact maintained aliases are zh / zh-CN / zh_CN / zh-Hans / zh_Hanszh-CN and de / de-DE / de_DEde-DE. Values such as de-AT, de-CH, zh-Hant, zh-TW, dee, and de-Latn remain valid unmaintained locales; missing, empty, or grammar-invalid values are invalid. Use a maintained canonical form for the manifest lookup, --check, copied artifacts, and recorded language / translation_source.

Read the full file on GitHub · 232 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. 4d ago First seen · 232 lines · 68 tokens per session scan A d138073f37b0

Subscribe to this mod's changes

sop-lang is a command published in the GitHub repository Gnayj/claude-code-sop (2 stars, last pushed 23d ago), licensed MIT. It adds 68 tokens to every session and 4,189 once invoked, about $0.0003 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.