In situ Schiff base reaction is utilized to grow phthalocyanine covalent organic frameworks (TFPB-NiPc) on carbon cloth (CC) to obtain the composite material TFPB-NiPc@CC, which is used as the anode for the binder and conductive agent free Li/Na-ion batteries with enhanced active materials loading. What is more, CC acts as an excellent conductive backbone while reducing the stacking effect of phthalocyanine frameworks (Pc-COFs), which enables TFPB-NiPc to realize the self-exfoliation effect during the in situ synthesis process. This strategy shortens the migration path of Li