  We present a charge self-consistent density functional theory combined with
the ghost-rotationally-invariant slave-boson (DFT+gRISB) formalism for studying
correlated materials. This method is applied to SrVO$_3$ and NiO, representing
prototypical correlated metals and charge-transfer insulators. For SrVO$_3$, we
demonstrate that DFT+gRISB yields an accurate equilibrium volume and effective
mass close to experimentally observed values. Regarding NiO, DFT+gRISB enables
the simultaneous description of charge transfer and Mott-Hubbard bands,
significantly enhancing the accuracy of the original DFT+RISB approach.
Furthermore, the calculated equilibrium volume and spectral function reasonably
agree with experimental observations.
