Applying a Legendre transformation on $U = q - w$ we get the familiar $G = H - TS$. Making an innocent approximation delivers $\Delta G = \Delta H - T\,\Delta S$.
When one wants to predict the spontaneity of a chemical reaction, one gets the $\Delta H$ and the $\Delta S$ for the reaction in question from tables, and both refer to the system undergoing the transformation. Therefore we can write:
$\Delta G_\mathrm{sys} = \Delta H_\mathrm{sys} - T\,\Delta S_\mathrm{sys}$
In which:
$\Delta G$: Variation of the system's Gibbs energy
$\Delta H$: Variation of the system's enthalpy
$\Delta S$: Variation of the system's entropy
However: $\Delta S_\mathrm{sys} = \frac{q}{T}$, assuming the process is reversible (as usual).
So: $\Delta G_\mathrm{sys} = \Delta H_\mathrm{sys} - q$. If we are making predictions based on Gibbs energy, we are under constant pressure and so $\Delta H_\mathrm{sys}=q$.
Therefore: $\Delta G_\mathrm{sys} = q - q$, $\Delta G_\mathrm{sys} = 0$ and we are always on equilibria.
Where am I mistaken? I've already seen some say that some stuff refers to the surroundings, but that makes no sense to me. If both are at thermal equilibrium, $q$ is going to have the same effect on the entropy of the system and that of the surroundings, from $\Delta S = \frac{q}{T}$.
I'm a chemistry undergratuate and have seen no mention to anything related to this on common p-chem textbooks (Atkins, McQuarrie, Ball).