Tearing a garment in order to repair it is a Torah prohibition of kore’a. Prepare cut paper before Shabbat, but if none is available one may cut because of kevod haberiyot, as Rav Shlomo Zalman Auerbach, zt"l, wrote. Food bags may be opened, and a thread sewn into stuffed food may be torn. From the booklet of Rabbi David Shalom Naki, shlit"a.