language-injection
Skill by microsoft
Explains the language injection convention for LLM agent prompts in the data_formulator codebase. It is aimed at developers who edit agent prompts, add agent endpoints or handle user-visible backend messages.
Install language-injection
Built from the published package, never by AI.
git clone --depth 1 https://github.com/microsoft/data-formulator /tmp/data-formulator && mkdir -p ~/.claude/skills && cp -r /tmp/data-formulator/.cursor/skills/language-injection ~/.claude/skills/language-injectionRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/microsoft/data-formulator /tmp/data-formulator && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/data-formulator/.cursor/skills/language-injection ~/.gemini/antigravity-cli/skills/language-injectionAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a developer guide for multilingual LLM agent prompts in the data_formulator codebase. The frontend sends its i18n language in an Accept-Language header on each API request. Backend code in agents/agent_language.py turns that language into a prompt instruction, with a full mode for text-heavy agents and a compact mode for code-generation agents. The module supports 20 languages and returns an empty string for English.
For user-visible backend messages, the skill says to return a message_code and let the frontend translate it with translateBackend(), using keys in src/i18n/locales. It also lists anti-patterns to avoid, such as process-level language settings and backend translation dictionaries. It is aimed at developers who change agent prompts, add agent routes or handle backend messages.
Written from the project's SKILL.md and checked against it.
What it can do
- Language instruction builderbuild_language_instruction(lang, mode) generates prompt fragments in full or compact mode.
- Prompt injectioninject_language_instruction() adds the language instruction to system prompts, optionally before a marker.
- Accept-Language parsingget_language_instruction() reads the Accept-Language header in the route handlers.
- message_code patternBackend messages return a message_code or content_code key that the frontend translates.
- Frontend translation helpertranslateBackend() translates backend message codes using frontend i18n.
- Adding a new languageSteps to add a language in agent_language.py and copy a locale folder for frontend strings.
What you need
- Access to the data_formulator repository
- Python backend with Flask route handlers
- Frontend i18n locale files in src/i18n/locales
Try asking
- Add language injection to my new agent's system prompt in data_formulator
- Return a message_code for this backend error instead of translating it in Python
- Show me how to add a new language to agent_language.py
Good to know
- Python code should not translate fixed UI strings; the frontend translates them using message keys
- Per-process language settings via environment variables are listed as an anti-pattern because they affect all users
- English returns an empty instruction string
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .cursor/skills/language-injection/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to language-injection
All alternatives →Explains how to set up and verify Zoom webhooks for event-driven workflows. Covers signature checks, event subscriptions, delivery handling, retries and event-type selection for developers.
Posts text, images and videos to Weibo, and publishes headline articles from Markdown files. It works through a real Chrome browser over CDP. The scripts only fill in the content, and the user reviews and publishes manually.
Adds another phone number to an existing Dial channel in NanoClaw, so one install can answer SMS and AI voice calls on several numbers. Intended for operators who already run Dial and want a second or third line.
Explains how to set up and use Zoom WebSockets for persistent, low-latency Zoom event streams. Intended for workflows where WebSockets are preferred over webhooks.
Adds personal WeChat support to NanoClaw through Tencent's official iLink Bot API. It uses long-polling and QR code login, so no public webhook URL is needed. It is for NanoClaw users who want a personal WeChat bot channel.
Guides AI assistants through the bundled Zoom MCP connectors for meetings, recordings, meeting assets and transcripts. Intended for planning or troubleshooting tool-based Zoom access after routing to an MCP workflow.
Compare with setup-zoom-webhooks, baoyu-post-to-weibo or add-dial-number
language-injection: common questions
Does this skill change how the frontend sends the language to the backend?
The skill states that fetchWithIdentity() in src/app/utils.tsx sets the Accept-Language header from i18n.language on every API request.
Where do translations for backend messages go?
The source says translation keys go in src/i18n/locales/{en,zh}/messages.json under messages.agent.*, not in a Python dictionary.
Do I need to change agent code to support a new language?
No. The source says the existing flow picks up new languages automatically once they are added to LANGUAGE_DISPLAY_NAMES and the frontend locales.
How do I install language-injection?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is language-injection free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is language-injection safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to language-injection?
Similar skills: setup-zoom-webhooks, baoyu-post-to-weibo, add-dial-number, setup-zoom-websockets.
