We are installing cabinets at the entryway (no where near a kitchen). It's a dark corner in the living room and we are installing glass front wall cabinets, so I want to add above cabinet lighting as well as in cabinet lighting. Nothing too fancy. A quick trip to Home Depot shows that all their lights are the plug-in type. So, my plan is to have receptacles (not controlled by a switch) installed under the wall cabinet, but extend the cable to two switches (stacked) right next to it, which will control receptacles right above the cabinets (these higher receptacles will not been seen by anyone standing on the floor). Then I can plug in the puck lights (for in cabinet lighting) and T5 Fluorescent linear light (for above cabinet lighting) into those receptacles.
Currently, this section of the wall wall is blank with a receptacle above the floor:
'
This is how I plan on wiring for the cabinet lighting:

The red lines indicate NM-14 cables. Since the lower receptacle would be behind a base cabinet anyway, so I will take it out and make all the splicing from the outlet on the other side of the wall (will need a deeper switch box for that).
Will this wiring plan comply with code? And is there a better way to do the wiring for what I want to achieve? Thank you!
Currently, this section of the wall wall is blank with a receptacle above the floor:
This is how I plan on wiring for the cabinet lighting:
The red lines indicate NM-14 cables. Since the lower receptacle would be behind a base cabinet anyway, so I will take it out and make all the splicing from the outlet on the other side of the wall (will need a deeper switch box for that).
Will this wiring plan comply with code? And is there a better way to do the wiring for what I want to achieve? Thank you!