If you have lived in it you could sell it to X possibly CGT free. You can the benefit of having lived in the property and the exemption.
X then develops and sells. Cost base is reset.
X could be a trustee, but a trust owned house would mean CGT exemption is lost going forward and there...