Polyglot Refactor
Description
Semantic, AST-safe multi-language code refactoring engine for AI agents and developers (Kotlin, Swift, TypeScript, Python, Rust, Go, Java, C++, C#).
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
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
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Awesome Llm Apps
100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI Headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agen
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI