Let's suppose, without loss of generality, that we're looking to clip a triangle against the plane. We can develop a solution for this and generalize it to handle the other five clipping planes.
We saw that there are 4 cases we need to handle:
all in (keep the triangle)
all out (discard the triangle)
one in, two out (create one clipped triangle)
two in, one out (create two clipped triangles)
Case 4 is illustrated here:
Given three vertices , write pseudocode to decide which of the above cases applies to a given triangle when clipping against the plane.
Write pseudocode to produce the vertices of of the new triangle resulting from the case 2 ("one in, two out").
Write pseudocode to produce the vertices and of the two new triangles resulting from the case 4 ("one in, two out").