Narrative:

I am writing this narrative in regards to a possible pilot deviation from earlier today date at ZZZ around xa:45 local time. My ZZZ1 based first officer (first officer) and I (ZZZ2 based captain) were working aircraft X to ZZZ3 and were cleared to depart runway xx left with a climb via the ZZZZZ2. This SID has an initial heading of 356 and a slight right turn to 013 before reaching the first fix of ZZZZZ1. With that said; the event went as follows: we were cleared to takeoff; RNAV to ZZZZZ1; first officer executed a standard altitude-to takeoff and rotated at vr. At acceleration altitude; (around 1;400 feet MSL or 800 AGL); I was given a frequency change to departure and we entered IMC 100 feet later at 900 AGL. I switched; but the wrong frequency was programmed in so I went back to my chart to locate the proper one. I also completed the after takeoff flow and noticed a drift to the right of the course. The departure controller was talking to another airplane and then started to call our call sign instructing us to fly a heading of north. First officer was still hand flying and complied. The controller stated that we were within a few miles of aircraft Y climbing off runway xy at ZZZ4. Neither of us got an RA but we did get a TA. The rest of the departure was uneventful and we landed just under an hour later in ZZZ3. My first officer was following the flight director. I did verify that the correct runway and SID was programmed in the FMS. I believe first officer started to drift and when the flight director made the right turn for the SID first officer overreacted not fully realizing we were already to the right of the course. According to the track log; we got to a heading of 085 at 2300 feet MSL (1;600 AGL) before we started correcting back to the north. This entire event lasted under 45 seconds from takeoff. My first officer is trying to complete hours for consolidation; was the pilot flying. First officer was hired last year but didn't fly enough to consolidate; plus covid hit and the base was closed for several months. First officer had flown three legs prior in the sequence and first officer's flying was up to standards. This was [the] first officer's first real encounter with IMC conditions below a couple thousand feet. I think everything was moving faster than first officer expected and just started to drift then over shot the turn due to the flight director's abrupt movement.it's my opinion that first officer should really focus on maintaining the directions on the SID and to double check before making turns when hand flying a SID.

Google
 

Original NASA ASRS Text

Title: Air carrier flight crew reported a track heading deviation and cited First Officer's lack of flying as a contributing factor.

Narrative: I am writing this narrative in regards to a possible pilot deviation from earlier today date at ZZZ around XA:45 local time. My ZZZ1 based First Officer (FO) and I (ZZZ2 based Captain) were working Aircraft X to ZZZ3 and were cleared to depart Runway XX L with a climb via the ZZZZZ2. This SID has an initial heading of 356 and a slight right turn to 013 before reaching the first fix of ZZZZZ1. With that said; the event went as follows: we were cleared to takeoff; RNAV to ZZZZZ1; FO executed a standard ALT-To takeoff and rotated at VR. At acceleration altitude; (around 1;400 feet MSL or 800 AGL); I was given a frequency change to departure and we entered IMC 100 feet later at 900 AGL. I switched; but the wrong frequency was programmed in so I went back to my chart to locate the proper one. I also completed the after takeoff flow and noticed a drift to the right of the course. The Departure Controller was talking to another airplane and then started to call our call sign instructing us to fly a heading of north. First Officer was still hand flying and complied. The Controller stated that we were within a few miles of Aircraft Y climbing off Runway XY at ZZZ4. Neither of us got an RA but we did get a TA. The rest of the departure was uneventful and we landed just under an hour later in ZZZ3. My FO was following the flight director. I did verify that the correct runway and SID was programmed in the FMS. I believe FO started to drift and when the flight director made the right turn for the SID FO overreacted not fully realizing we were already to the right of the course. According to the track log; we got to a heading of 085 at 2300 feet MSL (1;600 AGL) before we started correcting back to the north. This entire event lasted under 45 seconds from takeoff. My FO is trying to complete hours for consolidation; was the pilot flying. FO was hired last year but didn't fly enough to consolidate; plus COVID hit and the base was closed for several months. FO had flown three legs prior in the sequence and FO's flying was up to standards. This was [the] FO's first real encounter with IMC conditions below a couple thousand feet. I think everything was moving faster than FO expected and just started to drift then over shot the turn due to the flight director's abrupt movement.It's my opinion that FO should really focus on maintaining the directions on the SID and to double check before making turns when hand flying a SID.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.