ronjunevaldoz

Polyglot Refactor — AI skill for Claude Code

AI community

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.

skills.sh installs CI License Python

# 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