stribus/pygerengastos / .agents/skills/reversa-screen-translator
reversa-screen-translator
VerifiedQuinto agente do Time de Migração. Traduz as telas do sistema legado em especificações executáveis, fechando a lacuna entre o catálogo do design-system e o código pronto. Opera em duas fases. Fase 1: detecta plataforma origem/alvo, apresenta os modos (literal, modernizado, híbrido) e exige decisão humana, produzindo screen_modernization_decision.md. Fase 2: gera target_screens.md, screen_deviation_log.md e, quando o oráculo legado roda, golden files com manifest.yaml para o Inspector consumir. Ativação: /reversa-screen-translator (geralmente invocado por /reversa-migrate, entre Designer e Inspector).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 18.6 KB |
| references/adapter-pairs.md | markdown | 6.6 KB |
| references/platform-detection.md | markdown | 5.9 KB |
| references/templates/golden_manifest.yaml | config | 2.8 KB |
| references/templates/inventory.schema.json | config | 5.1 KB |
| references/templates/screen_deviation_log.md | markdown | 2.2 KB |
| references/templates/screen_modernization_decision.md | markdown | 4.7 KB |
| references/templates/target_screens.md | markdown | 6.7 KB |
references/templates/inventory.schema.json
View on GitHub{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://reversa.dev/schemas/screens/inventory.json",
"title": "Screen Translator Internal Inventory",
"description": "Inventário interno do Screen Translator. Lista cada unidade visual detectada no legado, com identidade estável e rastreabilidade ao código fonte. Salvo em _reversa_sdd/screens/inventory.json. Sobrescrito a cada execução.",
"type": "object",
"required": ["schemaVersion", "generatedAt", "sourcePlatform", "screens"],
"properties": {
"schemaVersion": {
"type": "integer",
"const": 1
},
"generatedAt": {
"type": "string",
"format": "date-time"
},
"producedBy": {
"type": "string",
"const": "screen-translator"
},
"sourcePlatform": {
"type": "string",
"description": "Slug da plataforma origem detectada (ex: cobol-ansi-tui, delphi-vcl, asp-classic, android-xml, ios-xib)."
},
"detectionConfidence": {
"type": "string",
"enum": ["confirmed", "inferred", "gap", "ambiguous"]
},
"screens": {
"type": "array",
"description": "Lista de telas detectadas no legado.",
"items": {
"type": "object",
"required": ["id", "canonicalName", "legacyOrigin"],
"properties": {
"id": {
"type": "string",
"description": "Identificador único e estável dentro deste inventário (ex: SCR-0001)."
},
"canonicalName": {
"type": "string",
"description": "Nome canônico da tela usado em target_screens.md."
},
"legacyOrigin": {
"type": "object",
"required": ["file"],
"properties": {
"file": { "type": "string", "description": "Caminho relativo do arquivo legado." },
"line": { "type": ["integer", "null"], "description": "Linha do arquivo, quando aplicável." },
"paragraph": { "type": ["string", "null"], "description": "Nome do paragrafo COBOL, do form Delphi/VB6, da Activity Android, etc." }
}
},
"kind": {
"type": "string",
"enum": [
"tui-screen",
"form",
"page",
"activity",
"fragment",
"view-controller",
"modal",
"dialog",
"wizard-step",
"menu",
"list",
"detail",
"report",
"raw"
],
"description": "Tipo estrutural da tela. Use 'raw' quando o adapter não cobre o tipo."
},
"isCritical": {
"type": "boolean",
"description": "Marca telas críticas vs auxiliares (alimentado por reversa-detective quando disponível). Em modo híbrido, telas críticas tendem a ir para literal."
},
"matchesUiInventory": {
"type": "boolean",
"description": "true se a tela aparece em _reversa_sdd/ui/inventory.md."
},
"uiInventoryRef": {
"type": ["string", "null"],
"description": "Linha ou âncora correspondente em _reversa_sdd/ui/inventory.md."
},
"interpolations": {
"type": "array",
"items": { "type": "string" },
"description": "Variáveis dinâmicas detectadas (ex: '{{titular}}', '{{saldo}}')."
},
"transitions": {
"type": "array",
"items": { "type": "string" },
"description": "Próximas telas ou eventos disparados a partir desta."
},
"tokens": {
"type": "array",
"items": { "type": "string" },
"description": "Tokens do design-system referenciados (ex: 'color.cyan', 'typography.h1')."
},
"i18n": {
"type": "object",
"description": "Quando a tela tem catálogo de strings externo.",
"properties": {
"catalog": { "type": "string", "description": "Caminho do catálogo (ex: 'res/values/strings.xml', 'locale/pt_BR.po')." },
"keysReferenced": { "type": "array", "items": { "type": "string" } }
}
}
}
}
},
"skipped": {
"type": "object",
"description": "Quando o legado não tem UI, este campo é preenchido e screens[] fica vazio.",
"properties": {
"reason": { "type": "string" },
"emittedAt": { "type": "string", "format": "date-time" }
}
},
"divergenceFromUiInventory": {
"type": "object",
"description": "Comparação contra _reversa_sdd/ui/inventory.md. Se divergencePercent > 10, o agente para e pede revisão (RF-05).",
"properties": {
"totalInUiInventory": { "type": "integer" },
"totalInThisInventory": { "type": "integer" },
"matched": { "type": "integer" },
"missingInUiInventory": { "type": "array", "items": { "type": "string" } },
"extraInUiInventory": { "type": "array", "items": { "type": "string" } },
"divergencePercent": { "type": "number" }
}
}
}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |