A fitted wardrobe is not difficult carpentry. The whole challenge is that rooms are not square, walls are not plumb and ceilings are not level, and the finished job has to look as though they are.
Survey the space first
Measure the width at floor level, at mid height and at ceiling level.
Measure the height at both ends and in the middle.
Check the walls for plumb with a long level, and the side walls for bow with a straight edge.
Check whether the floor is level.
Note the skirting height and depth, any picture rail, coving, radiators, sockets and light switches.
Write it all on a sketch. The differences will be substantial and they determine the design.
Deciding on depth
A hanging wardrobe needs around 600mm internal depth for clothes on a front-to-back rail, so allow around 620 to 650mm overall.
Less than 550mm means clothes press against the doors.
Where depth is tight, use a pull-out side-hanging rail instead, which works in around 300mm.
Sliding doors take up around 100mm of the depth in their track, so allow for that.
Dealing with the skirting
The first decision, and it affects everything.
Cut the skirting out where the wardrobe goes, so the frame sits flat against the wall. Cleanest result and takes a little more work.
Notch the frame around the skirting, which is quicker and leaves the skirting intact.
Set the wardrobe forward clear of the skirting, losing a little depth.
The same choice applies to coving at the top.
Framing
Build a frame of planed timber, typically 45 by 45mm or 50 by 50mm.
Fix a batten to the floor along the front line and to the ceiling directly above it, using a plumb line or a laser to get them aligned.
Fix into joists in the ceiling, running across them where possible, and into the floor.
Fix vertical battens to the side walls, packed out where the wall bows so the front faces are all in the same plane.
Add vertical members at each door position and any division.
Check everything with a level and a straight edge as you go, since the frame is what the doors hang on.
Scribing the panels
End panels and the top must fit walls that are not straight.
Hold the panel in position, set a compass to the largest gap, and run it along the wall to transfer the profile.
Cut to the line with a jigsaw, undercutting slightly.
Test and adjust in stages.
Where the ceiling is uneven, either scribe the top panel to it or fit a cornice or a filler strip that covers a variable gap.
A filler strip is the practical answer for most people: build the carcase slightly short and cover the gap with a scribed fillet.
Doors
The part everyone looks at, so the alignment matters.
Hinged doors need a square opening and concealed hinges with three-way adjustment, which allow the doors to be lined up afterwards.
Hang the doors, then adjust them all together as a run, using a consistent spacer to set the gaps.
Sliding doors are supplied as a system with top and bottom tracks. The tracks must be level and parallel, and the opening dimensions must match the system exactly.
Measure the opening before ordering, and order after the frame is built rather than before.
Sliding doors are more forgiving of an out-of-square opening at the sides and less forgiving of an uneven floor or ceiling.
Finishing
Fill and caulk every junction with the wall and ceiling, which hides small scribing errors and makes the unit look built in.
Paint the frame and panels the same colour as the walls to make the wardrobe recede, or in a contrasting colour to make it a feature.
Fit the interior after the doors are hung and working.
Working around obstacles
A radiator inside the wardrobe footprint is a problem: it will not heat the room and the heat damages clothes.
Either move the radiator, or design around it, or leave an open section at that point.
Sockets and switches that fall behind a wardrobe need moving or making accessible, which is an electrician's job.
Ventilation
A sealed wardrobe against a cold external wall can develop condensation and mould behind it.
Leave a small air gap behind the back panel, and consider vents in the plinth and the top rail.