By variously killing a stable Lévy process when it leaves the positive half-line, conditioning it to stay positive, and conditioning it to hit 0 continuously, we obtain three different, positive, self-similar Markov processes which illustrate the three classes described by Lamperti (1972). For each of these processes, we explicitly compute the infinitesimal generator and from this deduce the characteristics of the underlying Lévy process in the Lamperti representation. The proof of this result bears on the behaviour at time 0 of stable Lévy processes before their first passage time across level 0, which we describe here. As an application, for a certain class of Lévy processes we give the law of the minimum before an independent exponential time. This provides the explicit form of the spatial Wiener-Hopf factor at a particular point and the value of the ruin probability for this class of Lévy processes.