Terry Kennedy -- a famous skateboarder who's ridden with Rob Dyrdek and appeared in several skating video games -- was arrested Tuesday after he was accused of several heinous crimes, including threatening to murder cops.
A DuPage State's Attorney's Office spokesperson tells TMZ Sports ... it all started after law enforcement responded to a report of a battery at a motel on July 27 in Oakbrook Terrace, IL.
The spokesperson says Kennedy was accused of violently attacking a man at the motel -- leaving the guy with a fractured skull and a concussion -- and then fleeing the scene.
It's unclear what provoked the alleged attack ... but we're told Kennedy was eventually located and taken into custody.
During the booking process, though, the spokesperson says the skater became aggressive toward cops.
Kennedy allegedly threatened to murder officers NINE different times ... with the spokesperson saying Kennedy told cops, "I will kill one of you police. We kill police where I'm from."
The spokesperson says Kennedy then referenced a 2017 cop-killing incident in Whittier, CA. ... claiming the skateboarder said, "We killed ya'll in Whittier, California. We killed ya'll bitch ass."
Kennedy was ultimately arrested and booked on multiple charges including aggravated battery in a public place and threatening a public official, court records show.