# Intlayer lit

> Intlayer lit is an open-source agent skill for developer tools. Adds Intlayer i18n to Lit web components with per-component content files. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/aymericzip/intlayer/tree/main/.agents/skills/intlayer-lit
- **Repository:** https://github.com/aymericzip/intlayer
- **GitHub stars:** 869
- **License:** Apache-2.0
- **Skill name:** intlayer-lit
- **Collection:** https://github.com/aymericzip/intlayer
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill guides an agent through adding Intlayer internationalization to Lit web components. Content is kept in content files placed next to each element rather than in one large global translation file, and each element pulls its strings through a reactive controller.

The workflow has the agent write a content declaration using translation helpers for each locale, then build a LitElement that calls the useIntlayer controller with the host element and the content key. A companion useLocale controller exposes the current locale, the available locales and a setter for switching language at runtime. The skill also covers installing Intlayer at startup and includes guidance on keeping bundles small by reading fields by name rather than indexing dictionaries at runtime.

It expects a Lit project, typically set up with Vite, and it points to reference guides for Vite, Astro, the Intlayer compiler, variants, collections and formatters.

## When your agent uses it

> Integrates Intlayer internationalization with Lit web components. Use when the user asks to "setup Lit i18n", create a translated LitElement, use the "useIntlayer" controller, or switch locale in a Lit application.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/aymericzip/intlayer/tree/HEAD/.agents/skills/intlayer-lit)
- [License: Apache-2.0](https://github.com/aymericzip/intlayer/tree/HEAD/.agents/skills/intlayer-lit)

## Features

- **Per-component content files:** Defines translations in content files that sit beside each Lit element.
- **useIntlayer controller setup:** Shows how to bind a LitElement to its translated content through a reactive controller.
- **Runtime locale switching:** Provides a locale controller to read available locales and change language.
- **Startup installation steps:** Explains where to call the Intlayer installer before custom elements are registered.
- **Bundle size guidance:** Advises reading content fields by name so unused strings can be purged.
- **Key extraction compiler:** Points to a CLI command that extracts content keys from components.

## Good for

- Set up i18n in a new Lit web component project
- Create a translated LitElement with English and French text
- Add a language switcher that changes locale at runtime
- Move hard-coded strings in a Lit component into Intlayer content files

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/intlayer-lit` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aymericzip/intlayer.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/intlayer-lit &&
cp -R "$tmp/.agents/skills/intlayer-lit" ~/.claude/skills/intlayer-lit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/intlayer-lit` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/intlayer-lit` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aymericzip/intlayer.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/intlayer-lit &&
cp -R "$tmp/.agents/skills/intlayer-lit" ~/.agents/skills/intlayer-lit &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/intlayer-lit` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/intlayer-lit` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aymericzip/intlayer.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/intlayer-lit &&
cp -R "$tmp/.agents/skills/intlayer-lit" ~/.cursor/skills/intlayer-lit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/intlayer-lit` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/aymericzip/intlayer.git --path .agents/skills/intlayer-lit
```

Or copy the folder to `~/.gemini/skills/intlayer-lit` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/intlayer-lit`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aymericzip/intlayer.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/intlayer-lit &&
cp -R "$tmp/.agents/skills/intlayer-lit" ~/.copilot/skills/intlayer-lit &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/intlayer-lit` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/aymericzip/intlayer.git
```

Then copy `intlayer/.agents/skills/intlayer-lit` into your agent's skills folder as `intlayer-lit`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Intlayer lit trigger?

It is meant for requests such as setting up Lit i18n, creating a translated LitElement, using the useIntlayer controller, or switching locale in a Lit application.

### What does the agent need before using Intlayer lit?

The guidance assumes a Lit application, with setup described for Vite and Lit and for Astro and Lit, and it requires the lit-intlayer package with installIntlayer called before custom elements are registered.

### Is Intlayer lit free to use?

The skill is published under the Apache-2.0 license.

### How do I install Intlayer lit in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/intlayer-lit to use it in all your projects, or to .claude/skills/intlayer-lit in one project.

### Does Intlayer lit run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Intlayer lit?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Intlayer lit?

The closest alternatives to Intlayer lit are Intlayer svelte, Intlayer usage, Intlayer react, Intlayer preact and Intlayer vanilla.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Intlayer svelte](https://ai-powered.com/skills/intlayer-svelte): Intlayer svelte is an open-source agent skill for developer tools.
- [Intlayer usage](https://ai-powered.com/skills/intlayer-usage): Intlayer usage is an open-source agent skill for developer tools.
- [Intlayer react](https://ai-powered.com/skills/intlayer-react): Intlayer react is an open-source agent skill for developer tools.
- [Intlayer preact](https://ai-powered.com/skills/intlayer-preact): Intlayer preact is an open-source agent skill for developer tools.
- [Intlayer vanilla](https://ai-powered.com/skills/intlayer-vanilla): Intlayer vanilla is an open-source agent skill for developer tools.
- [Intlayer solid](https://ai-powered.com/skills/intlayer-solid): Intlayer solid is an open-source agent skill for developer tools.
- [Intlayer angular](https://ai-powered.com/skills/intlayer-angular): Intlayer angular is an open-source agent skill for developer tools.
- [Intlayer vue](https://ai-powered.com/skills/intlayer-vue): Intlayer vue is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/intlayer-lit
