Background: Previous studies showed the effectiveness of SmartCoach, a mobile phone-based life skills training programs for addiction prevention. However, socially stratifying factors like educational level or migration background were associated with lower program use and participation. Taking into account these differences, we subsequently optimized and tailored program elements, particularly for subgroups with low program engagement using qualitative interview data. Objectives and hypotheses: This study tested whether the optimized program version was superior to the original one in terms of efficacy and program use. We hypothesized that optimization and advanced tailoring will result in increased program efficacy and use. Methods: Two-arm, parallel-group, cluster-randomized controlled trial with assessments at baseline and follow-up after 6 months. School classes were randomized into two groups (1) an intervention group receiving the optimized program version or (2) a control group receiving the original version. Participants in both groups received up to 4 weekly text messages over 4 months in order to stimulate (1) self-management skills to cope with stress, (2) self-efficacy to resist social pressure, (3) observational learning, and (4) self-regulation. The messages included interactive features to stimulate active program engagement, such as quiz questions, message and picture contests, and integration of a friendly competition with prizes, in which program users collect credits with each interaction. The optimized program version included additional tailoring for participants with personal or parental backgrounds from non-German-speaking countries, who received shorter video clips. Furthermore, other stressors, including acculturation and quarrel with the family, were addressed and the weekly text messages were not always sent on Tuesdays but on different days of the week. Primary outcomes of this trial were quantity of alcohol use, number of days per month that nicotine-containing products were smoked, and cannabis use days. Secondary outcomes included program engagement, measured by the total number of interactions with the program, social skills, and perceived stress.