Agent Skills to help developers using AI agents with Lingui
npx skills add https://github.com/lingui/skills --skill lingui-best-practicesCLI를 사용하여 이 스킬을 설치하고 작업 공간에서 SKILL.md 워크플로 사용을 시작하세요.
This repository contains Agent Skills for Lingui - a powerful internationalization framework for JavaScript applications.
Skills are reusable capabilities for AI coding agents. They provide procedural knowledge and best practices that help AI agents implement features correctly and efficiently.
Install all Lingui skills with a single command:
npx skills add lingui/skills
This gives your AI coding agent access to comprehensive Lingui knowledge including best practices, common pitfalls, and configuration patterns.
Comprehensive guide for implementing internationalization with Lingui in React and JavaScript applications.
What it covers:
I18nProviderTrans macro for JSX translationsuseLingui() for non-JSX translationsPlural componentUse when:
lingui.config.jsAdd translator comments to Lingui messages so translators get the context they need. Comments describe where a message appears, what it does, and how to disambiguate it—improving translation quality without runtime cost.
What it covers:
comment fields (ambiguous words, isolated labels, domain terms, unclear variables)t, Trans, and defineMessage with commentsUse when:
{count}, {name})Diagnose and fix @lingui/swc-plugin compatibility errors with Next.js, Rspack, or other SWC runtimes.
Use when you see errors like:
failed to invoke plugin on 'Some("...")'failed to run Wasm plugin transformRuntimeError: out of bounds memory accessLayoutError called Result::unwrap()What it covers:
Install all Lingui skills:
npx skills add lingui/skills
Use with your AI coding agent:
The skills will automatically be available when working on projects that use Lingui, or when you mention terms like "i18n", "internationalization", "translation", "Lingui", etc.
Manual trigger:
You can explicitly reference the skills in your prompts:
"Using the Lingui skills, help me add internationalization to my React app"
If you prefer, you can install specific skills:
npx skills add lingui/skills/lingui-best-practices
npx skills add lingui/skills/swc-plugin-compatibility
npx skills add lingui/skills/enhanced-message-context
These skills are compatible with:
Have suggestions for improving these skills? Found an error?
MIT License - See the main Lingui repository for details.