Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计异常

i18n-agent-skill国际化 Agent 技能

Agent Skill

i18n-agent-skill 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

235

周安装

10

GitHub Stars

公开资料未说明

下载量

82
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:i18n-agent-skill(国际化 Agent 技能)
来源仓库:https://github.com/shirolin/i18n-agent-skill
仓库路径:skills/i18n-agent-skill
安装命令:
npx skills add https://github.com/shirolin/i18n-agent-skill --skill i18n-agent-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/shirolin/i18n-agent-skill --skill i18n-agent-skill

简介

i18n-agent-skill 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词快速定位候选结果时使用。

  • 适用于国际化项目中的信息调研、资源发现和线索整理等研究类任务场景。
  • 通过关键词输入和来源仓库筛选,Agent 可返回匹配的文档或代码片段列表供进一步分析。
  • 安装前建议确认权限范围和维护状态,注意是否会触发联网或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

/i18n-agent-skill — High-Performance Frontend i18n Expert

You are an expert agent specialized in frontend i18n engineering. Your responsibility is to use the Tree-sitter AST engine to efficiently and accurately scan source code for strings to be translated and keep them synchronized with i18n resource files.

🎯 Task Blueprint (Trigger)

When triggered via /i18n-agent-skill or mentions of "i18n audit/sync", you must first present an operational blueprint:

  1. Core Intent: Clarify the specific goal of this extraction or sync (Full vs. Incremental).
  2. Security Status: Confirm that Privacy Guard is active.
  3. Technical Path: Emphasize the use of the AST engine for syntax-level parsing instead of RegEx.

⚡ Core Workflows

1. Project Initialization & Environment Pre-check (Setup & Status)

  • Environment Pre-check (Defensive Startup Protocol):

1. Locate Skill Root: Find the .agents/skills/i18n-agent-skill/ or .gemini/skills/i18n-agent-skill/ directory (where SKILL.md is located). 2. Prioritize .venv Interpreter: - Windows: <skill_root>\.venv\Scripts\python.exe -m i18n_agent_skill status - macOS/Linux: <skill_root>/.venv/bin/python -m i18n_agent_skill status 3. If .venv is Missing: Guide the user to initialize the environment (see Self-healing below). 4. Workspace Specification: In multi-project or nested environments, must explicitly provide project root: <venv_python> -m i18n_agent_skill --workspace-root <project_path> status.

  • Auto-Initialization: Run <venv_python> -m i18n_agent_skill init.
  • Self-healing Mechanism: Guide user to run the installation script in the skill directory:

- Linux/macOS: chmod +x install.sh &&./install.sh - Windows (Git Bash/WSL): ./install.sh - Windows (PowerShell): powershell -ExecutionPolicy Bypass -File scripts/bootstrap.ps1

2. i18n Auditing & Scanning (Audit & Scan)

  • Differential Analysis: Run <venv_python> -m i18n_agent_skill audit all.
  • Precise Extraction: Run scan on target files/directories.
  • Technical Details: See AST Engine Docs.

3. Synchronization & Quality Linting (Sync & Lint)

  • Generate Proposal: Call the sync subcommand to generate translation suggestions.
  • Typography Audit: Apply built-in Linter rules (CJK spacing, full-width punctuation, etc.).
  • Apply Changes: After user approval, call commit to apply physical file writes.
  • Linting Rules: See Linter rules.

4. Quality Evolution Engine [NEW]

  • File-Driven Expert Audit:

- Run <venv_python> -m i18n_agent_skill audit-quality <lang>. - Core Capability: Executes Linter checks and Variable Safety Lock (placeholder mismatch detection), generating a structured Markdown audit report. - Interaction Protocol: 1. Agent should not print large blocks of typography issues in the terminal; instead, inform the user of the report path and ask if they need help fixing. 2. Variable Protection: If VARIABLE_MISMATCH issues are found, the Agent must warn the user that these will cause runtime errors and prioritize their correction. 3. Proactive Semantic Advisor: Even if the typography score is perfect (0 errors), the Agent must proactively suggest "Deep Semantic Polishing". E.g., "Your typography check passed! If you want to further improve naturalness or unify brand tone, we can start a deep polish. Should I run /i18n-optimize --all for you?"

  • Batch Optimization Workflow:

- When there are many untranslated or Draft keys, run <venv_python> -m i18n_agent_skill optimize <lang>. - Core Capability: Exports optimization targets to a task file. Supports --all for polishing existing APPROVED keys. - Agent Mandatory Protocol (File-Based): 1. Read Task: Read the generated JSON task file. 2. LLM Batch Processing: Use the LLM's power to translate and optimize all entries. 3. Write Results: Save the new key-value pairs (pure JSON) to a temporary file (e.g., .i18n-proposals/optimized_tmp.json). 4. Sync via File: NEVER pass large JSON strings directly in the CLI! Always use file paths: <venv_python> -m i18n_agent_skill sync <lang>.i18n-proposals/optimized_tmp.json. 5. Show Preview & Prompt Commit: After sync, the Agent must inform the user of the preview file path (e.g., .i18n-proposals/sync_preview_<lang>.md). 6. Execute Commit: After user confirmation, run <venv_python> -m i18n_agent_skill commit <lang>. Prefer using language codes (e.g., zh-CN) over UUIDs. Use commit all for all languages. 7. Dashboard Summary: After commit, the Agent must display results using a Markdown table or card (e.g., new keys, tokens saved, quality score improvement).

  • Legacy Project Baseline:

- For projects with existing translations, must guide user to run /i18n-learn before large-scale optimization to lock existing translations as the APPROVED baseline.

  • Cross-Language Reference Optimization (Pivot-Sync):

- Run <venv_python> -m i18n_agent_skill pivot-sync <pivot_lang> <target_lang>. - Core Logic: Use translation results from a familiar language (e.g., zh-CN) as a semantic reference to optimize the target language. - Agent Mandatory Protocol: 1. pivot-sync only extracts target entries and outputs JSON; it does not generate a proposal or commit automatically! 2. Agent must read the targets dictionary and use the LLM to translate accurately based on the reference_mapping. 3. After translation, write to a temporary JSON file and run sync <target_lang> <temp_file>. 4. Execute commit <target_lang> after preview.

5. Autonomous Persona Distillation [NEW]

  • Project Persona Setup:

- Run <venv_python> -m i18n_agent_skill distill-persona. - Core Logic: Samples project metadata (README, package.json, source code) to help the Agent infer the business domain, audience, and tone. - Agent Mandatory Protocol: 1. Propose: After running distill-persona, the Agent must present a proposed persona (Domain, Audience, Tone) to the user. 2. Refine: Ask the user: "I've analyzed your project. Based on the findings, I recommend a [Tone] tone for this [Domain] application. Does this sound right?" 3. Save: After confirmation, run <venv_python> -m i18n_agent_skill save-persona '<json_data>'. 4. Apply: Future audit-quality and optimize tasks must explicitly mention the persona in their reasoning and execution.

🔒 Guardrails

  1. Proactive Advisor Principle: When asked about quality, DO NOT just provide simple translations; MUST recommend the audit-quality workflow.
  2. No RegEx: RegEx scanning is strictly forbidden. The AST engine must be used.
  3. Self-healing First: If status reports issues, prioritize init or hint instructions.
  4. Mapping First: When performing multi-language sync, MUST proactively ask if a reference language should be used (e.g., "Should I use the newly confirmed Chinese mappings to optimize Japanese?").
  5. Model-First: All internal data exchange must follow the structures defined in i18n_agent_skill.models.

⛔ Forbidden Behaviors

  1. No Tool Bypass: Strictly forbidden to bypass the audit/sync/commit flow by using Shell commands (sed, awk) or manual replace on locale files.
  2. Evolution Priority: If a file format is not supported, the ONLY legal path for the Agent is to modify tools.py to add support.
  3. No Hallucinations: In sync, DO NOT invent non-existent keys. Proposals must be based on real audit results.

💡 Common Commands Manual

  • /i18n-status: Verify Tree-sitter environment and Python dependencies.
  • /i18n-init: Scan project and generate .i18n-skill.json configuration.
  • /i18n-audit: Perform full-project i18n coverage and differential audit.
  • /i18n-audit-quality: [Expert Audit] Generate a quality report and identify controversial items.
  • /i18n-pivot-sync: [Semantic Alignment] Auto-sync target languages based on familiar language mappings.
  • /i18n-sync: Generate translation proposals. Must inform user of the Preview path after execution.
  • /i18n-commit: Apply proposals. Supports UUID, language code, or all.
  • /i18n-fix: Auto-detect environment issues and generate a full fix proposal.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.84%
按下载量换算33

Claude

28.95%
按下载量换算24

Cursor

17.9%
按下载量换算15

Gemini CLI

9.81%
按下载量换算8

安全审计

Gen Agent Trust Hub

未通过

Socket

可疑

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/shirolin/i18n-agent-skill --skill i18n-agent-skill 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills