A modular methodology for affinity labeling, in which three essential elements generally constituting affinity probes are prepared separately as individual molecules, has been developed based on a catalytic amidation.