Polyglot Refactor — AI skill for Claude Code
Semantic, AST-safe multi-language code refactoring engine for AI agents and developers (Kotlin, Swift, TypeScript, Python, Rust, Go, Java, C++, C#).
How to install Polyglot Refactor
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ronjunevaldoz/polyglot-refactor and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Polyglot Refactor does
Semantic, AST-safe multi-language code refactoring engine for AI agents and developers (Kotlin, Swift, TypeScript, Python, Rust, Go, Java, C++, C#).
Alternatives in AI
- JeecgBoot — 【低代码v2.0,一句话即可生成整个系统】企业级AI低代码平台,一键生成前后端代码甚至整个系统 47.5k ★
- Osaurus — Own your AI. The native macOS harness for AI agents -- any model, persistent memory, autonomous execution, cry 5.1k ★
- Agent Rules Books — AGENTS.md rules / skills for AI coding agents: Codex, Cursor & Claude Code 2.6k ★
README
Polyglot Refactor
Semantic, AST-safe multi-language refactoring engine for AI agents and developers.
# Install to your AI Agent (Claude Code, Gemini CLI, Cursor, Antigravity)
npx skills add ronjunevaldoz/polyglot-refactor
💰 AI Agent Token & Cost Efficiency
When refactoring a symbol or moving a package across a 30-file codebase:
| Metric | Traditional AI Agent (File-by-File) | With Polyglot Refactor | Savings |
|---|---|---|---|
| Context Input Tokens | 45,000–80,000 tokens | < 100 tokens | 99.8% reduction |
| Generation Output Tokens | 4,000–10,000 tokens | < 50 tokens | 99.5% reduction |
| Agent Turns & Tool Calls | 30–50 consecutive tool calls | 1 single command | 98% fewer turns |
| Execution Latency | 60–180 seconds | ⚡ 1.72 seconds | 98% faster |
| Compiler Failure / Drift | High (Hallucinations, missed files) | 0% (AST-Safe) | Zero breakage |
Benchmark & Comparison (4,200+ files across 30 modules)
| Engine | Speed | Directory Moves | Languages | Substring Safety | Execution Mode |
|---|---|---|---|---|---|
| Polyglot Refactor | 1.72s | Automatic | 10+ Languages | Guaranteed (\b) |
CLI, Headless, CI, Agent |
| Android Studio / IntelliJ | 58.30s | Automatic | JVM / Android only | Guaranteed |
Related Skills
Diogenes Context Code Solver MCP
15 TDQS 5.0/5.0 deterministic AI agent & developer tools: AST context skeleton pruner, BPE token budget planne
Jirrafe
Code graph of Java/Kotlin projects, including the code inside internal jars, for AI coding agents. Ships as an
Debug Log Skill
A debugging discipline + pre-mortem error catalogs for LLM-assisted coding across web, iOS, Android, macOS, Ko
SDK Skill
Agentskills.io-compatible skill that walks an AI agent through integrating the Amply SDK into a mobile app — R
O2 Scalpel
LSP-driven semantic refactoring for agentic AI (MCP server + Claude Code plugin)
Reql
REQL – A graph-native code index engine for agents. Scans Python, TypeScript, Go, Rust, Java, and 30+ language
Related Agents
Polyglot Engineer
Multi-language expert specializing in Rust, Python, Zig, Go, TypeScript, and Swift. Use for cross-language pro
Mobile Code Reviewer
Use this agent to review mobile code changes or a whole mobile project (Flutter/Dart, Android Kotlin/Java, iOS
Mobile Reviewer.Agent
Read-only reviewer for Android, iOS and Flutter changes. Applies the mobile-code-review skill to a diff and th