Margot Robbie is starring in and producing Universal’s action-crime thriller “Bad Monkeys,” based on Matt Ruff’s novel of the same name.

Scott Stuber and Dylan Clark are producing through their Universal-based Bluegrass Films company. Robbie is producing through her LuckyChap Entertainment banner and LuckyChap’s Josey McNamara will serve as executive producer.

Robbie was most recently seen as Jane in “The Legend of Tarzan” and will star as Harley Quinn in Warner Bros.’ upcoming “Suicide Squad,” which has been primed for a massive opening weekend in the $125 million range. She is currently in production on LuckyChap’s “Terminal.”

Robbie is also attached to star in a Harley Quinn spinoff movie for Warner Bros. and DC Entertainment. she is expected to appear at the studio’s presentation at Comic-Con on Saturday.

Ruff’s previous books include “Lovecraft Country,” “Fool on the Hill,” “Set This House in Order,” and “The Mirage.”

In the book, the lead character Jane Charlotte has been arrested for murder and says she’s a member of a secret organization devoted to fighting evil, working with the Department for the Final Disposition of Irredeemable Persons — aka “Bad Monkeys.” Her confession lands her in the jail’s psychiatric wing and earns her countless hours of poking, probing, and questioning by a professional — but is she crazy, lying or playing a different game altogether?

Jon Mone will oversee production on behalf of the studio and Nicholas Nesbitt will oversee on behalf of Bluegrass Films.

Stuber’s credits include “Central Intelligence” and the “Ted” series. Clark’s credits include “War of the Planet of the Apes” and “Oblivion.”

CAA, which represents Stuber, Robbie and Ruff, packaged the project. Robbie is also represented by Management 360, Aran Michael Management in Australia, and attorney Jeffrey Bernstein. Ruff is also represented by publishing agent Melanie Jackson of Melanie Jackson Agency.