Bug Identifier
Soldier Fly Larva (specifically a detached or decomposing cuticle)
Community identification

Soldier Fly Larva (specifically a detached or decomposing cuticle)

Stratiomyidae (likely Hermetia illucens)

Order & Family
Order: Diptera, Family: Stratiomyidae
Size
Larvae grow to about 1 inch (2.5 cm) in length, though this fragment appears smaller.
See this bug in the Encyclopedia

Natural Habitat

Typically found in compost piles, decaying organic matter, and soil.

Diet & Feeding

Larvae are scavengers that feed on decaying organic material, manure, and compost.

Behavior Patterns

The larvae are active decomposers. The object in the image appears to be a dried, possibly crushed, larval skin or pupal casing rather than a living insect. They are often found immobile when they are pupating or dead.

Risks & Benefits

They are highly beneficial for composting and waste reduction; they are generally harmless to humans and do not bite or sting.