The other thread seems to deal with style. I thought this would contain examples.

I use a combined step/priority type system. I call it stepority (hahah, jk)

I am getting 100k dps on the 85 target dummy in SW. 545 gs.

[Elemental Shaman]

Step 1: 0,1,9
Step 2: 1,2,4
Step 3: 1,3,4

0: my assist macros
/stopmacro [harm,nodead,exists]
/tar [@focus,exists,nodead] [@Riámus,exists,nodead] [@Riáth,exists,nodead]
/assist

1: "get the flame shock up now!"
/stopmacro [channeling]
/castsequence reset=target flame shock, null

2: lazy macro (not yet optimized for earthshock)
/stopmacro [channeling]
/castsequence reset=5 Searing Totem, flame shock, unleash flame,earth shock,unleash flame, flame shock, unleash flame, earth shock

3: spam the bolt
/stopmacro [channeling]
/cast lightning bolt

4: proc the lava
/stopmacro [channeling]
/cast lava burst

9: buffs
/stopmacro [channeling]
/cast ancestral guidance
/cast elemental mastery
/cast ascendance
#/use 13
#/use 14