We directly construct the Yang-Mills supersymmetric theories with 4, 8 and 16 generators from horizontality conditions, in the context of TQFTs. A remarkable output is the property that each one of all supersym-metric Yang-Mills algebra contains an off-shell closed sector, which is big enough to completely determine the theory (even in the case of maximal supersymmetry). The key of the construction is the understanding that one must determine, within the context of the Yang--Mills geometry, the scalar topological BRST symmetry in a way that is explicitly consistent with reparametrization symmetry. This defines both scalar and vector topological BRST symmetry, which is sufficient to determine the supersymmetric theory. The Poincare superalgebra is recovered at the end of the construction.