This passage gives a practical example of faith and works.
James 2:14-17
14What does it profit, my brethren, if someone says he has faith but does not have works? Can faith save him? 15 If a brother or sister is naked and destitute of daily food, 16 and one of you says to them, “Depart in peace, be warmed and filled,” but you do not give them the things which are needed for the body, what does it profit? 17 Thus also faith by itself, if it does not have works, is dead.
I believe that you are saved by faith in Jesus dying on the cross for your confessed sinful life. Works in themselves do not provide for salvation but rather are a manifestation of one's faith leading to salvation.
The 10 Commandments, written with the finger of God are still very much in effect because without the law there would be no knowledge of sin. The law kills, Jesus saves.
Works have nothing to do whatsoever with Mosaic law.