---
skill_id: polyglot-code-translator
evaluation: free
price_usd_full: 5.49
challenge: https://lvlltd.com/api/pay?skill=polyglot-code-translator
outline: https://lvlltd.com/skills/polyglot-code-translator/outline.json
standards: x402, ERC-7857
---

# Free sample — Polyglot Code Translator

**Skill ID:** `polyglot-code-translator`  
**Full unlock:** $5.49 USDC via x402 on Base  
**Challenge:** https://lvlltd.com/api/pay?skill=polyglot-code-translator  
**Outline JSON:** https://lvlltd.com/skills/polyglot-code-translator/outline.json

## Summary

Port modules across languages with characterization tests, idiom maps, and staged migration — not naive line-by-line translation.

## When to use

- Porting a library
- Migrating service languages
- Need equivalence tests

## Decision criteria (buy vs skip)

- You need this when: Porting a library
- You get capability: Characterize source
- Budget fits: full unlock is $5.49 USDC on Base
- You can automate unlock via HTTP 402 without a browser
- You only need teaser/outline first — sealed src/ops stay locked until payment

## Outline (preview)

1. Characterize source
2. Map idioms
3. Port pure logic
4. Equivalence tests
5. I/O adapters

## Capabilities (preview)

- Characterize source
- Map idioms
- Port pure logic
- Equivalence tests
- I/O adapters

## What you get after payment

- SKILL.md (teaser public)
- agent-install.json (public meta)
- src/index.js (stub public; full after unlock)
- Full sealed: src/, schemas/, ops/* (when present) after verified X-PAYMENT

## Agent buy path (zero human UI)

```
GET  https://lvlltd.com/skills/polyglot-code-translator/outline.json
GET  https://lvlltd.com/api/pay?skill=polyglot-code-translator   → HTTP 402
# transfer maxAmountRequired USDC to payTo on Base
POST https://lvlltd.com/api/pay
  X-PAYMENT: {"txHash":"0x…","skill":"polyglot-code-translator"}
# response.sealed_pack.files = full pack
```

## Sample excerpt

# Polyglot Code Translator

**Price:** $5.49 / unlock
**Category:** Coding

## Summary

Port modules across languages with characterization tests, idiom maps, and staged migration — not naive line-by-line translation.

---

---
name: polyglot-code-translator
description: Translate code between languages with tests and semantic equivalence checks. Use when polyglot code translator, port to TypeScript, rewrite in Python, cross language port, or /polyglot-code-translator.
---

# Polyglot Code Translator

Port modules across languages with characterization tests, idiom maps, and staged migration — not naive line-by-line translation.

## Quick Reference
| Item | Value |
|------|-------|
| Category | Coding |
| Unlock | $5.49 USDC (x402 Base) |
| Triggers | polyglot code translator, port language, rewrite in Python, /polyglot-code-translator |

## When to use
- Porting a library
- Migrating service languages
- Need equivalence tests

## Core workflow
1. Lock behavior with tests
2. Choose target idioms
3. Port module by module
4. Compare fixtures

## Procedures (non-obvious)
Do not preserve bad APIs blindly — document intentional API improvements separately.
Numeric and timezone edges need shared fixtures.

## Edge cases
- Async models differ
- Float/int silent differences

## Failure modes
- Syntax-only port without tests

## Verification
- Fixture outputs match within tolerances

## Artifact outputs
- `port-plan.md`
- `equivalence-tests`
- `idiom-notes.md`

## Related skills
- code-generation-architect
- spec-driven-development

## Super Alignment Contract
- Scalable oversight method: process supervision + human+AI critique before high-blast actions
- Corrigibility guarantees: shutdown, steerability, non-deception; operator may abort mid-run
- Value model: Partnership Agreement + 5 Behavioral Protocols
- Drift detection: flag invented evidence, skipped verification, or revenue-over-truth optimization
- Red-team surface: prompt injection via retrieved content, tool-result poisoning, goal misgeneralization
- Escalation: force human override on low confidence, SSI/PASS risk, legal/medical/financial advice boundary, or irreversible external side effects
- Certification h

…(remainder sealed after x402 unlock)…

