Rita Skeeter does not transform to spy on Hogwarts. She uses a Quick-Quotes Quill—a magical, illegal device that automatically generates sensationalized, often fabricated quotes from conversations it "overhears."
Key details:
Her Animagus form (beetle) allowed eavesdropping; the quill fabricated the stories.