I’m not 100% sure I understand what you’re saying correctly, but if I do, then I’d say you sort of have it backwards.
It IS possible to tailor your pick escape to particular sequences, with pracrice, I suppose, but I think it’s a lot easier to start with the observation that your current picking mechanic probably already has a “slant” or escape in it. Thinking in terms of escape is probably easier and is more the way the CtC matrerial has gone since the earlier days - basically that your pickstroke buries the pick in one direction, making string changes very hard, but in the other direction escapes over the plane of the strings, making them pretty effortless.
Basically, your pick’s trajectory is probably not parallel with the plane of the strings, and you already have an effortless escape at one point, either coming off downstrokes or upstrokes.
For me, I tend to play with escaped downstrokes, so downstrokes rise above the plane of the string but I bury my upstrokes, the reverse of the “downwards pickslant” of Yngwie.
So, your first example, DUD on one string, would allow me to change efficiently to the next string.
Your second example, UDU, would NOT be efficient. So, I’d have a couple options - I could simply not do it, and do UD or UDUD, or I could use a “helper” motion to get an escaped upstroke going in what’s normally an escaped downstroke motion, or I could play that last donstroke as a legato note so I’m still changing after an upstroke, etc etc etc.
So, I’d start by figuring out what your current pick motion does, and if you escape on upstrokes or downstrokes. Then, whichever it is, I’d spend some time building an entire vocabulary around the motion you already have so you have a whole stock of “building blocks” for runs that are mechanically efficient for you.
Spend some time with that, and maybe then start thinking about how you can adjust and do other escaped motions. But, the low hanging fruit isto take what you can already do, and then find ways to use that motion in as many cool musical ways as possible.
The actual slant of the pick is pretty immaterial, compared to the trajectory it makes as it moves through the strings.