The stability theory of periodic traveling waves is much less advanced than for solitary waves, which were first studied by Boussinesq and have received a lot of attention in the last decades. In particular, despite recent breakthroughs regarding periodic waves in reaction-diffusion equations and viscous systems of conservation laws [Johnson-Noble-Rodrigues-Zumbrun, Invent math (2014)], the stability of periodic traveling wave solutions to dispersive PDEs with respect to 'arbitrary' perturbations is still widely open in the absence of a dissipation mechanism. The focus is put here on co-periodic stability of periodic waves, that is, stability with respect to perturbations of the same period as the wave, for KdV-like systems of one-dimensional Hamiltonian PDEs. Fairly general nonlinearities are allowed in these systems, so as to include various models of mathematical physics, and this precludes complete integrability techniques. Stability criteria are derived and investigated first in a general abstract framework, and then applied to three basic examples that are very closely related, and ubiquitous in mathematical physics, namely, a quasilinear version of the generalized Korteweg-de Vries equation (qKdV), and the Euler-Korteweg system in both Eulerian coordinates (EKE) and in mass Lagrangian coordinates (EKL). Those criteria consist of a necessary condition for spectral stability, and of a sufficient condition for orbital stability. Both are expressed in terms of a single function, the abbreviated action integral along the orbits of waves in the phase plane, which is the counterpart of the solitary waves moment of instability introduced by Boussinesq. However, the resulting criteria are more complicated for periodic waves because they have more degrees of freedom than solitary waves, so that the action is a function of N + 2 variables for a system of N PDEs, while the moment of instability is a function of the wave speed only once the endstate of the solitary wave is fixed. Regarding solitary waves, the celebrated Grillakis-Shatah-Strauss stability criteria amount to looking for the sign of the second derivative of the moment of instability with respect to the wave speed. For periodic waves, stability criteria involve all the second order, partial derivatives of the action. This had already been pointed out by various authors for some specific equations, in particular the generalized Korteweg-de Vries equation -which is special case of (qKdV) -but not from a general point of view, up to the authors' knowledge. The most striking results obtained here can be summarized as: an odd value for the difference between N and the negative signature of the Hessian of the action implies spectral instability, whereas a negative signature of the same Hessian being equal to N implies orbital stability. Furthermore, it is shown that, when applied to the Euler-Korteweg system, this approach yields several interesting connexions between (EKE), (EKL), and (qKdV). More precisely, (EKE) and (EKL) share the same abbreviated a...