\newcommand\skills[1]{
\begin{tikzpicture}[]
\foreach [count=\i] \x/\y in {#1}{
\begin{scope}[yshift=\i cm]
\draw[fill=LightGray,LightGray] (0,\i) rectangle (6,\i+0.4);
\draw[fill=white,cyan](0,\i) rectangle (\y,\i+0.4);
\node[above right] at (0,\i+0.4) {\x };
\end{scope}
}
\end{tikzpicture}
}
\skills{1,2,3,4,5}