/rules-for-ai:hashiiiii-localefrom rules-for-ai
Sets or changes locale preferences (issues, PRs, comments, logs) at user, project, or local Git worktree scope.
Ships in rules-for-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Write all five locale keys to the scope the user selects. Do not infer the scope from the current directory or plugin installation.
Accept user, project, or local, either as a bare argument or as scope=<scope>. If the user does not select a scope, ask before proceeding. Before writing, state the selected scope, exact target path, and sharing behavior.
| Scope | File | Sharing |
|---|---|---|
user | ${XDG_CONFIG_HOME:-${HOME:-}/.config}/rules-for-ai/LOCALE.md | All projects for this user |
project | <repo>/.rules-for-ai/LOCALE.md | Anyone using the repository |
local | <absolute-git-dir>/rules-for-ai/LOCALE.md | This Git worktree only |
For project and local, get the repository with git rev-parse --show-toplevel. For local, get the directory with git rev-parse --absolute-git-dir. Stop if either command fails. Do not commit project files automatically or add local files to Git ignore rules.
A single POSIX-style locale tag, such as ja_JP, sets all five keys. Key-value arguments set individual keys. If no locale values are given, ask which locale to use for each artifact. Reject unknown scopes and keys. Keep each tag as supplied; do not translate or normalize it.
| Key | Applies to |
|---|---|
issues | Issues |
pull-requests | Pull requests |
comments | Code comments |
logs | Log messages |
test-logs | Test log messages |
For a partial update, keep existing target values first. Fill missing keys only from lower-priority scopes:
| Target | Fallback order |
|---|---|
local | Project, user, bundled default, en_US |
project | User, bundled default, en_US |
user | Bundled default, en_US |
Always write all five keys. Never copy local values into project or user settings. Locale resolution uses the first existing file as a whole; project instructions take precedence over locale keys.
Use LF line endings and strict key=value lines with no spaces around =:
# Locale
issues=ja_JP
pull-requests=ja_JP
comments=ja_JP
logs=en_US
test-logs=en_US
Create the target directory if needed. Write a temporary file in that directory, then atomically move it over the target.
What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/hallmarkUse when designing a new interface, auditing or redesigning an existing one, or studying a design from a URL or screenshot./hashiiiii-explain-prUse when a user asks to understand or explain a pull request's purpose, diff, or relationship to an issue./hashiiiii-gitUse this skill to name a Git branch or write a commit message./hashiiiii-imagesUse this skill to create project images, especially flat geometric images with a dark background and one accent color.npx claudepluginhub hashiiiii/rules-for-ai --plugin rules-for-aiOther plugins' skills for the same job