query-translator
Translate SQL queries between different database dialects with function mapping and optimization
Best use case
query-translator is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Translate SQL queries between different database dialects with function mapping and optimization
Teams using query-translator should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/query-translator/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How query-translator Compares
| Feature / Agent | query-translator | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Translate SQL queries between different database dialects with function mapping and optimization
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Query Translator Skill
Translates SQL queries between different database dialects, handling function mapping, syntax differences, and performance optimization.
## Purpose
Enable SQL migration for:
- Dialect conversion
- Function mapping
- Syntax translation
- Performance hint conversion
- Query optimization suggestions
## Capabilities
### 1. Dialect Conversion
- Oracle to PostgreSQL
- SQL Server to MySQL
- MySQL to PostgreSQL
- And more combinations
### 2. Function Mapping
- Date/time functions
- String functions
- Math functions
- Custom function equivalents
### 3. Syntax Translation
- Pagination (LIMIT/OFFSET/ROWNUM)
- String concatenation
- NULL handling
- Boolean expressions
### 4. Performance Hint Conversion
- Index hints
- Join hints
- Optimizer directives
- Execution plan guidance
### 5. Query Optimization Suggestions
- Index recommendations
- Query restructuring
- Join optimization
- Subquery refactoring
## Tool Integrations
| Tool | Purpose | Integration Method |
|------|---------|-------------------|
| SQLGlot | Universal SQL parser | Library |
| AWS SCT | Schema conversion | CLI |
| ora2pg | Oracle to PostgreSQL | CLI |
| pgLoader | MySQL to PostgreSQL | CLI |
| SSMA | SQL Server migration | CLI |
## Output Schema
```json
{
"translationId": "string",
"timestamp": "ISO8601",
"source": {
"dialect": "string",
"query": "string"
},
"target": {
"dialect": "string",
"query": "string"
},
"transformations": [
{
"type": "function|syntax|hint",
"original": "string",
"translated": "string",
"notes": "string"
}
],
"optimizations": [],
"warnings": [],
"manualReviewNeeded": []
}
```
## Integration with Migration Processes
- **database-schema-migration**: Query migration
- **cloud-migration**: Cloud database adaptation
## Related Skills
- `schema-comparator`: Schema analysis
- `data-migration-validator`: Validation queries
## Related Agents
- `database-migration-orchestrator`: Uses for migrationRelated Skills
react-query
TanStack Query (React Query) patterns for server state management, caching, mutations, optimistic updates, and infinite queries.
db-query-analyzer
Analyze database query performance with execution plans and index recommendations
clinical-documentation-query
Generate compliant physician queries to clarify clinical documentation for accurate coding, severity of illness, and risk of mortality capture
temporal-logic-translator
Translate between temporal logic formalisms and generate property specifications
sql-query-optimizer
Analyzes and optimizes SQL queries across different data warehouse platforms (Snowflake, BigQuery, Redshift, Databricks) with platform-specific recommendations.
rag-query-transformation
Query expansion, HyDE, and multi-query generation for improved retrieval
process-builder
Scaffold new babysitter process definitions following SDK patterns, proper structure, and best practices. Guides the 3-phase workflow from research to implementation.
babysitter
Orchestrate via @babysitter. Use this skill when asked to babysit a run, orchestrate a process or whenever it is called explicitly. (babysit, babysitter, orchestrate, orchestrate a run, workflow, etc.)
yolo
Run Babysitter autonomously with minimal manual interruption.
user-install
Install the user-level Babysitter Codex setup.
team-install
Install the team-pinned Babysitter Codex workspace setup.
retrospect
Summarize or retrospect on a completed Babysitter run.