For my cats, when they were kittens, I would just do what another older cat would do if they got too rough. I would hiss at them and then get up and walk away and ignore them, or I would give them a little pinch followed by a hiss and ignoring them for a bit. After doing that, every time they got too rough for almost a week, they stopped using claws. I’ve got 3 adult cats I used this with and a stray kitten I’m fostering, and it’s worked on all of them.
Kittens need someone to let them know when they get out of line and older adult cats do that very well and if you don’t have an older cat to show them then you need to or they will never learn.