Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

tr

verified

Translate text between Japanese and English. Auto-detects source language. Use --hq for high-quality (sonnet), --fast for standard (haiku).

View on GitHub

Marketplace

hiropon-plugins

hiroro-work/claude-plugins

Plugin

translate

workflow

Repository

hiroro-work/claude-plugins
20stars

plugins/translate/skills/tr/SKILL.md

Last Verified

February 2, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/hiroro-work/claude-plugins/blob/main/plugins/translate/skills/tr/SKILL.md -a claude-code --skill tr

Installation paths:

Claude
.claude/skills/tr/
Powered by add-skill CLI

Instructions

# Translate

Translate text using Claude subagents.

## Usage

```
/tr <text to translate>
/tr --to <lang> <text to translate>
/tr --from <lang> <text to translate>
/tr --hq <text to translate>
/tr --fast <text to translate>
```

## Options

- `--hq`: Force high-quality translation (sonnet model)
- `--fast`: Force standard translation (haiku model)
- `--to <lang>`: Specify target language (e.g., `zh`, `fr`, `ko`)
- `--from <lang>`: Specify source language (e.g., `ja`, `en`, `zh`)

## Configuration

Users can configure defaults in `translate.local.md`:

- **Project-level**: `.claude/translate.local.md` (takes precedence)
- **User-level**: `~/.claude/translate.local.md`

If both files exist, **project-level settings take precedence**.

```markdown
---
default_quality: hq      # or "fast" (default)
primary_language: ja     # Language to detect (default: ja)
secondary_language: en   # Default target when primary detected (default: en)
---
```

## Examples

```
/tr こんにちは
/tr Hello, how are you?
/tr Bonjour               # French → Japanese (default)
/tr --to zh Hello, world!
/tr --from ja Konnichiwa
/tr --from en --to ja Hello
/tr --hq この文章を翻訳してください
/tr --fast --to fr Hello, world!
```

## Execution

1. **Check for settings file**: Search for `translate.local.md` in the following locations:
   1. **Project-level**: `.claude/translate.local.md`
   2. **User-level**: `~/.claude/translate.local.md`

   Settings file resolution:
   - If both files exist, use project-level settings only (project-level takes precedence)
   - If only one file exists, use that file
   - If neither file exists, proceed with default settings

   Parse YAML frontmatter for settings:
   - `default_quality`: If `hq`, default to sonnet model
   - `primary_language`: Language to detect (default: `ja` for Japanese)
   - `secondary_language`: Target when primary detected (default: `en` for English)
   - If file is missing or invalid, use defaults: `fast` quality, `ja`/`en` languages

2. **Parse options**

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
2722 chars