You could do most of this with a click macro, as click is a priority system.
If you are hit capped, for your content, you should not miss which will help with the moves.

PvE will have a rotation, and can be macro'd.
PvP will generally be more adaptive, where your next move depends on what your opponent is doing.

This won't be perfect, but its a starting point:



Opening (lands a Mangle and gets Savage Roar into play)
a) /castsequence reset=target/mod Mangle, Mangle,,,,, (Commas for 60 seconds)
b) /castsequence reset=combat Savage Roar,Null (19-24-29 seconds, assume 24.)

Our Click Priority component.
c) /castsequence reset=target Rake,,,,,,,, (commas for 9 seconds)
d) /castsequence reset=target Shred, Shred, Shred,, (2-3 commas to allow -e- to fire off)
e) /castsequence reset=target Rip,,, (enough commas for -c- & -d- to each fire off, then) Ferocious Bite, (commas), Rip,, (commas), Savage Roar,, (commas)

Manually control Tiger's Fury and Berserk.
Tweak commas, and number of Shred's.