Review trading workspace Rails code for architecture violations and refactor accordingly. Enforces service objects, broker abstraction, pure risk functions, and idempotent event handlers.
Instalação
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Review trading workspace Rails code for architecture violations and refactor accordingly. Enforces service objects, broker abstraction, pure risk functions, and idempotent event handlers.
disable-model-invocation
true
argument-hint
["file-or-directory"]
allowed-tools
Read, Glob, Grep, Edit, Write
Skill: Rails Trading Refactor
Review the target code for trading workspace architecture violations and refactor accordingly.
Rules
No business logic in controllers — extract to service objects
Order execution must log every state transition
Strategy logic must remain broker-agnostic — no raw DhanHQ calls outside dhanhq-client
Risk calculations must be pure functions (no side effects, no DB writes)
WebSocket event handlers must be idempotent
Output
Refactored code with service objects
List of violations found and how each was resolved