ritual: stereotyped behavior
habit: (psychology) an automatic pattern of behavior in reaction to a specific situation; may be inherited or acquired through frequent repetition
instruction: (computer science) a line of code written as part of a computer program