Rattling for Warning

I slither I slide,
Basking in the sun, I’m warm and dry.
Sleeping in the sun, I shed my skin,
My skin is soft.
My scales are like stars,
They are like shining shards.
Something is loud, it’s a mouse.
I’m as quiet as a crocodile,
I used my lifestyle.
I swallow that mouse,
Now I’m delighted.
As I enjoy my meal,
I shake to a sudden feel.
It is the trotting of the cattle.
The cattle were declaring battle;
I knew I had to rattle.
They knew I had my venom,
I knew they were going to bolt,
And it resulted in no fail.