General-order open-shell coupled-cluster method with partial spin adaptation I: formulations | Synapse