re-visualize-logic
Installation
SKILL.md
Logic Visualization — Reverse Engineering Phase 2
Convert source code into Mermaid flowcharts with line-number traceability. This skill reads its targets from manifest.json (populated by Phase 1) and processes each component's methods.
Three Principles
1. Code is Truth
- Document the ACTUAL code flow, not idealized versions
- Include dead code or seemingly redundant logic
- If code appears buggy, document as-is and note in Question List
2. Traceability to Line
- Every node in a Mermaid diagram MUST include a line number:
"Action (L{line})" - If a line number cannot be determined, exclude that node
3. Behavior over Intent
- Focus on observable actions: method calls, DB operations, network I/O, state mutations
- Do NOT add implied steps not present in code