A general framework to test gravity using galaxy clusters – V. A self-consistent pipeline for unbiased constraints of f(R) gravity. Issue 3 (22nd October 2021)