Long-horizon Visual Instruction Generation with Logic and Attribute Self-reflection