local-link/skills/document-localize/SKILL.md
为 LLM 指令文件中的操作添加本地化标注,让 LLM 使用指定语言输出。适用于任何 prompt/instruction 文件,支持文档写入、Git commit、代码注释等多种操作类型。触发场景:(1) 需要让 LLM 用中文/日语/韩语等输出内容 (2) 批量为指令文件添加语言标注 (3) 本地化现有 prompt 文件。
npx skillsauth add lionad-morotar/simple-local-llm-server document-localizeInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
为 LLM 指令文件中的操作添加本地化语言标注。
输入:包含操作指令的文本 输出:添加语言标注后的文本
示例:
# Before
- Write a summary of the changes
- Commit the changes with a message
# After (默认中文标注)
- Write a summary of the changes(要求:使用中文)
- Commit the changes with a message(要求:使用中文)
识别模式:
Write to、Write、Create、Generate、Update、Output撰写、编写、生成、创建、输出编写文档、生成报告、创建文件识别模式:
commit、Commit、git commit提交、提交代码识别模式:
Add comments、Comment the code添加注释、代码注释识别模式:
Print、Display、Output、Show打印、显示、输出、展示为给定的指令文本添加语言标注:
参数:
- text: 需要标注的文本
- language: 目标语言(默认:中文)
- format: 标注格式(默认:(要求:使用{language}))
处理整个 prompt 文件:
参数:
- file_path: 文件路径
- language: 目标语言
- operations: 需要标注的操作类型列表(可选,默认全部)
支持自定义标注格式:
# 默认格式
(要求:使用中文)
# 其他格式示例
[请用中文]
-- 请使用中文输出
> Language: Chinese
(要求:使用{language})
标注默认紧随操作指令,保持原有句子格式不变。
| 语言代码 | 标注文本 | |---------|---------| | zh / chinese | 中文 | | ja / japanese | 日语 | | ko / korean | 韩语 | | en / english | English | | de / german | Deutsch | | fr / french | Français |
可在执行时指定:
| 选项 | 说明 | 默认值 |
|-----|------|-------|
| language | 目标语言 | 中文 |
| format | 标注格式 | (要求:使用{language}) |
| operations | 操作类型过滤 | 全部 |
| skip_existing | 跳过已有标注的行 | true |
是否需要标注 = 该指令是否要求 LLM 生成内容
不要死记硬背关键词,而是理解指令的意图:
| 需要标注(LLM生成内容) | 不需要标注(参考/描述/占位) |
|------------------------|---------------------------|
| Create DISCOVERY.md | See /templates/xxx.md |
| Write to: file.md | Use template: /templates/xxx.md |
| Output: Report content | Output: [What artifacts will be created] ← 占位符 |
| Produces DISCOVERY.md(在 <output> 标签中) | Produces 2-4 commits ← 描述性 |
同一个词在不同上下文中含义不同:
<!-- 在 <output> 标签中 = LLM指令,需要标注 -->
<output>
After completion, create SUMMARY.md
</output>
<!-- 在正文中 = 描述性说明,不需要标注 -->
This workflow produces DISCOVERY.md for Level 2-3.
<!-- 方括号 = 人类占位符,不需要标注 -->
Output: [What artifacts will be created]
陷阱1:过度标注
❌ See /templates/summary.md(要求:使用中文) ← 错误!只是引用路径
✅ See /templates/summary.md
陷阱2:遗漏标注
❌ After completion, create SUMMARY.md ← 错误!LLM需要执行
✅ After completion, create SUMMARY.md(要求:使用中文)
陷阱3:混淆 Output: 的语义
❌ Output: [What artifacts will be created](要求:使用中文) ← 错误!这是占位符
✅ Output: [What artifacts will be created]
❌ Output: DISCOVERY.md with recommendation ← 错误!需要标注
✅ Output: DISCOVERY.md with recommendation(要求:使用中文)
标注前问自己:
[占位符] → 不标注(留给人类填写)<output>、<step> 中的指令 → 通常需要标注tools
理解用户意图;listen 模式通过 grill-me 深挖任务并归档经验
development
给 VSCode(Insiders/Stable) 内置 ripgrep 加 5s 超时包装,防止搜索卡死吃满 CPU。--on 包装(幂等) / --off 还原 / 不带参数查状态。Use when VSCode 搜索卡死、rg 进程占满 CPU,或 VSCode 更新后超时保护失效需要重包。
development
为指定项目创建完全隔离的 hapi(Claude Code On the Go)实例,包括独立数据目录、LaunchAgent 持久化、zsh wrapper 和 app.hapi.run 直连 URL。与全局 ~/.hapi 互不干扰。
development
关闭承载当前 Claude Code 会话的宿主(VSCode 窗口或其终端面板),连同 claude 一起退出。通过 close-host-window 扩展触发:先 SIGTERM claude(走完 SessionEnd hooks)再关 host,不抢焦点、不丢 hooks。--host vscode 关窗口、--host terminal(默认)只关终端面板。Use when 任务结束要随宿主退出,或需精确关闭某 claude 终端所在窗口/面板。