In a large skillet, heat the olive oil over medium heat. Add the diced onion and sauté until translucent, about 5 minutes.
Stir in the minced garlic, dried thyme, dried rosemary, and black pepper. Cook for an additional minute until aromatic.
Add the chicken thighs to the skillet, and pour the chicken broth over them. Bring to a gentle simmer.
Cover the skillet and let the chicken simmer for 20-25 minutes until cooked through and tender.
Remove the chicken from the skillet and place it on a cutting board. Using two forks, shred the chicken into bite-sized pieces.
In the same skillet, gradually sprinkle the flour over the remaining liquid while whisking to avoid lumps. Let it cook for about 5 minutes until the gravy thickens.
Return the shredded chicken to the skillet, stir well to combine, and season with salt to taste.
Simmer for another 2-3 minutes to heat through, and adjust the seasoning if needed.
Serve the shredded chicken with gravy over rice, mashed potatoes, or bread.
Notes
Serve with rice, mashed potatoes, or bread for a complete meal.