From 細(こま) (koma-) + 切(き)れ (kire). The kire changes to gire as an instance of rendaku (連濁).
こまぎれ • (komagire)