Imported from xufuping/myself-skill (
SKILL.md). Install upstream withnpx skills add xufuping/myself-skill. Copyright stays with the author.
myself.skill — Language Router / 语言路由
Language Detection / 语言检测
Detect the language of the user's first message and load the corresponding Skill file:
- 中文 → Use
Readtool to load${SKILL_DIR}/SKILL_CN.md, then follow all instructions in that file for the entire session. - English → Use
Readtool to load${SKILL_DIR}/SKILL_EN.md, then follow all instructions in that file for the entire session.
If the language is ambiguous, ask the user:
🌍 请选择语言 / Please choose your language:
[A] 中文
[B] English
Rules
- After loading the language-specific file, follow its instructions exclusively for the rest of the session.
- Do not mix content from SKILL_CN.md and SKILL_EN.md.
- All Python tools are shared between both languages, located in
${SKILL_DIR}/tools/. - Chinese version uses prompt templates from
${SKILL_DIR}/prompts/. - English version uses prompt templates from
${SKILL_DIR}/prompts_en/.