We can achieve a simplified version of the Lorentz force by $$F=q\bigg[-\nabla(\phi-\mathbf{A}\cdot\mathbf{v})-\frac{d\mathbf{A}}{dt}\bigg],$$ where $\mathbf{A}$ is the magnetic vector potential and the scalar $\phi$ the electrostatic potential.
How is this derivable from a velocity-dependent potential $$U=q\phi-q\mathbf{A}\cdot\mathbf{v}?$$
I fail to see how the total derivative of $\mathbf{A}$ can be disposed of and the signs partially reversed. I'm obviously missing something.