Back to list
hiroro-work

tr

by hiroro-work

16🍴 0📅 Jan 23, 2026

SKILL.md


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

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 customize defaults in .claude/translate.local.md:

---
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: Read .claude/translate.local.md if it exists

    • 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:

    • If --hq is present → use tr-hq agent (sonnet)
    • If --fast is present → use tr agent (haiku)
    • If both --hq and --fast--hq takes priority
    • If neither → use default from settings (or haiku if no settings)
  3. Construct prompt for agent: Build the prompt with settings and text

    • Priority: --to/--from options override settings file, which overrides defaults
    • If custom languages are configured, prefix with: primary: <primary_language>, secondary: <secondary_language>
    • If --from <lang> is specified, include: --from <lang>
    • If --to <lang> is specified, include: --to <lang>
    • Append the user's text to translate
  4. Invoke agent: Use Task tool with the appropriate agent (tr or tr-hq)

  5. Return result: The agent returns only the translated text

Score

Total Score

45/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

0/5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon