Yes that's because each skill has separate IDs. You need to pull them up by name instead.
If you make a macro that just uses a single skill and put it in the shared hotbar, it should fix the problem.. I haven't personally tested it myself, I just have all my crafters have identical skill layout on unshared hotbars instead.. But my experience with macros tell me that'll do the trick for ya.


i.e.

/micon Inner Quiet
/ac "Inner Quiet" <me>

Should be able to replace your Inner Quiet button on a shared hotbar and work across different classes