Review trading workspace Rails code for architecture violations and refactor accordingly. Enforces service objects, broker abstraction, pure risk functions, and idempotent event handlers.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
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