translate
AI-powered translation plugin with /tr command (--hq for high-quality)
Summary
Translate text between languages directly in Claude Code using the /tr command.
- Supports high-quality mode with --hq flag for more accurate translations, making it ideal for developers working with multilingual documentation, code comments, or user-facing text.
Overview
Claude Code plugins for integrating with AI coding assistants.
Plugins
| Plugin | Type | Description |
|---|---|---|
| ask-claude | Skill | Get a second opinion from another Claude instance |
| ask-codex | Skill | Get a second opinion from OpenAI Codex |
| ask-gemini | Skill | Get a second opinion from Google Gemini |
| ask-copilot | Skill | Get a second opinion from GitHub Copilot |
| ask-agy | Skill | Get a second opinion from Google Antigravity |
| peer | Skill | Peer engineer for code review, planning, and brainstorming |
| translate | Agent + Skill | AI-powered translation with /tr command (configurable quality) |
| security-scanner | Skill | Scan plugins and skills for security risks |
| extract-rules | Skill | Extract project-specific coding rules from codebase for AI agents |
| merge-rules | Skill | Merge portable coding rules from multiple projects into a unified rule set |
| caffeinate | Plugin | Manage macOS caffeinate to prevent system sleep |
Installation
Via Skills.sh (Claude Code, Cursor, Copilot, etc.)
npx skills add hiroro-work/claude-pluginsAvailable skills: ask-claude, ask-codex, ask-gemini, ask-copilot, ask-agy, ask-peer, security-scanner, extract-rules, merge-rules
Note: Agent features (translate) and hook features (caffeinate) are only available via Claude Code Plugin Marketplace.
Via Claude Code Plugin Marketplace (Full features)
/plugin marketplace add hiroro-work/claude-plugins/plugin install ask-claude@hiropon-plugins
/plugin install ask-codex@hiropon-plugins
/plugin install ask-gemini@hiropon-plugins
/plugin install ask-copilot@hiropon-plugins
/plugin install ask-agy@hiropon-plugins
/plugin install peer@hiropon-plugins
/plugin install translate@hiropon-plugins
/plugin install security-scanner@hiropon-plugins
/plugin install extract-rules@hiropon-plugins
/plugin install merge-rules@hiropon-plugins
/plugin install caffeinate@hiropon-pluginsRequirements
- •ask-claude: Requires
claudeCLI - •ask-codex: Requires
codexCLI - •ask-gemini: Requires
geminiCLI - •ask-copilot: Requires
copilotCLI - •ask-agy: Requires
agyCLI - •peer: No external dependencies (runs as Claude subagent)
- •translate: No external dependencies (runs as Claude subagent)
- •security-scanner: No external dependencies
- •extract-rules: No external dependencies
- •merge-rules: No external dependencies (requires extract-rules output from multiple projects)
- •caffeinate: macOS only (
caffeinatecommand)
Usage
Skill Plugins (ask-claude, ask-codex, ask-gemini, ask-copilot, ask-agy)
These plugins provide /ask-* commands for getting second opinions from other AI assistants.
Skill Plugin (peer)
Invoke with /ask-peer command. Spawns a peer engineer subagent for:
- •Planning review before implementation
- •Code review after completing work
- •Brainstorming for problem-solving
- •A second opinion on your approach
Plugin (caffeinate)
Prevent macOS system sleep during long-running sessions using caffeinate.
/caffeinate # Start caffeinate
/caffeinate stop # Stop caffeinate
/caffeinate status # Check statusAutomatically stops on session end via SessionEnd hook.
Skill Plugin (extract-rules)
Extract project-specific coding rules and domain knowledge from your codebase, generating structured markdown documentation for AI agents.
/extract-rules # Extract rules from codebase (initial)
/extract-rules --update # Re-scan and add new patterns (preserve existing)
/extract-rules --restructure # Re-analyze, reorganize structure, merge existing rules
/extract-rules --from-conversation # Extract rules from conversationOutput files are generated in .claude/rules/ directory.
Configuration (optional): Create .claude/extract-rules.local.md with YAML frontmatter to customize target directories, exclusions, output language, and split output mode. See SKILL.md for details.
Skill Plugin (merge-rules)
Merge extract-rules output from multiple projects into a unified portable rule set. Promotes .local.md patterns shared across projects.
/merge-rules # Merge using config file
/merge-rules --config <path> # Merge using specified config file
/merge-rules --dry-run # Show what would be merged without writingConfiguration (required): Create .claude/merge-rules.local.md with YAML frontmatter listing source projects. See SKILL.md for details.
License
MIT License
Install & Usage
mkdir -p .claude/agentsAdd the configuration to .claude/agents/translate.md
@translateUse Cases
Usage Examples
/translate --hq 'Bonjour le monde' to English
/tr 'Este es un ejemplo de traducción' --hq
/translate '将这段中文翻译成英文'
Security Audits
Frequently Asked Questions
What is translate?
Translate text between languages directly in Claude Code using the /tr command. Supports high-quality mode with --hq flag for more accurate translations, making it ideal for developers working with multilingual documentation, code comments, or user-facing text.
How to install translate?
To install translate: create the agents directory (mkdir -p .claude/agents), then add the config to .claude/agents/translate.md. Finally, @translate in Claude Code.
What is translate best for?
translate is a agent categorized under General. It is designed for: plugin. Created by hiropon.
What can I use translate for?
translate is useful for: Translate code comments from Chinese to English before sharing with an international team.; Convert user-facing error messages from English to Spanish for a localized app release.; Translate a README file from Japanese to English to broaden project contributors.; Quickly translate a technical term or phrase during a code review with a non-native speaker.; Translate documentation snippets from French to English for inclusion in a global wiki.; Translate inline strings in source code from German to English to standardize the codebase..