Skip to content

huiyu/code-lingo

Repository files navigation

Code Lingo

Learn any language naturally while working with Claude. Code Lingo provides real-time language tips at the end of every response — without interrupting your workflow.

How It Works

When you chat with Claude in your native language, Code Lingo shows how to express the same idea in your target language. When you practice writing in the target language, it corrects grammar and suggests better expressions.

Tips appear at the end of each response, separated by ---:

[Claude's normal response here]

---
📝 English Tip:
Your message: "帮我写一个排序函数"
In English: "Help me write a sorting function"
Key phrase: "sorting function" (排序函数)

Installation

Claude Code (Plugin)

  1. Add the plugin marketplace:
/plugin marketplace add huiyu/code-lingo
  1. Install the plugin:
/plugin install code-lingo@code-lingo
  1. Set up your target language:
/lingo-setup English

If you skip step 3, Code Lingo will auto-prompt you on your first message.

Claude Desktop (Extension)

Option A: One-click install (recommended)

Download code-lingo.mcpb from the Releases page, then drag it into Claude Desktop's Settings window.

Option B: Build from source

git clone https://github.com/huiyu/code-lingo.git
cd code-lingo
npm install
npx @anthropic-ai/mcpb pack

Then drag the generated code-lingo.mcpb into Claude Desktop.

Usage

Slash Commands (Claude Code)

Command Description
/lingo-setup [language] Set up or change your target language
/lingo-on Enable language tips
/lingo-off Temporarily disable language tips

MCP Tools (Claude Desktop)

Claude Desktop uses MCP tools automatically. You can also ask Claude directly:

  • "Set up language learning for Japanese"
  • "Turn off language tips"
  • "Change my target language to French"

Configuration

Config is stored at ~/.claude/code-lingo.json:

{
  "target_language": "English",
  "native_language": "Chinese",
  "enabled": true
}

Architecture

Platform Mechanism How
Claude Code Hook (UserPromptSubmit) Automatically injects language instructions into context. Zero tool-call overhead.
Claude Desktop MCP Server (.mcpb extension) One-click install via Desktop Extension format.

Both share the same config file ~/.claude/code-lingo.json.

License

MIT

About

Claude Code Language Learn Plugin.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors