The emergence of nanogenerators, which have the ability to capture mechanical energy from the environment and to collect and transmit tiny energy, is rapidly becoming a hot research topic. The performance of electrode materials is the key to the efficiency of nanogenerators. Covalent organic skeletons (COFs), a class of crystalline organic porous materials with the advantages of large specific surface area, high porosity, tunable structure, and flexible tailorability, have very significant advantages in being used as nanogenerator materials. In this paper, we synthesised two COF materials to investigate the effect of the introduction of active metals on the friction power generation performance of COFs without changing their topology, COF-2 containing zinc ions is capable of generating a short-circuit current of 107.5 µA during friction. The porous structure increases the effective contact area to form a larger charge density, and the introduction of metal ions can accelerate the charge separation and transport. The two bidirectional synergistic effects of the materials significantly improve the output performance of the nanogenerator, and a simple and efficient method is explored for the enhancement of the output performance of COF-based triboelectric nanogenerators.